Skip to content

Commit 9e10b67

Browse files
committed
Update proguard setting
Keep all names execpt com.devgrapher.ocebook package.
1 parent d2bdcdd commit 9e10b67

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

OCEBook/app/build_stable.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ android {
3737
}
3838
release {
3939
minifyEnabled = true
40+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
4041
}
4142
}
4243
}

OCEBook/app/proguard-rules.pro

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@
1212
# If your project uses WebView with JS, uncomment the following
1313
# and specify the fully qualified class name to the JavaScript interface
1414
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
15+
-keepclassmembers class com.devgrapher.ocebook.readium.ReadiumContext.JsInterface {
16+
public *;
17+
}
18+
19+
-keepnames class com.koushikdutta.async.** { *; }
20+
-keep class com.koushikdutta.async.* { *;}
21+
22+
-dontwarn android.support.v4.**
23+
-keepnames class android.support.v4.** { *; }
24+
-keep class android.support.v4.* { *; }
25+
26+
-dontwarn android.support.v7.**
27+
-keepnames class android.support.v7.** { *; }
28+
-keep class android.support.v7.* { *; }
29+
30+
-keepnames class org.** { *; }
31+
-keep class org.** { *; }
32+
33+
-keepclassmembers class *.R$ {
34+
public static *;
35+
}
36+
37+
-keep class *.R$
38+
39+
-keepattributes Annotation

0 commit comments

Comments
 (0)