Android Optimizely ProGuard rules

Optimizely – is a platform that lets you experiment on everything—from design choices to algorithms.

The Optimizely platform technology provides A/B testing tools, in which two versions of a web page can be compared for performance, and multivariate testing.

ProGuard rules for Optimizely

ProGuard recursively determines which classes and methods are used. All other classes and class members are discarded. By default, short names like 'a', 'b', etc. are used as obfuscated names. Add the following rules in proguard-rules.pro configuration file.

################################## 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.** { *; }

For more information about Optimizely please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules