From 167eabd28943c2f01a94e0614e36d2967b085859 Mon Sep 17 00:00:00 2001 From: Ian Grayson Date: Thu, 25 Aug 2016 15:50:23 -0700 Subject: [PATCH] Proguard rules --- android/app/build.gradle | 6 +++++- android/app/proguard-rules.pro | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index ce92563..b9344bf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -14,8 +14,12 @@ android { lintOptions { abortOnError false } + + defaultConfig { + consumerProguardFiles 'proguard-rules.pro' + } } dependencies { compile "com.facebook.react:react-native:0.19.+" -} \ No newline at end of file +} diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index a92fa17..8839257 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -15,3 +15,8 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +# Invoked via reflection, when forcing javascript restarts. +-keepclassmembers class com.facebook.react.ReactInstanceManagerImpl { + void recreateReactContextInBackground(); +}