Browse Source

app: Use different name and id for android debug

pull/328/head
jld3103 2 years ago
parent
commit
d7fefbfefd
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 5
      packages/app/android/app/build.gradle
  2. 4
      packages/app/android/app/src/debug/res/values/string.xml
  3. 2
      packages/app/android/app/src/main/AndroidManifest.xml
  4. 4
      packages/app/android/app/src/main/res/values/string.xml

5
packages/app/android/app/build.gradle

@ -53,6 +53,11 @@ android {
}
buildTypes {
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
}
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.

4
packages/app/android/app/src/debug/res/values/string.xml

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Neon Debug</string>
</resources>

2
packages/app/android/app/src/main/AndroidManifest.xml

@ -4,7 +4,7 @@
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="Neon"
android:label="@string/app_name"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true">

4
packages/app/android/app/src/main/res/values/string.xml

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Neon</string>
</resources>
Loading…
Cancel
Save