Skip to content

Instantly share code, notes, and snippets.

@munho
Last active July 18, 2018 10:13
Show Gist options
  • Save munho/ca15927c02ea42ab5ccf to your computer and use it in GitHub Desktop.
Save munho/ca15927c02ea42ab5ccf to your computer and use it in GitHub Desktop.
proguard in cordova ionic android app
# ionic
-keep class org.apache.cordova.** { *; }
-keep public class * extends org.apache.cordova.CordovaPlugin
-keep class com.ionic.keyboard.IonicKeyboard.** { *; }
-keepclassmembers class com.your.package.YourWebViewClass$JSInterfaceClass {
public *;
}
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
http://www.tagwith.com/question_290772_how-to-use-proguard-in-cordova-android-app
https://github.com/dev-mobile/cordova-starter/blob/master/android_cordova_starter/HOWTO.txt
@ffabreti
Copy link

Hi there, I have enabled proguard.config= (line 9) on platforms/android/project.properties but I can still decompile the apk with original code.

Any clues why proguard is not making its job ?

@Harika511
Copy link

same problem. please help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment