You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-source/src/en/config/r8-proguard.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,15 @@
3
3
> In most scenarios, Android application installation packages can reduce size through obfuscation.
4
4
> Here is a configuration method for obfuscation rules.
5
5
6
-
`KavaRef` does not require any additional configuration of obfuscation rules in Android projects.
6
+
If you are using the [kavaref-extension](../library/kavaref-extension) module and using the `TypeRef` feature, please add the following rule to your `proguard-rules.pro` file.
7
+
8
+
```
9
+
-keepattributes Signature
10
+
```
11
+
12
+
`TypeRef` has been annotated with `Keep`. If it doesn't work, please manually add the following rules to keep the class.
13
+
14
+
```
15
+
-keep class com.highcapable.kavaref.extension.TypeRef {*;}
0 commit comments