fix app name
All checks were successful
eden-license / license-header (pull_request) Successful in 22s
All checks were successful
eden-license / license-header (pull_request) Successful in 22s
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
94b49cc288
commit
53bbc9ba08
1 changed files with 26 additions and 4 deletions
|
@ -124,7 +124,6 @@ android {
|
||||||
signingConfigs.getByName("default")
|
signingConfigs.getByName("default")
|
||||||
}
|
}
|
||||||
|
|
||||||
resValue("string", "app_name_suffixed", "Eden")
|
|
||||||
isMinifyEnabled = true
|
isMinifyEnabled = true
|
||||||
isDebuggable = false
|
isDebuggable = false
|
||||||
proguardFiles(
|
proguardFiles(
|
||||||
|
@ -137,7 +136,6 @@ android {
|
||||||
// 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") {
|
||||||
isDefault = true
|
isDefault = true
|
||||||
resValue("string", "app_name_suffixed", "Eden Debug Release")
|
|
||||||
signingConfig = signingConfigs.getByName("default")
|
signingConfig = signingConfigs.getByName("default")
|
||||||
isDebuggable = true
|
isDebuggable = true
|
||||||
proguardFiles(
|
proguardFiles(
|
||||||
|
@ -153,7 +151,6 @@ android {
|
||||||
// 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 {
|
||||||
signingConfig = signingConfigs.getByName("default")
|
signingConfig = signingConfigs.getByName("default")
|
||||||
resValue("string", "app_name_suffixed", "Eden Debug")
|
|
||||||
isDebuggable = true
|
isDebuggable = true
|
||||||
isJniDebuggable = true
|
isJniDebuggable = true
|
||||||
versionNameSuffix = "-debug"
|
versionNameSuffix = "-debug"
|
||||||
|
@ -161,12 +158,37 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this is really annoying but idk any other ways to fix this behavior
|
||||||
|
applicationVariants.all {
|
||||||
|
val variant = this
|
||||||
|
when {
|
||||||
|
variant.flavorName == "legacy" && variant.buildType.name == "debug" -> {
|
||||||
|
variant.resValue("string", "app_name_suffixed", "Eden Legacy Debug")
|
||||||
|
}
|
||||||
|
variant.flavorName == "mainline" && variant.buildType.name == "debug" -> {
|
||||||
|
variant.resValue("string", "app_name_suffixed", "Eden Debug")
|
||||||
|
}
|
||||||
|
variant.flavorName == "genshinSpoof" && variant.buildType.name == "debug" -> {
|
||||||
|
variant.resValue("string", "app_name_suffixed", "Eden Optimized Debug")
|
||||||
|
}
|
||||||
|
variant.flavorName == "legacy" && variant.buildType.name == "relWithDebInfo" -> {
|
||||||
|
variant.resValue("string", "app_name_suffixed", "Eden Legacy Debug Release")
|
||||||
|
}
|
||||||
|
variant.flavorName == "mainline" && variant.buildType.name == "relWithDebInfo" -> {
|
||||||
|
variant.resValue("string", "app_name_suffixed", "Eden Debug Release")
|
||||||
|
}
|
||||||
|
variant.flavorName == "genshinSpoof" && variant.buildType.name == "relWithDebInfo" -> {
|
||||||
|
variant.resValue("string", "app_name_suffixed", "Eden Optimized Debug Release")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
flavorDimensions.add("version")
|
flavorDimensions.add("version")
|
||||||
productFlavors {
|
productFlavors {
|
||||||
create("mainline") {
|
create("mainline") {
|
||||||
dimension = "version"
|
dimension = "version"
|
||||||
// No need to set applicationId here
|
resValue("string", "app_name_suffixed", "Eden")
|
||||||
}
|
}
|
||||||
|
|
||||||
create("genshinSpoof") {
|
create("genshinSpoof") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue