[Plugin]引入LancetX轻量级AOP插件,方便操作字节码

This commit is contained in:
renwj
2022-10-21 10:49:28 +08:00
parent 27c7fe9d85
commit 5c14cd6531
3 changed files with 21 additions and 6 deletions

View File

@@ -41,11 +41,20 @@ if (!isAndroidTestBuild()) {
enable true
enableInDebug true
logLevel "DEBUG"
//白名单中的类不进行替换
// white_list = [
// 'leakcanary.*',
// 'com.loc.*'
// ]
}
}
if (!isAndroidTestBuild()) {
apply plugin: 'LancetX'
LancetX {
enable true
enableInDebug true
weaveGroup {
crash_fix {
enable true
}
}
}
}
@@ -249,6 +258,7 @@ dependencies {
debugImplementation rootProject.ext.dependencies.debugleakcanary
releaseImplementation rootProject.ext.dependencies.releaseleakcanary
implementation rootProject.ext.dependencies.android_start_up
implementation rootProject.ext.dependencies.lancetx_runtime
// // 暂不使用Shizuku-API
// implementation rootProject.ext.dependencies.shizuku_provider