This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -41,25 +41,24 @@ try {
41
41
process . exit ( ) ;
42
42
}
43
43
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
+
44
51
if ( ! isReactNativeVersionLowerThan ( 60 ) && process . platform === "darwin" ) {
45
52
try {
46
53
console . log ( "Verify that CocoaPods installed" ) ;
47
54
execCommand ( "pod --version" ) ;
48
55
console . log ( "CocoaPods has installed" ) ;
49
56
} 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` ) ;
52
58
process . exit ( ) ;
53
59
}
54
60
}
55
61
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
-
63
62
console . log ( `App name: ${ appName } ` ) ;
64
63
console . log ( `React Native version: ${ reactNativeVersion } ` ) ;
65
64
console . log ( `React Native Module for CodePush version: ${ reactNativeCodePushVersion } \n` ) ;
You can’t perform that action at this time.
0 commit comments