2016-02-22 22:04:42 +00:00
|
|
|
# Add project specific ProGuard rules here.
|
|
|
|
# By default, the flags in this file are appended to flags specified
|
|
|
|
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
|
|
|
|
# You can edit the include path and order by changing the proguardFiles
|
|
|
|
# directive in build.gradle.
|
|
|
|
#
|
|
|
|
# For more details, see
|
|
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
|
|
|
|
# Add any project specific keep options here:
|
|
|
|
|
|
|
|
# Disabling obfuscation is useful if you collect stack traces from production crashes
|
|
|
|
# (unless you are using a system that supports de-obfuscate the stack traces).
|
|
|
|
-dontobfuscate
|
|
|
|
|
|
|
|
# React Native
|
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
-keep class com.facebook.hermes.unicode.** { *; }
|
|
|
|
-keep class com.facebook.jni.** { *; }
|
|
|
|
|
2016-02-22 22:04:42 +00:00
|
|
|
# Keep our interfaces so they can be used by other ProGuard rules.
|
|
|
|
# See http://sourceforge.net/p/proguard/bugs/466/
|
|
|
|
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
|
|
|
|
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
|
2016-07-20 09:03:05 +00:00
|
|
|
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
|
2016-02-22 22:04:42 +00:00
|
|
|
|
|
|
|
# Do not strip any method/class that is annotated with @DoNotStrip
|
|
|
|
-keep @com.facebook.proguard.annotations.DoNotStrip class *
|
2016-07-20 09:03:05 +00:00
|
|
|
-keep @com.facebook.common.internal.DoNotStrip class *
|
2016-02-22 22:04:42 +00:00
|
|
|
-keepclassmembers class * {
|
|
|
|
@com.facebook.proguard.annotations.DoNotStrip *;
|
2016-07-20 09:03:05 +00:00
|
|
|
@com.facebook.common.internal.DoNotStrip *;
|
2016-02-22 22:04:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
|
|
|
|
void set*(***);
|
|
|
|
*** get*();
|
|
|
|
}
|
|
|
|
|
|
|
|
-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
|
|
|
|
-keep class * extends com.facebook.react.bridge.NativeModule { *; }
|
|
|
|
-keepclassmembers,includedescriptorclasses class * { native <methods>; }
|
|
|
|
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
|
|
|
|
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
|
|
|
|
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
|
|
|
|
|
|
|
|
-dontwarn com.facebook.react.**
|
|
|
|
|
2017-10-19 04:38:20 +00:00
|
|
|
# TextLayoutBuilder uses a non-public Android constructor within StaticLayout.
|
|
|
|
# See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details.
|
|
|
|
-dontwarn android.text.StaticLayout
|
|
|
|
|
2016-02-22 22:04:42 +00:00
|
|
|
# okhttp
|
|
|
|
|
|
|
|
-keepattributes Signature
|
|
|
|
-keepattributes *Annotation*
|
2016-07-20 09:03:05 +00:00
|
|
|
-keep class okhttp3.** { *; }
|
|
|
|
-keep interface okhttp3.** { *; }
|
|
|
|
-dontwarn okhttp3.**
|
2016-02-22 22:04:42 +00:00
|
|
|
|
|
|
|
# okio
|
|
|
|
|
|
|
|
-keep class sun.misc.Unsafe { *; }
|
|
|
|
-dontwarn java.nio.file.*
|
|
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
|
|
|
-dontwarn okio.**
|