[3.2.0][应用升级] 优化打包后是否支持增量升级开关; 解决release打包失败问题
This commit is contained in:
@@ -75,9 +75,10 @@ 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 isReleaseOnlineBuild = isOnlineReleaseBuild(gradle)
|
||||
android.defaultConfig.buildConfigField("boolean", "IS_SUPPORT_PATCH_UPGRADE", isReleaseOnlineBuild && rootProject.hasProperty("PATCH_UPGRADE_SUPPORT") ? rootProject.properties["PATCH_UPGRADE_SUPPORT"] : "false")
|
||||
def signConfig = android.signingConfigs.getByName("release")
|
||||
if (signConfig != null && isOnlineReleaseBuild(gradle)) {
|
||||
if (signConfig != null && isReleaseOnlineBuild) {
|
||||
if (tasks != null) {
|
||||
tasks.forEach { t1 ->
|
||||
t1.doLast { t2 ->
|
||||
|
||||
Reference in New Issue
Block a user