Fresco ProGuard 配置

彭鹭洋
2023-12-01

搬运至官网API,方便查看


Android Studio / Gradle


android {
  buildTypes
{
    release
{
      minifyEnabled
true
      proguardFiles
getDefaultProguardFile('proguard-android.txt'),
       
'proguard-fresco.pro'
   
}
 
}
}

 

Eclipse

 

# Keepour interfaces so they can be used by other ProGuard rules.
# See http://sourceforge.net/p/proguard/bugs/466/
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip

# Do notstrip any method/class that is annotated with @DoNotStrip
-keep @com.facebook.common.internal.DoNotStrip class *
-keepclassmembers class * {
   @com.facebook.common.internal.DoNotStrip *;
}

# Keepnative methods
-keepclassmembers class * {
    native <methods>;
}

-dontwarnokio.**
-dontwarn javax.annotation.**
-dontwarn com.android.volley.toolbox.**



 类似资料: