Skip to content

Commit cfcf5eb

Browse files
janicduplessisfacebook-github-bot
authored andcommitted
Add new DoNotStrip class to proguard config (#27934)
Summary: JNI now comes from https://github.com/facebookincubator/fbjni and it uses a different DoNotStrip class (https://github.com/facebookincubator/fbjni/blob/master/java/com/facebook/jni/annotations/DoNotStrip.java) so we need to include it in the proguard config. ## Changelog [Android] [Fixed] - Add new DoNotStrip class to proguard config Pull Request resolved: #27934 Test Plan: Test that it fixes a crash related to missing NativeRunnable class in release builds. Differential Revision: D19690580 Pulled By: cpojer fbshipit-source-id: cb4e2eaae35fb3a9d68f04c57cc973914207be73
1 parent ff3b839 commit cfcf5eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ReactAndroid/proguard-rules.pro

+3
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@
2525
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
2626
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
2727
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
28+
-keep,allowobfuscation @interface com.facebook.jni.annotations.DoNotStrip
2829

2930
# Do not strip any method/class that is annotated with @DoNotStrip
3031
-keep @com.facebook.proguard.annotations.DoNotStrip class *
3132
-keep @com.facebook.common.internal.DoNotStrip class *
33+
-keep @com.facebook.jni.annotations.DoNotStrip class *
3234
-keepclassmembers class * {
3335
@com.facebook.proguard.annotations.DoNotStrip *;
3436
@com.facebook.common.internal.DoNotStrip *;
37+
@com.facebook.jni.annotations.DoNotStrip *;
3538
}
3639

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

0 commit comments

Comments
 (0)