[2.15.0][增量升级] 增加本地配置是否支持增量升级并记录此状态

This commit is contained in:
renwj
2023-03-31 16:30:20 +08:00
parent 4a21db3cab
commit fe5616622e
7 changed files with 32 additions and 33 deletions

View File

@@ -76,6 +76,7 @@ rootProject.gradle.taskGraph.whenReady { TaskExecutionGraph graph ->
}
if (app != null) {
def android = (AppExtension) app.extensions.findByName("android")
android.defaultConfig.buildConfigField("boolean", "IS_SUPPORT_PATCH_UPGRADE", rootProject.hasProperty("PATCH_UPGRADE_SUPPORT") ? rootProject.properties["PATCH_UPGRADE_SUPPORT"] : false)
def signConfig = android.signingConfigs.getByName("release")
if (signConfig != null && isOnlineReleaseBuild(gradle)) {
if (tasks != null) {