Skip to content

Commit 191a7a5

Browse files
committed
Merge pull request #841 from NativeScript/ikoevska/ns-130/keystore-options
Note that when --release is specified, --keystore options are required
2 parents 9aebd15 + b2f61eb commit 191a7a5

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

docs/man_pages/project/testing/build-android.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ General | `$ tns build android [--key-store-path <File Path> --key-store-passwor
88
Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
99

1010
### Options
11-
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When the `--key-store-*` options are specified, produces a signed release build.
11+
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the `--key-store-*` options.
1212
* `--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.
1313
* `--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.
1414
* `--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.
1515
* `--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.
1616
* `--static-bindings` - If set, generates static bindings from your JavaScript code to corresponding native Android APIs during build. This static bindings speed up app loading.
1717

1818
<% if(isHtml) { %>
19+
### Command Limitations
20+
21+
* When the `--release` flag is set, you must also specify all `--key-store-*` options.
22+
1923
### Related Commands
2024

2125
Command | Description

docs/man_pages/project/testing/deploy.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Builds and deploys the project to a connected physical or virtual device. <% if(
1717

1818
### Options<% if(isMacOS) { %> for Android<% } %>
1919
* `--device` - Deploys the project on the specified connected physical or virtual device.
20-
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When the `--key-store-*` options are specified, produces a signed release build.
20+
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the `--key-store-*` options.
2121
* `--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.
2222
* `--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.
2323
* `--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.
@@ -30,6 +30,7 @@ Builds and deploys the project to a connected physical or virtual device. <% if(
3030
### Command Limitations
3131

3232
* You can run `$ tns deploy ios` only on OS X systems.
33+
* When the `--release` flag is set for an Android build, you must also specify all `--key-store-*` options.
3334

3435
### Related Commands
3536

docs/man_pages/project/testing/emulate-android.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Builds the specified project and runs it in the native emulator from the Android
1414
* `--avd` - Sets the Android virtual device on which you want to run your app. You can set only one device at a time. You cannot use `--avd` and `--geny` simultaneously.
1515
* `--geny` - Sets the Genymotion virtual device on which you want to run your app. You can set only one device at a time. You cannot use `--avd` and `--geny` simultaneously.
1616
* `--timeout` - Sets the number of seconds that the NativeScript CLI will wait for the virtual device to boot before quitting the operation and releasing the console. If not set, the default timeout is 120 seconds. To wait indefinitely, set 0.
17-
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When the `--key-store-*` options are specified, produces a signed release build.
17+
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the `--key-store-*` options.
1818
* `--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.
1919
* `--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.
2020
* `--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.
@@ -42,6 +42,7 @@ Before running your app in the Android emulator from the Android SDK, verify tha
4242
### Command Limitations
4343

4444
* You can run this command for one virtual device at a time. To test your app on multiple Android virtual devices, run `$ tns emulate android --avd <Name>` or `$ tns emulate android --geny <GenyName>` for each virtual device.
45+
* When the `--release` flag is set, you must also specify all `--key-store-*` options.
4546

4647
### Related Commands
4748

docs/man_pages/project/testing/run-android.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Runs your project on a connected Android device or in a native Android emulator,
1212
### Options
1313
* `--device` - Specifies a connected device on which to run the app.
1414
* `--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`.
15-
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When the `--key-store-*` options are specified, produces a signed release build.
15+
* `--release` - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the `--key-store-*` options.
1616
* `--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.
1717
* `--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.
1818
* `--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.
@@ -24,7 +24,7 @@ Runs your project on a connected Android device or in a native Android emulator,
2424
* `<Emulator Options>` is any valid combination of options as listed by `$ tns help emulate android`
2525

2626
<% if(isHtml) { %>
27-
###Prerequisites:
27+
### Prerequisites:
2828
Before running your app in the Android emulator from the Android SDK, verify that your system meets the following requirements.
2929
* Verify that you have installed the Android SDK.
3030
* Verify that you have added the following Android SDK directories to the `PATH` environment variable:
@@ -40,6 +40,7 @@ Before running your app in the Android emulator from the Android SDK, verify tha
4040
### Command Limitations
4141

4242
* You cannot use `--device` and `--emulator` simultaneously.
43+
* When the `--release` flag is set, you must also specify all `--key-store-*` options.
4344

4445
### Related Commands
4546

0 commit comments

Comments
 (0)