From 449dc37720b24d9d88661314424c9f982e70ec3a Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Thu, 9 Apr 2020 13:46:13 -0700 Subject: [PATCH] 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. https://github.com/facebook/react-native/issues/28270 ## Changelog [Android] [Added] - ProGuard rule for hermes Pull Request resolved: https://github.com/facebook/react-native/pull/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 --- ReactAndroid/proguard-rules.pro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ReactAndroid/proguard-rules.pro b/ReactAndroid/proguard-rules.pro index 7eeef601f7189a..e13dfef7ec70ad 100644 --- a/ReactAndroid/proguard-rules.pro +++ b/ReactAndroid/proguard-rules.pro @@ -51,6 +51,9 @@ -dontwarn com.facebook.react.** -keep,includedescriptorclasses class com.facebook.react.bridge.** { *; } +# hermes +-keep class com.facebook.jni.** { *; } + # okhttp -keepattributes Signature