From 48318b1542910b939ab977c0bc82e98f098abe50 Mon Sep 17 00:00:00 2001 From: Andrei Shikov Date: Wed, 2 Feb 2022 12:52:54 -0800 Subject: [PATCH] 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 --- ReactAndroid/proguard-rules.pro | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ReactAndroid/proguard-rules.pro b/ReactAndroid/proguard-rules.pro index 2c7c818cee4b60..2161cd7e7d668c 100644 --- a/ReactAndroid/proguard-rules.pro +++ b/ReactAndroid/proguard-rules.pro @@ -24,17 +24,15 @@ # See http://sourceforge.net/p/proguard/bugs/466/ -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters --keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip --keep,allowobfuscation @interface com.facebook.jni.annotations.DoNotStrip # Do not strip any method/class that is annotated with @DoNotStrip -keep @com.facebook.proguard.annotations.DoNotStrip class * --keep @com.facebook.common.internal.DoNotStrip class * --keep @com.facebook.jni.annotations.DoNotStrip class * -keepclassmembers class * { @com.facebook.proguard.annotations.DoNotStrip *; - @com.facebook.common.internal.DoNotStrip *; - @com.facebook.jni.annotations.DoNotStrip *; +} + +-keep @com.facebook.proguard.annotations.DoNotStripAny class * { + *; } -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {