Introduce debug flavor for Android builds

This commit is contained in:
Vishnu Mohandas 2020-05-08 00:59:36 +05:30
parent b842cbc577
commit ccfc977cfa
4 changed files with 16 additions and 2 deletions

View file

@ -43,7 +43,6 @@ android {
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "io.ente.photos"
minSdkVersion 16
targetSdkVersion 28
@ -65,6 +64,15 @@ android {
release {
signingConfig signingConfigs.release
}
debug {
applicationIdSuffix '.debug'
versionNameSuffix "-debug"
externalNativeBuild {
cmake {
arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}${applicationIdSuffix}"
}
}
}
}
}

View file

@ -0,0 +1,3 @@
<resources>
<string name="app_name">Photos Debug</string>
</resources>

View file

@ -7,7 +7,7 @@
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="Photos"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher">
<activity

View file

@ -0,0 +1,3 @@
<resources>
<string name="app_name">Photos</string>
</resources>