From 3123ce5f9a4c8a88617506ac8edfcebe0e42dd5f Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 29 Apr 2021 16:13:13 -0400 Subject: [PATCH] Let Android install debug & release APKs side-by-side (#31) --- .gitignore | 1 + android/app/build.gradle | 6 ++++++ android/app/src/debug/res/values/ic_launcher_background.xml | 4 ++++ android/app/src/main/AndroidManifest.xml | 2 +- 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 android/app/src/debug/res/values/ic_launcher_background.xml diff --git a/.gitignore b/.gitignore index 03ac9e5..b2aeec5 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,4 @@ lib/generated_plugin_registrant.dart /ios/Flutter/.last_build_id /local.properties /.gradle/ +*.keystore diff --git a/android/app/build.gradle b/android/app/build.gradle index 5bb35ec..5b3e7b8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -70,6 +70,12 @@ android { minifyEnabled false useProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + + resValue 'string', 'app_name', '"Nebula"' + } + debug { + resValue 'string', 'app_name', '"Nebula-DEBUG"' + applicationIdSuffix '.debug' } } } diff --git a/android/app/src/debug/res/values/ic_launcher_background.xml b/android/app/src/debug/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..4ca2194 --- /dev/null +++ b/android/app/src/debug/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #f2c10d + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 7d60a9f..6459ffc 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -10,7 +10,7 @@