Skip to content
Snippets Groups Projects
Commit f23a2b51 authored by Charles Lombardo's avatar Charles Lombardo
Browse files

android: Differentiate build types with new names

Change the applicationIdSuffix and app launcher title based on build type
parent 37e135d7
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ android { ...@@ -74,6 +74,7 @@ android {
// Signed by release key, allowing for upload to Play Store. // Signed by release key, allowing for upload to Play Store.
release { release {
resValue("string", "app_name_suffixed", "yuzu")
signingConfig = signingConfigs.getByName("debug") signingConfig = signingConfigs.getByName("debug")
isMinifyEnabled = true isMinifyEnabled = true
isDebuggable = false isDebuggable = false
...@@ -86,6 +87,7 @@ android { ...@@ -86,6 +87,7 @@ android {
// builds a release build that doesn't need signing // builds a release build that doesn't need signing
// Attaches 'debug' suffix to version and package name, allowing installation alongside the release build. // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
register("relWithDebInfo") { register("relWithDebInfo") {
resValue("string", "app_name_suffixed", "yuzu Debug Release")
signingConfig = signingConfigs.getByName("debug") signingConfig = signingConfigs.getByName("debug")
isMinifyEnabled = true isMinifyEnabled = true
isDebuggable = true isDebuggable = true
...@@ -93,16 +95,19 @@ android { ...@@ -93,16 +95,19 @@ android {
getDefaultProguardFile("proguard-android.txt"), getDefaultProguardFile("proguard-android.txt"),
"proguard-rules.pro" "proguard-rules.pro"
) )
versionNameSuffix = "-debug" versionNameSuffix = "-relWithDebInfo"
applicationIdSuffix = ".relWithDebInfo"
isJniDebuggable = true isJniDebuggable = true
} }
// Signed by debug key disallowing distribution on Play Store. // Signed by debug key disallowing distribution on Play Store.
// Attaches 'debug' suffix to version and package name, allowing installation alongside the release build. // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
debug { debug {
resValue("string", "app_name_suffixed", "yuzu Debug")
isDebuggable = true isDebuggable = true
isJniDebuggable = true isJniDebuggable = true
versionNameSuffix = "-debug" versionNameSuffix = "-debug"
applicationIdSuffix = ".debug"
} }
} }
......
...@@ -18,7 +18,7 @@ SPDX-License-Identifier: GPL-3.0-or-later ...@@ -18,7 +18,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<application <application
android:name="org.yuzu.yuzu_emu.YuzuApplication" android:name="org.yuzu.yuzu_emu.YuzuApplication"
android:label="@string/app_name" android:label="@string/app_name_suffixed"
android:icon="@drawable/ic_launcher" android:icon="@drawable/ic_launcher"
android:allowBackup="true" android:allowBackup="true"
android:hasFragileUserData="true" android:hasFragileUserData="true"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment