Integrate your app / Android SDK integration |
If you are building your app using Proguard, which is common for release builds, you need to add the following code to your Proguard configuration.
These flags are used to preserve Localytics source and Google Play Services dependencies. They are all necessary for the SDK to function correctly.
-keep class com.localytics.android.** { *; } # Required for attribution -keep class com.google.android.gms.ads.** { *; } # Required for Google Play Services (see http://developer.android.com/google/play-services/setup.html) -keep class * extends java.util.ListResourceBundle { protected Object[][] getContents(); -keep class com.google.android.gms.gcm.**{ *; } } -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { public static final *** NULL; } -keepnames @com.google.android.gms.common.annotation.KeepName class * -keepclassmembernames class * { @com.google.android.gms.common.annotation.KeepName *; } -keepnames class * implements android.os.Parcelable { public static final ** CREATOR; }