Skip to content

Commit

Permalink
remove fresco proguard rules
Browse files Browse the repository at this point in the history
Summary:
Fresco now maintain proguard rules by itself (facebook/fresco#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 #19040

Differential Revision: D7992146

Pulled By: hramos

fbshipit-source-id: 9ee3dd4c6756472395ec9e36a967b469f0760999
  • Loading branch information
gengjiawen authored and facebook-github-bot committed May 14, 2018
1 parent a83cddf commit 07df365
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions ReactAndroid/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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.**

0 comments on commit 07df365

Please sign in to comment.