proguard-rules.pro 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. -keep class com.facebook.ads.** { *; }
  23. # Proguard okhttp for release
  24. -keep class okhttp3.** { *; }
  25. -dontwarn okhttp3.**
  26. -keep class okio.** { *; }
  27. -dontwarn okio.**
  28. # Proguard Android Webivew for release. you can comment if you are not using a webview
  29. -keep public class android.net.http.SslError
  30. -keep public class android.webkit.WebViewClient
  31. -dontwarn android.webkit.WebView
  32. -dontwarn android.net.http.SslError
  33. -dontwarn android.webkit.WebViewClient
  34. # keep anysdk for release. you can comment if you are not using anysdk
  35. -keep public class com.anysdk.** { *; }
  36. -dontwarn com.anysdk.**
  37. # This is generated automatically by the Android Gradle plugin.
  38. -dontwarn android.hardware.BatteryState
  39. -dontwarn android.hardware.lights.Light
  40. -dontwarn android.hardware.lights.LightState$Builder
  41. -dontwarn android.hardware.lights.LightState
  42. -dontwarn android.hardware.lights.LightsManager$LightsSession
  43. -dontwarn android.hardware.lights.LightsManager
  44. -dontwarn android.hardware.lights.LightsRequest$Builder
  45. -dontwarn android.hardware.lights.LightsRequest
  46. -dontwarn android.net.ssl.SSLSockets
  47. -dontwarn android.os.VibratorManager
  48. -dontwarn com.facebook.infer.annotation.Nullsafe$Mode
  49. -dontwarn com.facebook.infer.annotation.Nullsafe