File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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\"" ) ;
You can’t perform that action at this time.
0 commit comments