@DoNotStripAny annotation is missing in the Proguard Setup for React Native Android #33008
Labels
Good first issue
Interested in collaborating? Take a stab at fixing one of these issues.
Help Wanted
Issues ideal for external contributors.
Resolution: Locked
This issue was locked by the bot.

Description
I'm opening this public issue if someone from the community wants to pick this up.
We do have several classes that are using the
@DoNotStripAny
annotation:This annotation is actually not included in the Proguard file that we ship alongside
ReactAndroid
: https://github.com/facebook/react-native/blob/main/ReactAndroid/proguard-rules.proIt's configuration it's only available in this file which is consumed by Buck:
https://github.com/facebook/react-native/blob/main/ReactAndroid/src/main/java/com/facebook/proguard/annotations/proguard_annotations.pro
We should adapt the former proguard file to include the Proguard config for
@DoNotStripAny
.Ideally also doing a run with Proguard and verify that the classes are also not stripped would be great.
Happy to review a PR addressing this, which should be also easy to jump on.
Version
0.67.1
Output of
npx react-native info
N/A
Steps to reproduce
N/A
Snack, code example, screenshot, or link to a repository
N/A
The text was updated successfully, but these errors were encountered: