mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
replace pod init file
This commit is contained in:
@@ -173,7 +173,7 @@ class RNIOS extends Platform.IOS implements RNPlatform {
|
||||
var appDelegatePath: string = path.join(iOSProject, TestConfig.TestAppName, "AppDelegate.m");
|
||||
// Create and install the Podfile
|
||||
return TestUtil.getProcessOutput("pod init", { cwd: iOSProject })
|
||||
.then(() => { return fs.appendFileSync(path.join(iOSProject, "Podfile"),
|
||||
.then(() => { return fs.writeFileSync(path.join(iOSProject, "Podfile"),
|
||||
"target '" + TestConfig.TestAppName + "'\n pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket', ]\n pod 'CodePush', :path => '../node_modules/react-native-code-push'\n"); })
|
||||
// Put the IOS deployment key in the Info.plist
|
||||
.then(TestUtil.replaceString.bind(undefined, infoPlistPath,
|
||||
|
||||
Reference in New Issue
Block a user