react-native-navigation的迁移库

proguard-rules.pro 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in /usr/local/Cellar/android-sdk/24.3.3/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. # Disabling obfuscation is useful if you collect stack traces from production crashes
  17. # (unless you are using a system that supports de-obfuscate the stack traces).
  18. -dontobfuscate
  19. # React Native
  20. # Keep our interfaces so they can be used by other ProGuard rules.
  21. # See http://sourceforge.net/p/proguard/bugs/466/
  22. -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
  23. -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
  24. # Do not strip any method/class that is annotated with @DoNotStrip
  25. -keep @com.facebook.proguard.annotations.DoNotStrip class *
  26. -keepclassmembers class * {
  27. @com.facebook.proguard.annotations.DoNotStrip *;
  28. }
  29. -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
  30. void set*(***);
  31. *** get*();
  32. }
  33. -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
  34. -keep class * extends com.facebook.react.bridge.NativeModule { *; }
  35. -keepclassmembers,includedescriptorclasses class * { native <methods>; }
  36. -keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
  37. -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
  38. -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
  39. -dontwarn com.facebook.react.**
  40. # okhttp
  41. -keepattributes Signature
  42. -keepattributes *Annotation*
  43. -keep class com.squareup.okhttp.** { *; }
  44. -keep interface com.squareup.okhttp.** { *; }
  45. -dontwarn com.squareup.okhttp.**
  46. # okio
  47. -keep class sun.misc.Unsafe { *; }
  48. -dontwarn java.nio.file.*
  49. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  50. -dontwarn okio.**