Skip to content

Commit e30f6e8

Browse files
andreidubovLakshminarasimhan ks
authored andcommitted
Add compatibility with react-native v0.62 (microsoft#1829)
1 parent 8266a75 commit e30f6e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ class RNAndroid extends Platform.Android implements RNPlatform {
9494
"include ':app'",
9595
"include ':app', ':react-native-code-push'\nproject(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')");
9696

97+
// Add CodePush to android/settings.gradle
98+
const settingsGradle = path.join(innerprojectDirectory, "android", "settings.gradle");
99+
TestUtil.replaceString(settingsGradle,
100+
"include ':app'",
101+
"include ':app', ':react-native-code-push'\nproject(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')");
102+
97103
//// Set the app version to 1.0.0 instead of 1.0
98104
// Set the app version to 1.0.0 in android/app/build.gradle
99105
TestUtil.replaceString(buildGradle, "versionName \"1.0\"", "versionName \"1.0.0\"");

0 commit comments

Comments
 (0)