forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement visionos cli commands (#64)
- Loading branch information
1 parent
91ceaa0
commit 12b8670
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const { | ||
buildOptions, | ||
createBuild, | ||
createLog, | ||
createRun, | ||
logOptions, | ||
runOptions, | ||
} = require('@react-native-community/cli-platform-apple'); | ||
|
||
const run = { | ||
name: 'run-visionos', | ||
description: 'builds your app and starts it on visionOS simulator', | ||
func: createRun({platformName: 'visionos'}), | ||
examples: [ | ||
{ | ||
desc: 'Run on a specific simulator', | ||
cmd: 'npx @callstack/react-native-visionos run-visionos --simulator "Apple Vision Pro"', | ||
}, | ||
], | ||
options: runOptions, | ||
}; | ||
|
||
const log = { | ||
name: 'log-visionos', | ||
description: 'starts visionOS device syslog tail', | ||
func: createLog({platformName: 'visionos'}), | ||
options: logOptions, | ||
}; | ||
|
||
const build = { | ||
name: 'build-visionos', | ||
description: 'builds your app for visionOS platform', | ||
func: createBuild({platformName: 'visionos'}), | ||
examples: [ | ||
{ | ||
desc: 'Build the app for all visionOS devices in Release mode', | ||
cmd: 'npx @callstack/react-native-visionos build-visionos --mode "Release"', | ||
}, | ||
], | ||
options: buildOptions, | ||
}; | ||
|
||
module.exports = [run, log, build]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters