Split play and other version

This commit is contained in:
世界
2023-11-09 13:05:56 +08:00
parent d10c6ebd7e
commit d45e2af1c2
8 changed files with 154 additions and 65 deletions

View File

@@ -48,6 +48,14 @@ android {
}
}
flavorDimensions "vendor"
productFlavors {
play {
}
other {
}
}
splits {
abi {
enable true
@@ -68,6 +76,8 @@ android {
applicationVariants.configureEach { variant ->
variant.outputs.configureEach {
outputFileName = (outputFileName as String).replace("-release", "")
outputFileName = (outputFileName as String).replace("-play", "")
outputFileName = (outputFileName as String).replace("-other", "")
}
}
}
@@ -99,7 +109,7 @@ dependencies {
exclude group: 'com.google.guava', module: 'guava'
}
implementation 'com.google.guava:guava:32.1.2-android'
implementation 'com.google.android.play:app-update-ktx:2.1.0'
playImplementation 'com.google.android.play:app-update-ktx:2.1.0'
}
if (getProps("APPCENTER_TOKEN") != "") {