Skip to content

Commit 6a2de37

Browse files
committed
Fix proguard optimization rules
Signed-off-by: Muntashir Al-Islam <[email protected]>
1 parent 932fedb commit 6a2de37

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

app/proguard-rules.pro

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1-
# Add project specific ProGuard rules here.
2-
# By default, the flags in this file are appended to flags specified
3-
# in /home/harsha/Android/Sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
6-
#
7-
# For more details, see
8-
# http://developer.android.com/guide/developing/tools/proguard.html
1+
-keep class com.google.gson.reflect.TypeToken { *; }
2+
-keep class * extends com.google.gson.reflect.TypeToken
93

10-
# Add any project specific keep options here:
11-
12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
4+
-keepattributes Signature
5+
-keepclassmembers class * {
6+
@com.google.gson.annotations.SerializedName <fields>;
7+
}
188

19-
# This is not required because of the "Keep" annotation, keep for completeness
20-
-keepclassmembers class io.github.muntashirakon.bcl.ControlFile {
21-
private *;
9+
-keep class io.github.muntashirakon.bcl.ControlFile {
10+
*;
2211
}
12+
2313
# This is safe for Android >= 2.0
2414
-optimizations code/simplification/arithmetic
2515

0 commit comments

Comments
 (0)