Skip to content

Commit e379ff6

Browse files
committed
完善代码
1 parent ddbc6f0 commit e379ff6

4 files changed

Lines changed: 17 additions & 9 deletions

File tree

app/proguard-rules.pro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,8 @@
8686

8787
# AndroidAop必备混淆规则 -----end-----
8888

89-
#-printmapping proguard-map.txt
89+
#-printmapping proguard-map.txt
90+
91+
-keep class * extends android.view.View {
92+
<init>(...);
93+
}

app/src/main/java/com/flyjingfish/androidaop/ViewReplaceAop.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import com.flyjingfish.android_aop_annotation.anno.AndroidAopReplaceClass
88
import com.flyjingfish.android_aop_annotation.anno.AndroidAopReplaceMethod
99
import com.flyjingfish.android_aop_annotation.enums.MatchType
1010

11+
/**
12+
* 注意配合混淆规则,防止构造方法被删掉
13+
*/
14+
1115
@AndroidAopReplaceClass("android.view.View", type = MatchType.EXTENDS)
1216
object ViewReplaceAop {
1317

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SonatypeTestCode = 1702
4747
TestType = -1
4848
publishGradle = 0
4949

50-
androidAop.debugMode = true
50+
androidAop.debugMode = false
5151
androidAop.debugMode.variantOnlyDebug = true
5252
androidAop.reflectInvokeMethod = false
5353
androidAop.reflectInvokeMethod.variantOnlyDebug = false

test-lib/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ plugins {
99
apply from: "$rootDir/gradle/android_base.gradle"
1010
android {
1111
namespace 'com.flyjingfish.test_lib'
12-
compileSdk 33
13-
lint {
14-
targetSdk 33
15-
}
16-
testOptions {
17-
targetSdk 33
18-
}
12+
// compileSdk 33
13+
// lint {
14+
// targetSdk 33
15+
// }
16+
// testOptions {
17+
// targetSdk 33
18+
// }
1919
// kotlinOptions {
2020
// jvmTarget = '11'
2121
// }

0 commit comments

Comments
 (0)