|
|
@ -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") { |
|
|
|