AppsFlyer ProGurad rules

AppsFlyer - mobile attribution and marketing analytics platform, helping app marketers to measure In-App events, ROI, lifetime value, CPI, cocial Ads, CPA, TV campaigns, QR codes and Email campaigns.

ProGuard rules for AppsFlyer

ProGuard typically reads the input jars and removes unused classes, fields, methods, and attributes. ProGuard obfuscates classes, fields, and methods with short names. To fix errors specify the following rules in configuration file.

-dontwarn com.appsflyer.AFKeystoreWrapper

For Google Play Services library add the following lines.

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
    public static final *** NULL;
}

-keepnames class * implements android.os.Parcelable
-keepclassmembers class * implements android.os.Parcelable {
  public static final *** CREATOR;
}

-keep @interface android.support.annotation.Keep
-keep @android.support.annotation.Keep class *
-keepclasseswithmembers class * {
  @android.support.annotation.Keep ;
}
-keepclasseswithmembers class * {
  @android.support.annotation.Keep ;
}

-keep @interface com.google.android.gms.common.annotation.KeepName
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
  @com.google.android.gms.common.annotation.KeepName *;
}

-keep @interface com.google.android.gms.common.util.DynamiteApi
-keep public @com.google.android.gms.common.util.DynamiteApi class * {
  public ;
  public ;
}

-dontwarn android.security.NetworkSecurityPolicy

For more information about AppsFlyer please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules