Açıklama Yok

proguard-rules.pro 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # TextLayoutBuilder uses a non-public Android constructor within StaticLayout.
  44. # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details.
  45. -dontwarn android.text.StaticLayout
  46. # okhttp
  47. -keepattributes Signature
  48. -keepattributes *Annotation*
  49. -keep class okhttp3.** { *; }
  50. -keep interface okhttp3.** { *; }
  51. -dontwarn okhttp3.**
  52. # okio
  53. -keep class sun.misc.Unsafe { *; }
  54. -dontwarn java.nio.file.*
  55. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  56. -dontwarn okio.**