Skip to content

Commit 4e7b715

Browse files
authored
Add Proguard rules from the documentation to the test app (#122)
1 parent 2f75fd1 commit 4e7b715

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test-app/proguard-rules.pro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,28 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18+
19+
## Below are the suggested rules from the developer documentation:
20+
## https://developers.optimizely.com/x/solutions/sdks/reference/index.html?language=android&platform=mobile#installation
21+
22+
# Optimizely
23+
-keep class com.optimizely.ab.** { *; }
24+
25+
# Gson
26+
-keepnames class com.google.gson.Gson
27+
28+
# Safely ignore warnings about other libraries since we are using Gson
29+
-dontwarn com.fasterxml.jackson.**
30+
-dontwarn org.json.**
31+
32+
# Annotations
33+
-dontwarn javax.annotation.**
34+
35+
# Findbugs
36+
-dontwarn edu.umd.cs.findbugs.annotations.SuppressFBWarnings
37+
38+
# slf4j
39+
-dontwarn org.slf4j.**
40+
41+
# Android Logger
42+
#-keep class com.noveogroup.android.log.** { *; }

0 commit comments

Comments
 (0)