[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 ->
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
apply plugin: 'bytex.matrix'
|
||||
|
||||
matrix {
|
||||
trace {
|
||||
enable = true //if you don't want to use trace canary, set false
|
||||
baseMethodMapFile = "${project.buildDir}/matrix_output/customMethodMapping.txt"
|
||||
blackListFile = "${project.projectDir}/matrixTrace/blackMethodList.txt"
|
||||
if (!rootProject.isReleaseBuild()) {
|
||||
apply plugin: 'bytex.matrix'
|
||||
matrix {
|
||||
trace {
|
||||
enable = true //if you don't want to use trace canary, set false
|
||||
baseMethodMapFile = "${project.buildDir}/matrix_output/customMethodMapping.txt"
|
||||
blackListFile = "${project.projectDir}/matrixTrace/blackMethodList.txt"
|
||||
}
|
||||
logLevel = "D"
|
||||
}
|
||||
logLevel = "D"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user