Skip to content

Commit

Permalink
Add ProGuard rule for hermes (#28571)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
radko93 authored and facebook-github-bot committed Apr 9, 2020
1 parent ccb7dbe commit 449dc37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReactAndroid/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
-dontwarn com.facebook.react.**
-keep,includedescriptorclasses class com.facebook.react.bridge.** { *; }

# hermes
-keep class com.facebook.jni.** { *; }

# okhttp

-keepattributes Signature
Expand Down

0 comments on commit 449dc37

Please sign in to comment.