proguard-rules.pro 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt
  4. # You can edit the include path and order by changing the proguardFiles
  5. # directive in build.gradle.
  6. #
  7. # For more details, see
  8. # http://developer.android.com/guide/developing/tools/proguard.html
  9. # Add any project specific keep options here:
  10. # If your project uses WebView with JS, uncomment the following
  11. # and specify the fully qualified class name to the JavaScript interface
  12. # class:
  13. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  14. # public *;
  15. #}
  16. # Proguard Cocos2d-x-lite for release
  17. -keep public class org.cocos2dx.** { *; }
  18. -dontwarn org.cocos2dx.**
  19. # Proguard Apache HTTP for release
  20. -keep class org.apache.http.** { *; }
  21. -dontwarn org.apache.http.**
  22. # Proguard okhttp for release
  23. -keep class okhttp3.** { *; }
  24. -dontwarn okhttp3.**
  25. -keep class okio.** { *; }
  26. -dontwarn okio.**
  27. # Proguard Android Webivew for release. you can comment if you are not using a webview
  28. -keep public class android.net.http.SslError
  29. -keep public class android.webkit.WebViewClient
  30. -dontwarn android.webkit.WebView
  31. -dontwarn android.net.http.SslError
  32. -dontwarn android.webkit.WebViewClient
  33. # keep anysdk for release. you can comment if you are not using anysdk
  34. -keep public class com.anysdk.** { *; }
  35. -dontwarn com.anysdk.**