summaryrefslogtreecommitdiff
path: root/src/android/app/build.gradle.kts
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-06-11 02:16:45 -0400
committerGravatar Charles Lombardo2023-06-11 02:16:45 -0400
commitf23a2b514b3332614c470d5d5273ed289aec797e (patch)
tree8c513f8bdc3d8302102f1b718f932a6965d20c0c /src/android/app/build.gradle.kts
parentAndroid: Remove unused relWithVersionCode build type (diff)
downloadyuzu-f23a2b514b3332614c470d5d5273ed289aec797e.tar.gz
yuzu-f23a2b514b3332614c470d5d5273ed289aec797e.tar.xz
yuzu-f23a2b514b3332614c470d5d5273ed289aec797e.zip
android: Differentiate build types with new names
Change the applicationIdSuffix and app launcher title based on build type
Diffstat (limited to 'src/android/app/build.gradle.kts')
-rw-r--r--src/android/app/build.gradle.kts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index 2ce25b427..c8fe1d14a 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -74,6 +74,7 @@ android {
74 74
75 // Signed by release key, allowing for upload to Play Store. 75 // Signed by release key, allowing for upload to Play Store.
76 release { 76 release {
77 resValue("string", "app_name_suffixed", "yuzu")
77 signingConfig = signingConfigs.getByName("debug") 78 signingConfig = signingConfigs.getByName("debug")
78 isMinifyEnabled = true 79 isMinifyEnabled = true
79 isDebuggable = false 80 isDebuggable = false
@@ -86,6 +87,7 @@ android {
86 // builds a release build that doesn't need signing 87 // builds a release build that doesn't need signing
87 // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build. 88 // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
88 register("relWithDebInfo") { 89 register("relWithDebInfo") {
90 resValue("string", "app_name_suffixed", "yuzu Debug Release")
89 signingConfig = signingConfigs.getByName("debug") 91 signingConfig = signingConfigs.getByName("debug")
90 isMinifyEnabled = true 92 isMinifyEnabled = true
91 isDebuggable = true 93 isDebuggable = true
@@ -93,16 +95,19 @@ android {
93 getDefaultProguardFile("proguard-android.txt"), 95 getDefaultProguardFile("proguard-android.txt"),
94 "proguard-rules.pro" 96 "proguard-rules.pro"
95 ) 97 )
96 versionNameSuffix = "-debug" 98 versionNameSuffix = "-relWithDebInfo"
99 applicationIdSuffix = ".relWithDebInfo"
97 isJniDebuggable = true 100 isJniDebuggable = true
98 } 101 }
99 102
100 // Signed by debug key disallowing distribution on Play Store. 103 // Signed by debug key disallowing distribution on Play Store.
101 // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build. 104 // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
102 debug { 105 debug {
106 resValue("string", "app_name_suffixed", "yuzu Debug")
103 isDebuggable = true 107 isDebuggable = true
104 isJniDebuggable = true 108 isJniDebuggable = true
105 versionNameSuffix = "-debug" 109 versionNameSuffix = "-debug"
110 applicationIdSuffix = ".debug"
106 } 111 }
107 } 112 }
108 113