Advertisement
Guest User

Proguard-options

a guest
Apr 1st, 2014
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.07 KB | None | 0 0
  1. # To enable ProGuard in your project, edit project.properties
  2. # to define the proguard.config property as described in that file.
  3. #
  4. # Add project specific ProGuard rules here.
  5. # By default, the flags in this file are appended to flags specified
  6. # in ${sdk.dir}/tools/proguard/proguard-android.txt
  7. # You can edit the include path and order by changing the ProGuard
  8. # include property in project.properties.
  9. #
  10. # For more details, see
  11. #   http://developer.android.com/guide/developing/tools/proguard.html
  12.  
  13. # Add any project specific keep options here:
  14.  
  15. # If your project uses WebView with JS, uncomment the following
  16. # and specify the fully qualified class name to the JavaScript interface
  17. # class:
  18. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  19. #   public *;
  20. #}
  21. -optimizationpasses 5
  22. -dontusemixedcaseclassnames
  23. -dontskipnonpubliclibraryclasses
  24. -dontpreverify
  25. -verbose
  26. -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  27.  
  28. -keep public class * extends android.app.Activity
  29. -keep public class * extends android.app.Application
  30. -keep public class * extends android.app.Service
  31. -keep public class * extends android.content.BroadcastReceiver
  32. -keep public class * extends android.content.ContentProvider
  33. -keep public class * extends android.app.backup.BackupAgentHelper
  34. -keep public class * extends android.preference.Preference
  35. -keep public class com.android.vending.licensing.ILicensingService
  36.  
  37. -keep class [your.packet.slug]{
  38.      static <methods>;
  39. }
  40.  
  41. -keepclasseswithmembernames class * {
  42.     native <methods>;
  43. }
  44.  
  45. -keepclasseswithmembers class * {
  46.     public <init>(android.content.Context, android.util.AttributeSet);
  47. }
  48.  
  49. -keepclasseswithmembers class * {
  50.     public <init>(android.content.Context, android.util.AttributeSet, int);
  51. }
  52.  
  53. -keepclassmembers class * extends android.app.Activity {
  54.    public void *(android.view.View);
  55. }
  56.  
  57. -keepclassmembers enum * {
  58.     public static **[] values();
  59.     public static ** valueOf(java.lang.String);
  60. }
  61.  
  62. -keep class com.stonetrip.android.tools.S3DXAndroidTools{
  63.     static <methods>;
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement