proguard-rules.pro 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.**
  36. # This is generated automatically by the Android Gradle plugin.
  37. -dontwarn android.hardware.BatteryState
  38. -dontwarn android.hardware.lights.Light
  39. -dontwarn android.hardware.lights.LightState$Builder
  40. -dontwarn android.hardware.lights.LightState
  41. -dontwarn android.hardware.lights.LightsManager$LightsSession
  42. -dontwarn android.hardware.lights.LightsManager
  43. -dontwarn android.hardware.lights.LightsRequest$Builder
  44. -dontwarn android.hardware.lights.LightsRequest
  45. -dontwarn android.net.ssl.SSLSockets
  46. -dontwarn android.os.VibratorManager