Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit cfbdb9f

Browse files
authored
Merge pull request #492 from convoyinc/igrayson/proguard
Proguard rules
2 parents 1447ffb + 167eabd commit cfbdb9f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

android/app/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ android {
1414
lintOptions {
1515
abortOnError false
1616
}
17+
18+
defaultConfig {
19+
consumerProguardFiles 'proguard-rules.pro'
20+
}
1721
}
1822

1923
dependencies {
2024
compile "com.facebook.react:react-native:0.19.+"
21-
}
25+
}

android/app/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18+
19+
# Invoked via reflection, when forcing javascript restarts.
20+
-keepclassmembers class com.facebook.react.ReactInstanceManagerImpl {
21+
void recreateReactContextInBackground();
22+
}

0 commit comments

Comments
 (0)