This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,25 +41,24 @@ try {
4141 process . exit ( ) ;
4242}
4343
44+ const appNameAndroid = `${ appName } -android` ;
45+ const appNameIOS = `${ appName } -ios` ;
46+ let owner = null ;
47+ const reactNativeVersion = args [ 1 ] || `react-native@${ execCommand ( 'npm view react-native version' ) } ` . trim ( ) ;
48+ const reactNativeVersionIsLowerThanV049 = isReactNativeVersionLowerThan ( 49 ) ;
49+ const reactNativeCodePushVersion = args [ 2 ] || `react-native-code-push@${ execCommand ( 'npm view react-native-code-push version' ) } ` . trim ( ) ;
50+
4451if ( ! isReactNativeVersionLowerThan ( 60 ) && process . platform === "darwin" ) {
4552 try {
4653 console . log ( "Verify that CocoaPods installed" ) ;
4754 execCommand ( "pod --version" ) ;
4855 console . log ( "CocoaPods has installed" ) ;
4956 } catch {
50- console . error ( `'CocoaPods' are required to run the script, you can install it with\n'sudo gem install cocoapods'\ncommand
51- ` ) ;
57+ console . error ( `'CocoaPods' are required to run the script, you can install it with\n'sudo gem install cocoapods'\ncommand` ) ;
5258 process . exit ( ) ;
5359 }
5460}
5561
56- const appNameAndroid = `${ appName } -android` ;
57- const appNameIOS = `${ appName } -ios` ;
58- let owner = null ;
59- const reactNativeVersion = args [ 1 ] || `react-native@${ execCommand ( 'npm view react-native version' ) } ` . trim ( ) ;
60- const reactNativeVersionIsLowerThanV049 = isReactNativeVersionLowerThan ( 49 ) ;
61- const reactNativeCodePushVersion = args [ 2 ] || `react-native-code-push@${ execCommand ( 'npm view react-native-code-push version' ) } ` . trim ( ) ;
62-
6362console . log ( `App name: ${ appName } ` ) ;
6463console . log ( `React Native version: ${ reactNativeVersion } ` ) ;
6564console . log ( `React Native Module for CodePush version: ${ reactNativeCodePushVersion } \n` ) ;
You can’t perform that action at this time.
0 commit comments