Skip to content

Commit

Permalink
npx rnv run -p tizen now lets you run on devices
Browse files Browse the repository at this point in the history
  • Loading branch information
justinasRm committed Sep 13, 2024
1 parent 06b8054 commit 89a1eb6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/sdk-tizen/src/deviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ export const launchTizenEmulator = async (name: string | true): Promise<boolean>

if (name) {
const ipRegex = /^(?:\d{1,3}\.){3}\d{1,3}:\d{1,5}$/;
if (name === true || ipRegex.test(name)) {
logInfo('Connecting to device'); // don't continue with further code - launching on device works diffirently than on emulator
if (name !== true && ipRegex.test(name)) {
// if ip is chosen, real device boot should start
logInfo('Connecting to device');
c.runtime.target = name.split(':')[0];
await runTizenSimOrDevice();
return true;
}
try {
Expand Down
6 changes: 5 additions & 1 deletion packages/template-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,9 @@
"browserslist": [
">0.2%",
"op_mini all"
]
],
"dependencies": {
"dotenv": "16.4.5",
"raf": "3.4.1"
}
}

0 comments on commit 89a1eb6

Please sign in to comment.