Skip to content

Commit a5e2e65

Browse files
committed
完善代码
1 parent d8e9e86 commit a5e2e65

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/config/AndroidAopConfig.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ open class AndroidAopConfig {
7979
AndroidAopConfig.excludes.add(Utils.extraPackage)
8080
AndroidAopConfig.verifyLeafExtends = verifyLeafExtends
8181
AndroidAopConfig.cutInfoJson = cutInfoJson
82-
AndroidAopConfig.androidAopConfig = this
8382
// AndroidAopConfig.increment = increment
8483
}
8584

@@ -96,7 +95,6 @@ open class AndroidAopConfig {
9695
var verifyLeafExtends = true
9796
var cutInfoJson = false
9897
var increment = false
99-
var androidAopConfig:AndroidAopConfig?=null
10098
internal fun syncConfig(project: Project){
10199
val androidAopConfig = project.extensions.getByType(AndroidAopConfig::class.java)
102100
androidAopConfig.initConfig()

android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/plugin/CompilePlugin.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ class CompilePlugin(private val fromRootSet:Boolean): BasePlugin() {
160160
} catch (_: Throwable) {
161161
}
162162
variants.all { variant ->
163-
if (syncConfig){
164-
AndroidAopConfig.syncConfig(project)
165-
}
166163
val javaCompile: AbstractCompile =
167164
if (DefaultGroovyMethods.hasProperty(variant, "javaCompileProvider") != null) {
168165
//gradle 4.10.1 +

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ SonatypeTestCode = 1702
4646
# 0 mavenLocal 1 SonatypeCache 2 mavenCentral
4747
TestType = 0
4848

49-
androidAop.debugMode = false
49+
androidAop.debugMode = true
5050
androidAop.debugMode.variantOnlyDebug = true
5151
androidAop.reflectInvokeMethod = false
5252
androidAop.reflectInvokeMethod.variantOnlyDebug = false

0 commit comments

Comments
 (0)