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.
fix: local commands parameters (#134)
- Loading branch information
1 parent
15641da
commit 1cec809
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
18 changes: 10 additions & 8 deletions
18
...s/react-native/ReactAndroid/src/main/java/com/facebook/react/views/image/localCommands.js
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 |
---|---|---|
@@ -1,43 +1,45 @@ | ||
const { | ||
buildOptions, | ||
createBuild, | ||
createLog, | ||
createRun, | ||
logOptions, | ||
runOptions, | ||
getRunOptions, | ||
getLogOptions, | ||
getBuildOptions, | ||
} = require('@react-native-community/cli-platform-apple'); | ||
|
||
const platformName = 'visionos'; | ||
|
||
const run = { | ||
name: 'run-visionos', | ||
description: 'builds your app and starts it on visionOS simulator', | ||
func: createRun({platformName: 'visionos'}), | ||
func: createRun({platformName}), | ||
examples: [ | ||
{ | ||
desc: 'Run on a specific simulator', | ||
cmd: 'npx @callstack/react-native-visionos run-visionos --simulator "Apple Vision Pro"', | ||
}, | ||
], | ||
options: runOptions, | ||
options: getRunOptions({platformName}), | ||
}; | ||
|
||
const log = { | ||
name: 'log-visionos', | ||
description: 'starts visionOS device syslog tail', | ||
func: createLog({platformName: 'visionos'}), | ||
options: logOptions, | ||
options: getLogOptions({platformName}), | ||
}; | ||
|
||
const build = { | ||
name: 'build-visionos', | ||
description: 'builds your app for visionOS platform', | ||
func: createBuild({platformName: 'visionos'}), | ||
func: createBuild({platformName}), | ||
examples: [ | ||
{ | ||
desc: 'Build the app for all visionOS devices in Release mode', | ||
cmd: 'npx @callstack/react-native-visionos build-visionos --mode "Release"', | ||
}, | ||
], | ||
options: buildOptions, | ||
options: getBuildOptions({platformName}), | ||
}; | ||
|
||
module.exports = [run, log, build]; |