Introduce a debug buildType
Now you can have release and debug app on the same phone
This commit is contained in:
@@ -62,6 +62,12 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
// Use a different application ID for debug builds
|
||||
applicationIdSuffix = ".debug"
|
||||
// Optional: Add a label suffix to distinguish the app icon
|
||||
manifestPlaceholders["appLabel"] = "Florid Debug"
|
||||
}
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
@@ -70,6 +76,7 @@ android {
|
||||
} else {
|
||||
signingConfigs.getByName("debug")
|
||||
}
|
||||
manifestPlaceholders["appLabel"] = "Florid"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
|
||||
<application
|
||||
android:label="Florid"
|
||||
android:label="${appLabel}"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
|
||||
Reference in New Issue
Block a user