Monday, January 7, 2013

proguard.cfg - android develop file content log

proguard.cfg files:

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-optimizations !code/simplification/arithmetic
-keepdirectories


-keep class com.iflytek.**{*;}

-dontwarn com.google.ads.**

-keep public class * extends com.phonegap.api.Plugin
-keep public class * extends org.apache.cordova.api.Plugin
-keep public class org.apache.cordova.DroidGap
-keep public class org.apache.cordova.**
-libraryjars libs/cordova-2.2.0.jar
-dontwarn android.webkit.*
-dontwarn org.apache.**

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class com.android.vending.licensing.ILicensingService

-keepclasseswithmembernames class * {
native <methods>;
}

-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}



-------------------------------------------------------------------------------


error:

Warning: com.google.ads.m: can't find referenced class com.google.ads.internal.state.AdState



fixed:

-dontwarn com.google.ads.**



 


error:

Warning: org.apache.cordova.CameraLauncher: can't find referenced class org.apache.commons.codec.binary.Base64



fixed:

-keep public class * extends com.phonegap.api.Plugin 
-keep public class * extends org.apache.cordova.api.Plugin
-keep public class org.apache.cordova.DroidGap
-keep public class org.apache.cordova.**
-libraryjars libs/cordova-2.2.0.jar
-dontwarn android.webkit.*
-dontwarn org.apache.**


for ifly tts: (voicecloud.cn)
-keep class com.iflytek.**{*;}

No comments: