ProGuard ConfigurationΒΆ

If you are using ProGuard when building your app with Socialize you will need to add some lines to your proguard.cfg file to preserve class the class names used by Socialize.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Add the Socalize JAR file as a library jar
-libraryjars libs/socialize-xxx.jar

# Ignore Socialize warnings
-dontwarn com.socialize.**
-dontwarn com.facebook.**

# Keep Socialize classes
-keep public class com.socialize.** { *; }

# Keep Facebook classes
-keep public class com.facebook.** { *; }

# Keep Signatures to cater for Proguard losing generic type information
-keepattributes Signature