react-native-navigation的迁移库

proguard-rules.pro 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
  25. # Do not strip any method/class that is annotated with @DoNotStrip
  26. -keep @com.facebook.proguard.annotations.DoNotStrip class *
  27. -keep @com.facebook.common.internal.DoNotStrip class *
  28. -keepclassmembers class * {
  29. @com.facebook.proguard.annotations.DoNotStrip *;
  30. @com.facebook.common.internal.DoNotStrip *;
  31. }
  32. -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
  33. void set*(***);
  34. *** get*();
  35. }
  36. -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
  37. -keep class * extends com.facebook.react.bridge.NativeModule { *; }
  38. -keepclassmembers,includedescriptorclasses class * { native <methods>; }
  39. -keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
  40. -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
  41. -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
  42. -dontwarn com.facebook.react.**
  43. # okhttp
  44. -keepattributes Signature
  45. -keepattributes *Annotation*
  46. -keep class okhttp3.** { *; }
  47. -keep interface okhttp3.** { *; }
  48. -dontwarn okhttp3.**
  49. # okio
  50. -keep class sun.misc.Unsafe { *; }
  51. -dontwarn java.nio.file.*
  52. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  53. -dontwarn okio.**