Skip to content

Commit

Permalink
Proguard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
igrayson committed Aug 25, 2016
1 parent 1447ffb commit 167eabd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ android {
lintOptions {
abortOnError false
}

defaultConfig {
consumerProguardFiles 'proguard-rules.pro'
}
}

dependencies {
compile "com.facebook.react:react-native:0.19.+"
}
}
5 changes: 5 additions & 0 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 167eabd

Please sign in to comment.