Skip to content

Commit 04fc27f

Browse files
committed
Merge pull request #1328 from Icenium/kerezov/android-version-code-info
Print info message upon android version code change
2 parents 412a15e + d029da5 commit 04fc27f

17 files changed

+147
-34
lines changed

docs/man_pages/project/configuration/mobileframework-set.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ General | `$ appbuilder mobileframework set <Version> [--path <Directory>]`
1717
### Attributes
1818
* `<Version>` is the version of the framework as listed by `$ appbuilder mobileframework`
1919
<% } %>
20-
<% if(isHtml) { %>
20+
<% if(isHtml) { %>
2121
### Related Commands
2222

2323
Command | Description
2424
----------|----------
25-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
25+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
2626
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
2727
[prop](prop.html) | Lets you manage the properties for your project.
2828
[prop print](prop-print.html) | Prints information about the configuration of the project or the selected property.

docs/man_pages/project/configuration/mobileframework.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ General | `$ appbuilder mobileframework [<Command>] [--path <Directory>]`
1515
`<Command>` extends the `mobileframework` command. You can set the following values for this attribute.
1616
* `set` - Sets the selected framework version for the project.
1717
<% } %>
18-
<% if(isHtml) { %>
18+
<% if(isHtml) { %>
1919
### Related Commands
2020

2121
Command | Description
2222
----------|----------
23-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
23+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
2424
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
2525
[prop](prop.html) | Lets you manage the properties for your project.
2626
[prop print](prop-print.html) | Prints information about the configuration of the project or the selected property.

docs/man_pages/project/configuration/prop-add.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Usage | Synopsis
55
------|-------
66
Add property | `$ appbuilder prop add <Property Name> <Value> [Value]*`
77
<% if(isCordova) { %>Enable plugins for the Debug build configuration | `$ appbuilder prop add CorePlugins <Value> [Value]* --debug`
8-
Enable plugins for the Release build configuration | `$ appbuilder prop add CorePlugins <Value> [Value]* --release`<% } %>
8+
Enable plugins for the Release build configuration | `$ appbuilder prop add CorePlugins <Value> [Value]* --release`<% } %>
99

10-
Enables more options for the selected project property, if the property accepts multiple values.
10+
Enables more options for the selected project property, if the property accepts multiple values.
1111
<% if((isConsole && (isNativeScript || isCordova)) || isHtml) { %>
1212
<% if(isCordova) { %>### Options
1313

@@ -17,7 +17,7 @@ Enables more options for the selected project property, if the property accepts
1717
### Attributes
1818
* `<Property Name>` is the name of the project property as listed by `$ appbuilder prop print`
1919
* `<Value>` is a valid value as listed by `$ appbuilder prop print <Property Name> --valid-value`. You can separate multiple values with a space.
20-
<% } %>
20+
<% } %>
2121
<% if(isHtml) { %>
2222
### Command Limitations
2323

@@ -27,7 +27,7 @@ Enables more options for the selected project property, if the property accepts
2727

2828
Command | Description
2929
----------|----------
30-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
30+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
3131
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
3232
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
3333
[prop](prop.html) | Lets you manage the properties for your project.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
prop print AndroidVersionCode
2+
==========
3+
4+
Usage | Synopsis
5+
------|-------
6+
General | `$ appbuilder prop print AndroidVersionCode [--valid-value]`
7+
8+
Prints information about the configuration of the AndroidVersionCode property.
9+
10+
<% if((isConsole && (isNativeScript || isCordova)) || isHtml) { %>
11+
### Options
12+
* `--valid-value` - When set, prints a description for the AndroidVersionCode property.
13+
<% } %>
14+
<% if(isHtml) { %>
15+
### Related Commands
16+
17+
Command | Description
18+
----------|----------
19+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
20+
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
21+
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
22+
[prop](prop.html) | Lets you manage the properties for your project.
23+
[prop print](prop-print.html) | Prints information about the configuration of the project or the selected property.
24+
[prop add](prop-add.html) | Enables more options for the selected project property, if the property accepts multiple values.
25+
[prop remove](prop-remove.html) | Disables options for the selected project property, if the property accepts multiple values.
26+
[prop set](prop-set.html) | Sets the selected project property and overwrites its current value.
27+
[resource](resource.html) | Lists information about the image resources for all mobile platforms.
28+
[resource create](resource-create.html) | Creates image resources for all mobile platforms from a single high-resolution image.
29+
[webview](webview.html) | Lists the available web views for iOS and Android.
30+
[webview set](webview-set.html) | Sets the selected web view for the current project.
31+
<% } %>

docs/man_pages/project/configuration/prop-print.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ Usage | Synopsis
66
Print all properties | `$ appbuilder prop print [--valid-value]<% if(isCordova) { %> [--debug] [--release]<% } %>`
77
Print a selected property | `$ appbuilder prop print <Property Name> [--valid-value]<% if(isCordova) { %> [--debug] [--release]<% } %>`
88

9-
Prints information about the configuration of the project or the selected property.
10-
If `--valid-value` is set, prints the valid configuration values.
11-
If not set, prints the current configuration.
9+
Prints information about the configuration of the project or the selected property.
10+
If `--valid-value` is set, prints the valid configuration values.
11+
If not set, prints the current configuration.
1212

1313
<% if((isConsole && (isNativeScript || isCordova)) || isHtml) { %>
1414
### Options
1515
* `--valid-value` - When set, prints the valid values for all valid project properties or for the selected property.
16-
<% if(isCordova) { %>
16+
<% if(isCordova) { %>
1717
* `--debug` - When set, prints information about your project settings for the Debug build configuration. This switch is applicable to the `$ appbuilder prop print` and `$ appbuilder prop print CorePlugins` commands.<% if(isHtml) { %> For more information about build configurations, see [Managing Build Configurations](http://docs.telerik.com/platform/appbuilder/build-configurations/overview).<% } %>
1818
* `--release` - When set, prints information about your project settings for the Release build configuration. This switch is applicable to the `$ appbuilder prop print` and `$ appbuilder prop print CorePlugins` commands.<% if(isHtml) { %> For more information about build configurations, see [Managing Build Configurations](http://docs.telerik.com/platform/appbuilder/build-configurations/overview).<% } %>
1919
<% } %>
2020
### Attributes
2121
* `<Property Name>` is the name of the project property as listed by `$ appbuilder prop print`
2222
<% } %>
23-
<% if(isHtml) { %>
23+
<% if(isHtml) { %>
2424
### Related Commands
2525

2626
Command | Description
2727
----------|----------
28-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
28+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
2929
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
3030
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
3131
[prop](prop.html) | Lets you manage the properties for your project.

docs/man_pages/project/configuration/prop-remove.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Usage | Synopsis
55
------|-------
66
General | `$ appbuilder prop remove <Property Name> <Value> [Value]*`
77
<% if(isCordova) { %>Disable plugins for the Debug build configuration | `$ appbuilder prop remove CorePlugins <Value> [Value]* --debug`
8-
Disable plugins for the Release build configuration | `$ appbuilder prop remove CorePlugins <Value> [Value]* --release`<% } %>
8+
Disable plugins for the Release build configuration | `$ appbuilder prop remove CorePlugins <Value> [Value]* --release`<% } %>
99

1010
Disables options for the selected project property, if the property accepts multiple values.
1111

@@ -14,12 +14,12 @@ Disables options for the selected project property, if the property accepts mult
1414

1515
* `--debug` - Removes the specified plugin(s) from the Debug build configuration only. This switch is applicable only to `$ appbuilder prop remove CorePlugins` commands.<% if(isHtml) { %> For more information about build configurations, see [Managing Build Configurations](http://docs.telerik.com/platform/appbuilder/build-configurations/overview).<% } %>
1616
* `--release` - Removes the specified plugin(s) from the Release build configuration only. This switch is applicable only to `$ appbuilder prop remove CorePlugins` commands.<% if(isHtml) { %> For more information about build configurations, see [Managing Build Configurations](http://docs.telerik.com/platform/appbuilder/build-configurations/overview).<% } %>
17-
<% } %>
17+
<% } %>
1818
### Attributes
1919
* `<Property Name>` is the name of the project property as listed by `$ appbuilder prop print`
2020
* `<Value>` is a current value of the property as listed by `$ appbuilder prop print <Property Name>`. You can separate multiple values with a space.
21-
<% } %>
22-
<% if(isHtml) { %>
21+
<% } %>
22+
<% if(isHtml) { %>
2323
### Command Limitations
2424

2525
* You can set the `--debug` and `--release` switches only for the `CorePlugins` property for Apache Cordova projects.
@@ -28,7 +28,7 @@ Disables options for the selected project property, if the property accepts mult
2828

2929
Command | Description
3030
----------|----------
31-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
31+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
3232
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
3333
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
3434
[prop](prop.html) | Lets you manage the properties for your project.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
prop set AndroidVersionCode
2+
==========
3+
4+
Usage | Synopsis
5+
------|-------
6+
General | `$ appbuilder prop set AndroidVersionCode <Integer Value>`
7+
8+
Sets the AndroidVersionCode project property and overwrites its current value.
9+
10+
<% if(isHtml) { %>
11+
### Related Commands
12+
13+
Command | Description
14+
----------|----------
15+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
16+
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
17+
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
18+
[prop](prop.html) | Lets you manage the properties for your project.
19+
[prop print](prop-print.html) | Prints information about the configuration of the project or the selected property.
20+
[prop set](prop-set.html) | Sets the selected project property and overwrites its current value.
21+
[prop add](prop-add.html) | Enables more options for the selected project property, if the property accepts multiple values.
22+
[prop remove](prop-remove.html) | Disables options for the selected project property, if the property accepts multiple values.
23+
[resource](resource.html) | Lists information about the image resources for all mobile platforms.
24+
[resource create](resource-create.html) | Creates image resources for all mobile platforms from a single high-resolution image.
25+
[webview](webview.html) | Lists the available web views for iOS and Android.
26+
[webview set](webview-set.html) | Sets the selected web view for the current project.
27+
<% } %>

docs/man_pages/project/configuration/prop-set.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Sets the selected project property and overwrites its current value.
1818
### Attributes
1919
* `<Property Name>` is the name of the project property as listed by `$ appbuilder prop print`
2020
* `<Value>` is a valid value as listed by `$ appbuilder prop print <Property Name> --valid-value`. You can separate multiple values with a space.
21-
<% } %>
22-
<% if(isHtml) { %>
21+
<% } %>
22+
<% if(isHtml) { %>
2323
### Command Limitations
2424

2525
* You can set the `--debug` and `--release` switches only for the `CorePlugins` property for Apache Cordova projects.
@@ -28,7 +28,7 @@ Sets the selected project property and overwrites its current value.
2828

2929
Command | Description
3030
----------|----------
31-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
31+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
3232
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
3333
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
3434
[prop](prop.html) | Lets you manage the properties for your project.

docs/man_pages/project/configuration/prop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This set of commands manages the properties for your project. You must run the `
1919

2020
Command | Description
2121
----------|----------
22-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
22+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
2323
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
2424
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
2525
[prop print](prop-print.html) | Prints information about the configuration of the project or the selected property.

docs/man_pages/project/configuration/resource-create.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ General | `$ appbuilder resource create [--icon <File Path>] [--splash <File Pat
88
Creates image resources for all mobile platforms from a single high-resolution image and saves them to the `App_Resources` folder of the current project. The image source must be a `PNG` image.
99

1010
<% if((isConsole && (isCordova || isNativeScript)) || isHtml) { %>
11-
<% if(isHtml) { %>
11+
<% if(isHtml) { %>
1212
### Prerequisites
1313

1414
* Verify that the image source for your icons is at least **768x768** pixels `PNG` image. The recommended dimensions are **1024x1024** pixels.
@@ -24,13 +24,13 @@ Creates image resources for all mobile platforms from a single high-resolution i
2424
### Attributes
2525
`<File Path>` is the complete file path to the high-resolution image that you want to use.
2626
<% } %>
27-
<% if(isHtml) { %>
27+
<% if(isHtml) { %>
2828

2929
### Related Commands
3030

3131
Command | Description
3232
----------|----------
33-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
33+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
3434
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
3535
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
3636
[prop](prop.html) | Lets you manage the properties for your project.

docs/man_pages/project/configuration/resource.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Lists information about the splash screens and icons for all mobile platforms.
1313
`<Command>` extends the `resource` command. You can set the following values for this attribute.
1414
* `create` - Creates icons or splash screens for all mobile platforms from a single high-resolution image.
1515
<% } %>
16-
<% if(isHtml) { %>
16+
<% if(isHtml) { %>
1717
### Related Commands
1818

1919
Command | Description
2020
----------|----------
21-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
21+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
2222
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
2323
[mobileframework&nbsp;set](mobileframework-set.html) | Sets the selected development framework version for the project.
2424
[prop](prop.html) | Lets you manage the properties for your project.

docs/man_pages/project/configuration/webview-set.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Usage | Synopsis
66
Android | $ appbuilder webview set android <Web View Name>
77
iOS | $ appbuilder webview set ios <Web View Name>
88

9-
Sets the selected web view for the current project. <% if(isHtml) { %>Setting a pluggable web view also enables the respective Apache Cordova plugin for your project. For more information, see [Configure the Web View for Your Project](http://docs.telerik.com/platform/appbuilder/configuring-your-project/configure-web-views).<% } %>
9+
Sets the selected web view for the current project. <% if(isHtml) { %>Setting a pluggable web view also enables the respective Apache Cordova plugin for your project. For more information, see [Configure the Web View for Your Project](http://docs.telerik.com/platform/appbuilder/configuring-your-project/configure-web-views).<% } %>
1010

1111
<% if(isConsole) { %>
1212
<% if(isNativeScript) { %>
@@ -28,7 +28,7 @@ WARNING: This command is not applicable to NativeScript projects. To view the co
2828

2929
* `<Web View Name>` is the web view name as listed by `$ appbuilder webview`
3030
<% } %>
31-
<% if(isHtml) { %>
31+
<% if(isHtml) { %>
3232
### Command Limitations
3333

3434
* You cannot run this command on NativeScript projects.
@@ -38,7 +38,7 @@ WARNING: This command is not applicable to NativeScript projects. To view the co
3838

3939
Command | Description
4040
----------|----------
41-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
41+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
4242
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
4343
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
4444
[prop](prop.html) | Lets you manage the properties for your project.

docs/man_pages/project/configuration/webview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ WARNING: This command and its extended commands are not applicable to NativeScri
1919
`<Command>` extends the `webview` command. You can set the following values for this attribute.
2020
* `set` - Sets the selected web view for the current project.
2121
<% } %>
22-
<% if(isHtml) { %>
22+
<% if(isHtml) { %>
2323
### Command Limitations
2424

2525
* You cannot run this command on NativeScript projects.
@@ -29,7 +29,7 @@ WARNING: This command and its extended commands are not applicable to NativeScri
2929

3030
Command | Description
3131
----------|----------
32-
[edit-configuration](edit-configuration.html) | `<ConfigurationFile>` is the configuration file that you want to open.
32+
[edit-configuration](edit-configuration.html) | Opens a configuration file for editing.
3333
[mobileframework](mobileframework.html) | Lists all supported versions of the current development framework.
3434
[mobileframework set](mobileframework-set.html) | Sets the selected development framework version for the project.
3535
[prop](prop.html) | Lets you manage the properties for your project.

lib/bootstrap.ts

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ $injector.requireCommand("prop|remove", "./commands/prop/prop-remove");
102102
$injector.requireCommand("prop|print", "./commands/prop/prop-print");
103103
$injector.requireCommand("prop|print|frameworkversion", "./commands/framework-versions/print-versions");
104104
$injector.requireCommand("prop|set|frameworkversion", "./commands/framework-versions/set-version");
105+
$injector.requireCommand("prop|set|androidversioncode", "./commands/prop/prop-set-android-version-code");
106+
$injector.requireCommand("prop|print|androidversioncode", "./commands/prop/prop-print-android-version-code");
105107

106108
$injector.requireCommand("cloud|*list", "./commands/cloud-projects");
107109
$injector.requireCommand("cloud|export", "./commands/cloud-projects");

0 commit comments

Comments
 (0)