mirror of
https://github.com/status-im/react-native.git
synced 2025-01-25 00:39:03 +00:00
remove fresco proguard rules
Summary: Fresco now maintain proguard rules by itself (https://github.com/facebook/fresco/pull/2075), so it won't be necessary for react native copy its rules. Run RNTTester Android app in release mode, app build successful and won't crash in ImageModule. none [ANDROID] [BUGFIX] [PROGUARD] - remove fresco proguard rules Closes https://github.com/facebook/react-native/pull/19040 Differential Revision: D7992146 Pulled By: hramos fbshipit-source-id: 9ee3dd4c6756472395ec9e36a967b469f0760999
This commit is contained in:
parent
a83cddf037
commit
07df36557c
19
ReactAndroid/proguard-rules.pro
vendored
19
ReactAndroid/proguard-rules.pro
vendored
@ -69,22 +69,3 @@
|
||||
-dontwarn java.nio.file.*
|
||||
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
||||
-dontwarn okio.**
|
||||
|
||||
# Fresco
|
||||
# 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.soloader.DoNotOptimize
|
||||
|
||||
# Do not strip any method/class that is annotated with @DoNotOptimize
|
||||
-keep @com.facebook.soloader.DoNotOptimize class *
|
||||
-keepclassmembers class * {
|
||||
@com.facebook.soloader.DoNotOptimize *;
|
||||
}
|
||||
|
||||
# Keep native methods
|
||||
-keepclassmembers class * {
|
||||
native <methods>;
|
||||
}
|
||||
|
||||
-dontwarn javax.annotation.**
|
||||
-dontwarn com.facebook.infer.**
|
||||
|
Loading…
x
Reference in New Issue
Block a user