Skip to content

Commit

Permalink
Add Proguard rules from the documentation to the test app (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotykim authored Jul 14, 2017
1 parent 2f75fd1 commit 4e7b715
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test-app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,28 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

## Below are the suggested rules from the developer documentation:
## https://developers.optimizely.com/x/solutions/sdks/reference/index.html?language=android&platform=mobile#installation

# Optimizely
-keep class com.optimizely.ab.** { *; }

# Gson
-keepnames class com.google.gson.Gson

# Safely ignore warnings about other libraries since we are using Gson
-dontwarn com.fasterxml.jackson.**
-dontwarn org.json.**

# Annotations
-dontwarn javax.annotation.**

# Findbugs
-dontwarn edu.umd.cs.findbugs.annotations.SuppressFBWarnings

# slf4j
-dontwarn org.slf4j.**

# Android Logger
#-keep class com.noveogroup.android.log.** { *; }

0 comments on commit 4e7b715

Please sign in to comment.