Fixed: Release-debug build does not apply Release build properties.
This commit is contained in:
parent
6fdd5f1c10
commit
c4ad8edf6f
1 changed files with 7 additions and 6 deletions
|
|
@ -36,18 +36,19 @@ android {
|
||||||
getByName("debug") {
|
getByName("debug") {
|
||||||
applicationIdSuffix = ".debug"
|
applicationIdSuffix = ".debug"
|
||||||
}
|
}
|
||||||
create("release-debug") {
|
|
||||||
initWith(getByName("release"))
|
|
||||||
applicationIdSuffix = ".release.debug"
|
|
||||||
signingConfig = signingConfigs.getByName("debug")
|
|
||||||
}
|
|
||||||
|
|
||||||
getByName("release") {
|
getByName("release") {
|
||||||
isMinifyEnabled = true
|
isMinifyEnabled = true
|
||||||
isShrinkResources = false
|
isShrinkResources = false
|
||||||
|
|
||||||
proguardFiles("proguard-rules.pro")
|
proguardFiles("proguard-rules.pro")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
create("release-debug") {
|
||||||
|
initWith(getByName("release"))
|
||||||
|
applicationIdSuffix = ".release.debug"
|
||||||
|
signingConfig = signingConfigs.getByName("debug")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue