Skip to content

Commit 449dc37

Browse files
radko93facebook-github-bot
authored andcommitted
Add ProGuard rule for hermes (#28571)
Summary: This adds a ProGuard for `hermes` rule so it does not have to be added by users manually. #28270 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Android] [Added] - ProGuard rule for hermes Pull Request resolved: #28571 Test Plan: 1. Create a project with/without hermes. 2. Enable proguard. Reviewed By: cpojer Differential Revision: D20947095 Pulled By: hramos fbshipit-source-id: 79b166ad2dd060f20041d9f5cfe2f794c754843d
1 parent ccb7dbe commit 449dc37

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
@@ -51,6 +51,9 @@
5151
-dontwarn com.facebook.react.**
5252
-keep,includedescriptorclasses class com.facebook.react.bridge.** { *; }
5353

54+
# hermes
55+
-keep class com.facebook.jni.** { *; }
56+
5457
# okhttp
5558

5659
-keepattributes Signature

0 commit comments

Comments
 (0)