mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	android: Differentiate build types with new names
Change the applicationIdSuffix and app launcher title based on build type
This commit is contained in:
		@@ -74,6 +74,7 @@ android {
 | 
			
		||||
 | 
			
		||||
        // Signed by release key, allowing for upload to Play Store.
 | 
			
		||||
        release {
 | 
			
		||||
            resValue("string", "app_name_suffixed", "yuzu")
 | 
			
		||||
            signingConfig = signingConfigs.getByName("debug")
 | 
			
		||||
            isMinifyEnabled = true
 | 
			
		||||
            isDebuggable = false
 | 
			
		||||
@@ -86,6 +87,7 @@ android {
 | 
			
		||||
        // builds a release build that doesn't need signing
 | 
			
		||||
        // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
 | 
			
		||||
        register("relWithDebInfo") {
 | 
			
		||||
            resValue("string", "app_name_suffixed", "yuzu Debug Release")
 | 
			
		||||
            signingConfig = signingConfigs.getByName("debug")
 | 
			
		||||
            isMinifyEnabled = true
 | 
			
		||||
            isDebuggable = true
 | 
			
		||||
@@ -93,16 +95,19 @@ android {
 | 
			
		||||
                getDefaultProguardFile("proguard-android.txt"),
 | 
			
		||||
                "proguard-rules.pro"
 | 
			
		||||
            )
 | 
			
		||||
            versionNameSuffix = "-debug"
 | 
			
		||||
            versionNameSuffix = "-relWithDebInfo"
 | 
			
		||||
            applicationIdSuffix = ".relWithDebInfo"
 | 
			
		||||
            isJniDebuggable = true
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Signed by debug key disallowing distribution on Play Store.
 | 
			
		||||
        // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
 | 
			
		||||
        debug {
 | 
			
		||||
            resValue("string", "app_name_suffixed", "yuzu Debug")
 | 
			
		||||
            isDebuggable = true
 | 
			
		||||
            isJniDebuggable = true
 | 
			
		||||
            versionNameSuffix = "-debug"
 | 
			
		||||
            applicationIdSuffix = ".debug"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
    <application
 | 
			
		||||
        android:name="org.yuzu.yuzu_emu.YuzuApplication"
 | 
			
		||||
        android:label="@string/app_name"
 | 
			
		||||
        android:label="@string/app_name_suffixed"
 | 
			
		||||
        android:icon="@drawable/ic_launcher"
 | 
			
		||||
        android:allowBackup="true"
 | 
			
		||||
        android:hasFragileUserData="true"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user