File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ allprojects {
2020```
2121#### Step 2. 需要使用的模块内引入
2222``` gradle
23- implementation 'com.github.CodingGay.BlackReflection:core:1.0.3 '
24- annotationProcessor 'com.github.CodingGay.BlackReflection:compiler:1.0.3 '
23+ implementation 'com.github.CodingGay.BlackReflection:core:1.0.4 '
24+ annotationProcessor 'com.github.CodingGay.BlackReflection:compiler:1.0.4 '
2525```
2626
2727### Demo
@@ -75,6 +75,21 @@ BRActivityThread是程序自动生成的类,生成规则是BR + ClassName
7575@BParamClass | Parameter | 注明该参数的Class,用于反射时寻找方法
7676@BParamClassName | Parameter | 注明该参数的Class,用于反射时寻找方法
7777
78+ ### 混淆配置
79+ ```
80+ -keep class top.niunaijun.blackreflection.** {*; }
81+ -keep @top.niunaijun.blackreflection.annotation.BClass class * {*;}
82+ -keep @top.niunaijun.blackreflection.annotation.BClassName class * {*;}
83+ -keep @top.niunaijun.blackreflection.annotation.BClassNameNotProcess class * {*;}
84+ -keepclasseswithmembernames class * {
85+ @top.niunaijun.blackreflection.annotation.BField.* <methods>;
86+ @top.niunaijun.blackreflection.annotation.BFieldNotProcess.* <methods>;
87+ @top.niunaijun.blackreflection.annotation.BFieldSetNotProcess.* <methods>;
88+ @top.niunaijun.blackreflection.annotation.BMethod.* <methods>;
89+ @top.niunaijun.blackreflection.annotation.BStaticField.* <methods>;
90+ @top.niunaijun.blackreflection.annotation.BStaticMethod.* <methods>;
91+ }
92+ ```
7893### License
7994
8095> ```
You can’t perform that action at this time.
0 commit comments