From 9c1c8e4da542c03ed736e28694e5e04be808dbdd Mon Sep 17 00:00:00 2001 From: renwj Date: Thu, 18 May 2023 11:45:45 +0800 Subject: [PATCH] =?UTF-8?q?[3.2.0][=E5=BA=94=E7=94=A8=E5=8D=87=E7=BA=A7]?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85=E5=90=8E=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=94=AF=E6=8C=81=E5=A2=9E=E9=87=8F=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=BC=80=E5=85=B3;=20=E8=A7=A3=E5=86=B3release=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo-core-function-patch/build.gradle | 5 +++-- gradle/bytex/bytex_matrix.gradle | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/core/function-impl/mogo-core-function-patch/build.gradle b/core/function-impl/mogo-core-function-patch/build.gradle index 86458d14eb..ba300f0ce0 100644 --- a/core/function-impl/mogo-core-function-patch/build.gradle +++ b/core/function-impl/mogo-core-function-patch/build.gradle @@ -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 -> diff --git a/gradle/bytex/bytex_matrix.gradle b/gradle/bytex/bytex_matrix.gradle index b8bcfef58a..05e07ead89 100644 --- a/gradle/bytex/bytex_matrix.gradle +++ b/gradle/bytex/bytex_matrix.gradle @@ -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" -} \ No newline at end of file +}