-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plamen5kov/move emulate to run #2647
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,26 @@ run android | |
Usage | Synopsis | ||
---|--- | ||
Run on all connected devices and running emulators | `$ tns run android [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch]` | ||
Run on a selected connected device or running emulator | `$ tns run android --device <Device ID> [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch]` | ||
Start an emulator and run the app inside it | `$ tns run android --emulator [<Emulator Options>] [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch]` | ||
Run on a selected connected device or running emulator. Will start emulator with specified `Device Identifier`, if not already running. | `$ tns run android --device <Device ID> [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch]` | ||
Start a default emulator if none are running, or run application on all connected emulators. | `$ tns run android --emulator [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--justlaunch]` | ||
|
||
Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application. | ||
|
||
### Options | ||
* `--available-devices` - Shows a list of available emulators to be started and a list of already connected devices. | ||
* `--device` - Specifies a connected device/emulator to start and run the app. | ||
* `--emulator` - If set, runs the app in all available and configured android emulators. It will start an emulator if none are already running. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does "runs the app in all available and configured android emulators"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. runs app on all running emulators |
||
* `--justlaunch` - If set, does not print the application output in the console. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. besides that, this works for both emulator on device right? I'd suggest: "--justlaunch - when specified starts the application on the emulator/device and omits all the application output in the console" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
this?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That sounds strange to me. My doubt would be what exactly am I launching? Anyway, you can leave it as is for now. |
||
* `--clean` - If set, forces rebuilding the native application. | ||
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command. | ||
* `--device` - Specifies a connected device/emulator on which to run the app. | ||
* `--emulator` - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by `$ tns help emulate android`. | ||
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the `--key-store-*` options. | ||
* `--key-store-path` - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options. | ||
* `--key-store-password` - Provides the password for the keystore file specified with `--key-store-path`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options. | ||
* `--key-store-alias` - Provides the alias for the keystore file specified with `--key-store-path`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options. | ||
* `--key-store-alias-password` - Provides the password for the alias specified with `--key-store-alias-password`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options. | ||
* `--justlaunch` - If set, does not print the application output in the console. | ||
* `--clean` - If set, forces rebuilding the native application. | ||
|
||
### Attributes | ||
* `<Device ID>` is the index or name of the target device as listed by `$ tns device android` | ||
* `<Emulator Options>` is any valid combination of options as listed by `$ tns help emulate android` | ||
* `<Device ID>` is the index or `Device Identifier` of the target device as listed by `$ tns run android --available-devices` | ||
|
||
<% if(isHtml) { %> | ||
### Prerequisites: | ||
|
@@ -57,4 +57,4 @@ Command | Description | |
[test init](test-init.html) | Configures your project for unit testing with a selected framework. | ||
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators. | ||
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator. | ||
<% } %> | ||
<% } %> |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is very very weird to me? So you're telling me I have to run
tns run android --available-devices
to get the available devices and not run the android app?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The emulate command had this behavior, and we decided to move the functionality to the run command. If it were up to me, I'd advise the user to use
tns device
command.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
who are we then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @yyosifov,
--available-devices
should be removed, and users should usetns devices
instead. IF you think it would affect users, then put ato-be-deprecated message
when--available-devices
is used so we can remove it in a following release.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, no problem. Will move the functionality to the
tns device
command.