Skip to content

Commit 48318b1

Browse files
Andrei Shikovfacebook-github-bot
Andrei Shikov
authored andcommitted
Cleanup OSS proguard rules and add @DoNotStripAny
Summary: title Changelog: [Changed][Android] - Added DoNotStripAny proguard rules Reviewed By: cortinico Differential Revision: D33921797 fbshipit-source-id: 93628d6222c74976b40efc2507a482d8a6a4fe1b
1 parent 1bf84a6 commit 48318b1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ReactAndroid/proguard-rules.pro

+4-6
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@
2424
# See http://sourceforge.net/p/proguard/bugs/466/
2525
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
2626
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
27-
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
28-
-keep,allowobfuscation @interface com.facebook.jni.annotations.DoNotStrip
2927

3028
# Do not strip any method/class that is annotated with @DoNotStrip
3129
-keep @com.facebook.proguard.annotations.DoNotStrip class *
32-
-keep @com.facebook.common.internal.DoNotStrip class *
33-
-keep @com.facebook.jni.annotations.DoNotStrip class *
3430
-keepclassmembers class * {
3531
@com.facebook.proguard.annotations.DoNotStrip *;
36-
@com.facebook.common.internal.DoNotStrip *;
37-
@com.facebook.jni.annotations.DoNotStrip *;
32+
}
33+
34+
-keep @com.facebook.proguard.annotations.DoNotStripAny class * {
35+
*;
3836
}
3937

4038
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {

0 commit comments

Comments
 (0)