mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-09 20:25:15 +08:00
Merge pull request #492 from convoyinc/igrayson/proguard
Proguard rules
This commit is contained in:
@@ -14,8 +14,12 @@ android {
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
consumerProguardFiles 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "com.facebook.react:react-native:0.19.+"
|
||||
}
|
||||
}
|
||||
|
||||
5
android/app/proguard-rules.pro
vendored
5
android/app/proguard-rules.pro
vendored
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user