File tree Expand file tree Collapse file tree 5 files changed +59
-7
lines changed Expand file tree Collapse file tree 5 files changed +59
-7
lines changed Original file line number Diff line number Diff line change
1
+ const {
2
+ buildOptions,
3
+ createBuild,
4
+ createLog,
5
+ createRun,
6
+ logOptions,
7
+ runOptions,
8
+ } = require ( '@react-native-community/cli-platform-apple' ) ;
9
+
10
+ const run = {
11
+ name : 'run-visionos' ,
12
+ description : 'builds your app and starts it on visionOS simulator' ,
13
+ func : createRun ( { platformName : 'visionos' } ) ,
14
+ examples : [
15
+ {
16
+ desc : 'Run on a specific simulator' ,
17
+ cmd : 'npx @callstack/react-native-visionos run-visionos --simulator "Apple Vision Pro"' ,
18
+ } ,
19
+ ] ,
20
+ options : runOptions ,
21
+ } ;
22
+
23
+ const log = {
24
+ name : 'log-visionos' ,
25
+ description : 'starts visionOS device syslog tail' ,
26
+ func : createLog ( { platformName : 'visionos' } ) ,
27
+ options : logOptions ,
28
+ } ;
29
+
30
+ const build = {
31
+ name : 'build-visionos' ,
32
+ description : 'builds your app for visionOS platform' ,
33
+ func : createBuild ( { platformName : 'visionos' } ) ,
34
+ examples : [
35
+ {
36
+ desc : 'Build the app for all visionOS devices in Release mode' ,
37
+ cmd : 'npx @callstack/react-native-visionos build-visionos --mode "Release"' ,
38
+ } ,
39
+ ] ,
40
+ options : buildOptions ,
41
+ } ;
42
+
43
+ module . exports = [ run , log , build ] ;
Original file line number Diff line number Diff line change 93
93
},
94
94
"dependencies" : {
95
95
"@jest/create-cache-key-function" : " ^29.6.3" ,
96
- "@react-native-community/cli" : " 12.3.2" ,
97
- "@react-native-community/cli-platform-android" : " 12.3.2" ,
98
- "@react-native-community/cli-platform-ios" : " 12.3.2" ,
96
+ "@react-native-community/cli" : " 13.5.1" ,
97
+ "@react-native-community/cli-platform-android" : " 13.5.1" ,
98
+ "@react-native-community/cli-platform-ios" : " 13.5.1" ,
99
+ "@react-native-community/cli-platform-apple" : " 13.5.1" ,
99
100
"@react-native/assets-registry" : " 0.73.1" ,
100
101
"@react-native/community-cli-plugin" : " 0.73.16" ,
101
102
"@react-native/codegen" : " 0.73.3" ,
Original file line number Diff line number Diff line change 9
9
10
10
'use strict' ;
11
11
12
- const ios = require ( '@react-native-community/cli-platform-ios ' ) ;
12
+ const localCommands = require ( './local-cli/localCommands ' ) ;
13
13
const android = require ( '@react-native-community/cli-platform-android' ) ;
14
+ const {
15
+ getDependencyConfig,
16
+ getProjectConfig,
17
+ } = require ( '@react-native-community/cli-platform-apple' ) ;
18
+ const ios = require ( '@react-native-community/cli-platform-ios' ) ;
14
19
const {
15
20
bundleCommand,
16
21
ramBundleCommand,
@@ -24,12 +29,14 @@ module.exports = {
24
29
bundleCommand ,
25
30
ramBundleCommand ,
26
31
startCommand ,
32
+ codegenCommand ,
33
+ ...localCommands ,
27
34
] ,
28
35
platforms : {
29
36
visionos : {
30
37
npmPackageName : '@callstack/react-native-visionos' ,
31
- projectConfig : ios . projectConfig ,
32
- dependencyConfig : ios . dependencyConfig ,
38
+ projectConfig : getProjectConfig ( { platformName : 'visionos' } ) ,
39
+ dependencyConfig : getDependencyConfig ( { platformName : 'visionos' } ) ,
33
40
} ,
34
41
ios : {
35
42
projectConfig : ios . projectConfig ,
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"android" : " react-native run-android" ,
7
7
"ios" : " react-native run-ios" ,
8
+ "visionos" : " react-native run-visionos" ,
8
9
"lint" : " eslint ." ,
9
10
"start" : " react-native start" ,
10
11
"test" : " jest"
Original file line number Diff line number Diff line change 7025
7025
dependencies :
7026
7026
terser "^5.15.0"
7027
7027
7028
- [email protected] , metro-resolver@^0.80.3:
7028
+ [email protected] , metro-resolver@^0.80.0, metro-resolver@^0.80. 3:
7029
7029
version "0.80.3"
7030
7030
resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.80.3.tgz#f9676508583d81182c7afaabc908254dc928a345"
7031
7031
integrity sha512-zwa0i32rj/TI3NivcvMXHJwTG2gUgo2dXdcnAJlhEKKQvyN+7AfhNdQSlDdDqMQmU7FaLRdeWORnQJbYCrprQQ==
You can’t perform that action at this time.
0 commit comments