You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

proguard-rules.pro 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. # React Native
  11. # Keep our interfaces so they can be used by other ProGuard rules.
  12. # See http://sourceforge.net/p/proguard/bugs/466/
  13. -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
  14. -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
  15. -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
  16. # Do not strip any method/class that is annotated with @DoNotStrip
  17. -keep @com.facebook.proguard.annotations.DoNotStrip class *
  18. -keep @com.facebook.common.internal.DoNotStrip class *
  19. -keepclassmembers class * {
  20. @com.facebook.proguard.annotations.DoNotStrip *;
  21. @com.facebook.common.internal.DoNotStrip *;
  22. }
  23. -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
  24. void set*(***);
  25. *** get*();
  26. }
  27. -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
  28. -keep class * extends com.facebook.react.bridge.NativeModule { *; }
  29. -keepclassmembers,includedescriptorclasses class * { native <methods>; }
  30. -keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
  31. -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
  32. -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
  33. -dontwarn com.facebook.react.**
  34. -keep,includedescriptorclasses class com.facebook.react.bridge.** { *; }
  35. # okhttp
  36. -keepattributes Signature
  37. -keepattributes *Annotation*
  38. -keep class okhttp3.** { *; }
  39. -keep interface okhttp3.** { *; }
  40. -dontwarn okhttp3.**
  41. # okio
  42. -keep class sun.misc.Unsafe { *; }
  43. -dontwarn java.nio.file.*
  44. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  45. -keep class okio.** { *; }
  46. -dontwarn okio.**
  47. # WebRTC
  48. -keep class org.webrtc.** { *; }
  49. -dontwarn org.chromium.build.BuildHooksAndroid
  50. # Jisti Meet SDK
  51. -keep class org.jitsi.meet.** { *; }
  52. -keep class org.jitsi.meet.sdk.** { *; }
  53. # We added the following when we switched minifyEnabled on. Probably because we
  54. # ran the app and hit problems...
  55. -keep class com.facebook.react.bridge.CatalystInstanceImpl { *; }
  56. -keep class com.facebook.react.bridge.ExecutorToken { *; }
  57. -keep class com.facebook.react.bridge.JavaScriptExecutor { *; }
  58. -keep class com.facebook.react.bridge.ModuleRegistryHolder { *; }
  59. -keep class com.facebook.react.bridge.ReadableType { *; }
  60. -keep class com.facebook.react.bridge.queue.NativeRunnable { *; }
  61. -keep class com.facebook.react.devsupport.** { *; }
  62. -dontwarn com.facebook.react.devsupport.**
  63. -dontwarn com.google.appengine.**
  64. -dontwarn com.squareup.okhttp.**
  65. -dontwarn javax.servlet.**
  66. # ^^^ We added the above when we switched minifyEnabled on.
  67. # Rule to avoid build errors related to SVGs.
  68. -keep public class com.horcrux.svg.** {*;}