-
Notifications
You must be signed in to change notification settings - Fork 186
Extensions
Quinn edited this page Jan 6, 2019
·
1 revision
Every plugin has its extension.
There are some common properties of all extensions
There are four available runVariant, DEBUG, RELEASE, ALWAYS, NEVER, its default value is ALWAYS.
- DEBUG: The logic of waaving bytecode will only work in debug build mode
- RELEASE: The logic of waaving bytecode will only work in release build mode
- ALWAYS: The logic of waaving bytecode will only work in both debug and release build mode
- NEVER : The logic of waaving bytecode is disabled
Most of time, you don't need to care about it. But if you come across of build crash about duplcated-classes in /build/intermediates/transforms/dexBuilder
, you can use this property
timingHunterExt {
runVariant = 'ALWAYS'
whitelist = ['com.quinn.hunter.timing.DataSource', 'com.foo.package2'] //default value is empty
blacklist = ['com.quinn.hunter.timing.black', 'com.foo.package2'] //default value is empty
}
Most of time, you just need to use whitelist or blacklist, if you set both of them, whitelist will work, and blacklist will be ignored.
okHttpHunterExt {
runVariant = 'ALWAYS'
weaveEventListener = false
}
If you don't want to hook EventListener, you can set weaveEventListener = true
debugHunterExt {
runVariant = 'ALWAYS'
}
linelogHunterExt {
runVariant = 'ALWAYS'
}