新增:是否使用leakcanary检测内存泄漏(打正式包时请设置为false)

This commit is contained in:
pppscn 2023-02-12 11:30:21 +08:00
parent ab668220fc
commit 593100a143
2 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,7 @@ configurations.each { configuration ->
configuration.dependencies.add(dependencies.create(deps.xlibrary.xrouter_compiler))
}
if (configuration.name == "debugImplementation") {
if (isNeedLeakcanary.toBoolean() && configuration.name == "debugImplementation") {
//leak
configuration.dependencies.add(dependencies.create(deps.leakcanary))
}

View File

@ -13,7 +13,10 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# org.gradle.parallel=true
# 是否打包APK打正式包时请设置为true,使用正式的签名
isNeedPackage=true
# 是否排除Frpc动态库打正式包时请设置为true
excludeFrpclib=true
# 是否使用leakcanary检测内存泄漏打正式包时请设置为false
isNeedLeakcanary=false
# 是否使用booster优化APK这里需要注意gradle的版本对于最新的gradle版本可能存在兼容问题
isUseBooster=false
android.precompileDependenciesResources=false