reorder buildTypes block

This commit is contained in:
Rocka 2026-02-17 13:32:22 +08:00
parent 96c1e7acba
commit 617f04521d
No known key found for this signature in database
GPG Key ID: 28031158FFDD6853
11 changed files with 40 additions and 50 deletions

View File

@ -39,18 +39,17 @@ android {
}
buildTypes {
debug {
resValue("mipmap", "app_icon", "@mipmap/ic_launcher_debug")
resValue("mipmap", "app_icon_round", "@mipmap/ic_launcher_round_debug")
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("mipmap", "app_icon", "@mipmap/ic_launcher")
resValue("mipmap", "app_icon_round", "@mipmap/ic_launcher_round")
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("mipmap", "app_icon", "@mipmap/ic_launcher_debug")
resValue("mipmap", "app_icon_round", "@mipmap/ic_launcher_round_debug")
resValue("string", "app_name", "@string/app_name_debug")
}
}
androidResources {

View File

@ -40,20 +40,20 @@ class AndroidAppConventionPlugin : AndroidBaseConventionPlugin() {
versionName = target.buildVersionName
}
buildTypes {
all {
// remove META-INF/version-control-info.textproto
@Suppress("UnstableApiUsage")
vcsInfo.include = false
}
debug {
applicationIdSuffix = ".debug"
}
release {
isMinifyEnabled = true
isShrinkResources = true
signingConfig = signingConfigs.fromProjectEnv(target)
proguardFile(getDefaultProguardFile("proguard-android-optimize.txt"))
}
debug {
applicationIdSuffix = ".debug"
}
all {
// remove META-INF/version-control-info.textproto
@Suppress("UnstableApiUsage")
vcsInfo.include = false
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true

View File

@ -28,14 +28,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {

View File

@ -28,14 +28,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {

View File

@ -21,14 +21,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
}

View File

@ -28,14 +28,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {

View File

@ -29,14 +29,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {

View File

@ -28,14 +28,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {

View File

@ -28,14 +28,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {

View File

@ -28,14 +28,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {

View File

@ -28,14 +28,13 @@ android {
}
buildTypes {
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
release {
resValue("string", "app_name", "@string/app_name_release")
proguardFile("proguard-rules.pro")
}
debug {
resValue("string", "app_name", "@string/app_name_debug")
}
}
packaging {