You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`--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.
26
26
*`--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.
27
27
*`--copy-to` - Specifies the file path where the built `.apk` will be copied. If it points to a non-existent directory path, it will be created. If the specified value is existing directory, the original file name will be used.
28
-
*`--env.*` - Specifies additional flags that the bundler may process. May be passed multiple times. Supported additional flags:
28
+
*`--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
*`--env.snapshot`- creates [Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) (only for release builds on Mac OS & for Android).
30
+
*`--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
31
+
*`--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
31
32
*`--env.uglify` - provides basic obfuscation and smaller app size.
32
33
*`--env.report` - creates a Webpack report inside a `report` folder in the root folder.
*`--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
35
36
*`--aab` - Specifies that the build will produce an Android App Bundle(`.aab`) file.
36
37
*`--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `tns migrate`.
*`--copy-to` - Specifies the file path where the built `.ipa` will be copied. If it points to a non-existent directory path, it will be created. If the specified value is existing directory, the original file name will be used.
28
28
*`--team-id` - If used without parameter, lists all team names and ids. If used with team name or id, it will switch to automatic signing mode and configure the .xcodeproj file of your app. In this case .xcconfig should not contain any provisioning/team id flags. This team id will be further used for codesigning the app. For Xcode 9.0+, xcodebuild will be allowed to update and modify automatically managed provisioning profiles.
29
29
*`--provision` - If used without parameter, lists all eligible provisioning profiles. If used with UUID or name of your provisioning profile, it will switch to manual signing mode and configure the .xcodeproj file of your app. In this case xcconfig should not contain any provisioning/team id flags. This provisioning profile will be further used for codesigning the app.
30
-
*`--env.*` - Specifies additional flags that the bundler may process. May be passed multiple times. Supported additional flags:
30
+
*`--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
*`--env.snapshot`- creates [Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) (only for release builds on Mac OS & for Android).
33
32
*`--env.uglify` - provides basic obfuscation and smaller app size.
34
33
*`--env.report` - creates a Webpack report inside a `report` folder in the root folder.
*`--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
37
36
*`--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `tns migrate`.
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/build.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,15 @@ Usage | Synopsis
32
32
*`--release` -If set, produces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build.
33
33
*`--device` - Specifies a connected device/emulator to start and run the app. `<Device ID>` is the index or `Device Identifier` of the target device as listed by the `$ tns device <Platform> --available-devices` command.
34
34
*`--hmr` - Enables the hot module replacement (HMR) feature.
35
-
*`--env.*` - Specifies additional flags that the bundler may process. May be passed multiple times. Supported additional flags:
35
+
*`--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
*`--env.snapshot`- creates [Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) (only for release builds on Mac OS & for Android).
37
+
*`--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
38
+
*`--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
38
39
*`--env.uglify` - provides basic obfuscation and smaller app size.
39
40
*`--env.report` - creates a Webpack report inside a `report` folder in the root folder.
*`--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
43
+
*`--aab` - Specifies that the command will produce and deploy an Android App Bundle.
42
44
*`--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `tns migrate`.
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/debug-android.md
+14-5
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ Initiates a debugging session for your project on a connected Android device or
13
13
14
14
Usage | Synopsis
15
15
---|---
16
-
Deploy on device/emulator, run the app and generate a Chrome DevTools link for debugging | `$ tns debug android`
17
-
Deploy on device/emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk [--device <Device ID>] [--timeout <timeout>]`
18
-
Deploy in the native emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk --emulator [--timeout <timeout>]`
19
-
Attach the debug tools to a running app on device/emulator | `$ tns debug android --start [--device <Device ID>] [--timeout <timeout>]`
20
-
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [--timeout <timeout>]`
16
+
Deploy on device/emulator, run the app and generate a Chrome DevTools link for debugging | `$ tns debug android [--device <Device ID>] [--timeout <timeout>] [--aab]`
17
+
Deploy on device/emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk [--device <Device ID>] [--timeout <timeout>] [--aab]`
18
+
Deploy in the native emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk --emulator [--timeout <timeout>] [--aab]`
19
+
Attach the debug tools to a running app on device/emulator | `$ tns debug android --start [--device <Device ID>] [--timeout <timeout>] [--aab]`
20
+
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [--timeout <timeout>] [--aab]`
21
21
22
22
### Options
23
23
@@ -29,6 +29,15 @@ Attach the debug tools to a running app in the native emulator | `$ tns debug an
29
29
*`--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
30
30
*`--clean` - If set, forces the complete rebuild of the native application.
31
31
*`--no-hmr` - Disables Hot Module Replacement (HMR). In this case, when a change in the code is applied, CLI will transfer the modified files and restart the application.
32
+
*`--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
*`--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
35
+
*`--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
36
+
*`--env.uglify` - provides basic obfuscation and smaller app size.
37
+
*`--env.report` - creates a Webpack report inside a `report` folder in the root folder.
38
+
*`--env.sourceMap` - creates inline source maps.
39
+
*`--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
40
+
*`--aab` - Specifies that the command will produce and deploy an Android App Bundle.
32
41
*`--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `tns migrate`.
*`--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.
34
34
*`--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.
35
35
*`--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.
36
+
*`--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times. Supported additional flags:
*`--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
39
+
*`--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
40
+
*`--env.uglify` - provides basic obfuscation and smaller app size.
41
+
*`--env.report` - creates a Webpack report inside a `report` folder in the root folder.
42
+
*`--env.sourceMap` - creates inline source maps.
43
+
*`--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
44
+
*`--aab` - Specifies that the command will produce and deploy an Android App Bundle.
45
+
*`--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `tns migrate`.
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/run-android.md
+8-6
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ When running this command without passing `--release` flag, the HMR (Hot Module
17
17
18
18
Usage | Synopsis
19
19
---|---
20
-
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] [--env.*]]`
21
-
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] [--env.*]]`
22
-
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] [--env.*]]`
20
+
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] [--env.*]] [--aab]`
21
+
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] [--env.*]] [--aab]`
22
+
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] [--env.*]] [--aab]`
23
23
24
24
### Options
25
25
@@ -34,13 +34,15 @@ Start a default emulator if none are running, or run application on all connecte
34
34
*`--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.
35
35
*`--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.
36
36
*`--no-hmr` - Disables Hot Module Replacement (HMR). In this case, when a change in the code is applied, CLI will transfer the modified files and restart the application.
37
-
*`--env.*` - Specifies additional flags that the bundler may process. May be passed multiple times.
37
+
*`--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times.
*`--env.snapshot`- creates [Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) (only for release builds on Mac OS & for Android).
39
+
*`--env.snapshot`- creates [a V8 Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) decreasing the app start time (only for release builds for Android).
40
+
*`--env.compileSnapshot`- compiles the static assets produced by `--env.snapshot` into `.so` files allowing the native build to split them per architecture. This will reduce the app size when using the `--aab` option.
40
41
*`--env.uglify` - provides basic obfuscation and smaller app size.
41
42
*`--env.report` - creates a Webpack report inside a `report` folder in the root folder.
*`--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
45
+
*`--aab` - Specifies that the command will produce and deploy an Android App Bundle.
44
46
*`--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `tns migrate`.
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/run-ios.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,11 @@ Start an emulator with specified device identifier and sdk | `$ tns run ios [--d
37
37
*`--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
38
38
*`--release` - If set, produces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build.
39
39
*`--no-hmr` - Disables Hot Module Replacement (HMR). In this case, when a change in the code is applied, CLI will transfer the modified files and restart the application.
40
-
*`--env.*` - Specifies additional flags that the bundler may process. May be passed multiple times.
40
+
*`--env.*` - Specifies additional flags that the bundler may process. Can be passed multiple times.
*`--env.snapshot`- creates [Snapshot](https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#v8-heap-snapshot) (only for release builds on Mac OS & for Android).
43
42
*`--env.uglify` - provides basic obfuscation and smaller app size.
44
43
*`--env.report` - creates a Webpack report inside a `report` folder in the root folder.
*`--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
47
46
*`--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `tns migrate`.
0 commit comments