|
15 | 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { |
16 | 16 | # public *; |
17 | 17 | #} |
18 | | - |
19 | | -# Disabling obfuscation is useful if you collect stack traces from production crashes |
20 | | -# (unless you are using a system that supports de-obfuscate the stack traces). |
21 | | --dontobfuscate |
22 | | - |
23 | | -# React Native |
24 | | - |
25 | | -# Keep our interfaces so they can be used by other ProGuard rules. |
26 | | -# See http://sourceforge.net/p/proguard/bugs/466/ |
27 | | --keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip |
28 | | --keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters |
29 | | --keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip |
30 | | - |
31 | | -# Do not strip any method/class that is annotated with @DoNotStrip |
32 | | --keep @com.facebook.proguard.annotations.DoNotStrip class * |
33 | | --keep @com.facebook.common.internal.DoNotStrip class * |
34 | | --keepclassmembers class * { |
35 | | - @com.facebook.proguard.annotations.DoNotStrip *; |
36 | | - @com.facebook.common.internal.DoNotStrip *; |
37 | | -} |
38 | | - |
39 | | --keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { |
40 | | - void set*(***); |
41 | | - *** get*(); |
42 | | -} |
43 | | - |
44 | | --keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } |
45 | | --keep class * extends com.facebook.react.bridge.NativeModule { *; } |
46 | | --keepclassmembers,includedescriptorclasses class * { native <methods>; } |
47 | | --keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; } |
48 | | --keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; } |
49 | | --keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; } |
50 | | - |
51 | | --dontwarn com.facebook.react.** |
52 | | - |
53 | | -# TextLayoutBuilder uses a non-public Android constructor within StaticLayout. |
54 | | -# See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. |
55 | | --dontwarn android.text.StaticLayout |
56 | | - |
57 | | -# okhttp |
58 | | - |
59 | | --keepattributes Signature |
60 | | --keepattributes *Annotation* |
61 | | --keep class okhttp3.** { *; } |
62 | | --keep interface okhttp3.** { *; } |
63 | | --dontwarn okhttp3.** |
64 | | - |
65 | | -# okio |
66 | | - |
67 | | --keep class sun.misc.Unsafe { *; } |
68 | | --dontwarn java.nio.file.* |
69 | | --dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement |
70 | | --dontwarn okio.** |
0 commit comments