Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 762B11890B for ; Wed, 27 Jan 2016 23:10:14 +0000 (UTC) Received: (qmail 3510 invoked by uid 500); 27 Jan 2016 23:09:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 3489 invoked by uid 500); 27 Jan 2016 23:09:40 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 3078 invoked by uid 99); 27 Jan 2016 23:09:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 23:09:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DE8D52C1F5B for ; Wed, 27 Jan 2016 23:09:39 +0000 (UTC) Date: Wed, 27 Jan 2016 23:09:39 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10389) Scrub & Update config.xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120367#comment-15120367 ] ASF GitHub Bot commented on CB-10389: ------------------------------------- Github user dblotsky commented on a diff in the pull request: https://github.com/apache/cordova-docs/pull/463#discussion_r51065837 --- Diff: www/docs/en/dev/config_ref/index.md --- @@ -45,207 +45,356 @@ passively copied into various `platforms/` subdirectories, for example: app/platforms/blackberry10/www/config.xml app/platforms/android/res/xml/config.xml -This section details global and cross-platform configuration options. -See the following sections for platform-specific options: - -- [iOS Configuration](../guide/platforms/ios/config.html) -- [Android Configuration](../guide/platforms/android/config.html) -- [BlackBerry 10 Configuration](../guide/platforms/blackberry10/config.html) - In addition to the various configuration options detailed below, you can also configure an application's core set of images for each target platform. See [Icons and Splash Screens](images.html) for more information. -## Core Configuration Elements - -This example shows the default `config.xml` generated by the CLI's -`create` command, described in [The Command-Line Interface](../guide/cli/index.html): - - - HelloWorld - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - -The following configuration elements appear in the top-level -`config.xml` file, and are supported across all supported Cordova -platforms: - -- The `` element's `id` attribute provides the app's - reverse-domain identifier, and the `version` its full version number - expressed in major/minor/patch notation. - - The widget tag can also have attributes that specify alternative versions, - namely `versionCode` for Android, `CFBundleVersion` for iOS, and - `packageVersion` for Windows. See the Additional Versioning section below - for details. - -- The `` element specifies the app's formal name, as it appears - on the device's home screen and within app-store interfaces. - -- The `` and `` elements specify metadata and - contact information that may appear within app-store listings. - -- The optional `` element defines the app's starting - page in the top-level web assets directory. The default value is - `index.html`, which customarily appears in a project's top-level - `www` directory. - -- `` elements define the set of external domains the app is - allowed to communicate with. The default value shown above allows - it to access any server. See the Domain [Whitelist Guide](../guide/appdev/whitelist/index.html) for details. - -- The `` tag sets various options as pairs of - `name`/`value` attributes. Each preference's `name` is - case-insensitive. Many preferences are unique to specific - platforms, as listed at the top of this page. The following sections - detail preferences that apply to more than one platform. - -### Additional Versioning +# widget + Root element of the config.xml document. + + Attributes(type) | Description + ---------------- | ------------ + id (string) | *Required: true*
Specifies the app's reverse-domain identifier, and the `version` its full version number expressed in major/minor/patch notation. + version (string) | *Required: true*
Full version number expressed in major/minor/patch notation. + versionCode (string) | *Required: false*
**Platforms supported: Android**
Alternative version for Android. + CFBundleVersion (string) | *Required: false*
**Platforms supported: iOS**
Alternative version for iOS. + packageVersion (string) | *Required: false*
**Platforms supported: Windows**
Alternative version for Windows. + packageName (string) | *Default: Cordova.Example*
**Platforms supported: Windows**
Package name for Windows. + xmlns (string) | *Required: true*
namespace for the config.xml document. + xmlns:cdv (string) | *Required: true*
namespace prefix. + + Examples: -Android, iOS, and Windows support a second version string (or number) in -addition to the one visible in app stores: + + -- [versionCode](http://developer.android.com/tools/publishing/versioning.html) - for Android -- [CFBundleVersion](http://stackoverflow.com/questions/4933093/cfbundleversion-in-the-info-plist-upload-error) - for iOS -- [packageVersion](https://msdn.microsoft.com/en-us/library/windows/apps/br211441.aspx) - for Windows + + -Below is an example that explicitly sets these properties: + + + - + + + -If alternative version is not specified, the following -defaults will be used: + + + - // assuming version = MAJOR.MINOR.PATCH-whatever - versionCode = PATCH + MINOR * 100 + MAJOR * 10000 - CFBundleVersion = "MAJOR.MINOR.PATCH" - packageVersion = "MAJOR.MINOR.PATCH.0" + + -## Global Preferences -The following global preferences apply to all platforms: +## name + Specifies the app's formal name, as it appears on the device's home screen and within app-store interfaces. -- `Fullscreen` allows you to hide the status bar at the top of the - screen. The default value is `false`. Example: + Example: - + + HelloCordova + + +## description + Specifies metadata that may appear within app-store listings. -## Multi-Platform Preferences + Example: + + + A sample Apache Cordova application + -The following preferences apply to more than one platform, but not to -all of them: + +## author + Specifies contact information that may appear within app-store lisitngs. + + Attributes (type) | Description --- End diff -- For consistency, and according to the style guide, there's no space between "Attributes" and "(type)". > Scrub & Update config.xml > ------------------------- > > Key: CB-10389 > URL: https://issues.apache.org/jira/browse/CB-10389 > Project: Apache Cordova > Issue Type: Improvement > Reporter: Omar Mefire > Assignee: Omar Mefire > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org