[ 
https://issues.apache.org/jira/browse/CB-4284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13711430#comment-13711430
 ] 

Janson Hartliep commented on CB-4284:
-------------------------------------

www/config.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.elevatorup.abs.journeysmobile.journeys" version="1.0.0" 
xmlns="http://www.w3.org/ns/widgets"; 
xmlns:cdv="http://cordova.apache.org/ns/1.0";>
  <!-- Profile Specifics -->
  <name>Journeys</name>
  <description>
    A custom description.
  </description>
  <author email="[email protected]" href="http://example.com";>
    Not apache.
  </author>

  <!-- Enable individual API permissions here. The "device" permission is 
required for the 'deviceready' event. -->
  <feature name="http://api.phonegap.com/1.0/device"; />

  <!-- Customize your app and platform with the preference element. -->
  <preference name="phonegap-version" value="2.9.0" /> <!-- all: current 
version of PhoneGap -->
  <preference name="orientation" value="portrait" /> <!-- all: default means 
both landscape and portrait are enabled -->
  <preference name="target-device" value="handset" /> <!-- all: possible values 
handset, tablet, or universal -->
  <preference name="fullscreen" value="true" /> <!-- all: hides the status bar 
at the top of the screen -->
  <preference name="webviewbounce" value="false" /> <!-- ios: control whether 
the screen 'bounces' when scrolled beyond the top -->
  <preference name="prerendered-icon" value="true" /> <!-- ios: if icon is 
prerendered, iOS will not apply it's gloss to the app's icon on the user's home 
screen -->
  <preference name="stay-in-webview" value="false" /> <!-- ios: external links 
should open in the default browser, 'true' would use the webview the app lives 
in -->
  <preference name="ios-statusbarstyle" value="black-opaque" /> <!-- ios: 
black-translucent will appear black because the PhoneGap webview doesn't go 
beneath the status bar -->
  <preference name="detect-data-types" value="true" /> <!-- ios: controls 
whether data types (such as phone no. and dates) are automatically turned into 
links by the system -->
  <preference name="exit-on-suspend" value="false" /> <!-- ios: if set to true, 
app will terminate when home button is pressed -->
  <preference name="show-splash-screen-spinner" value="true" /> <!-- ios: if 
set to false, the spinner won't appear on the splash screen during app loading 
-->
  <preference name="auto-hide-splash-screen" value="true" /> <!-- ios: if set 
to false, the splash screen must be hidden using a JavaScript API -->
  <preference name="android-minSdkVersion" value="7" /> <!-- android: MIN SDK 
version supported on the target device. MAX version is blank by default. -->
  <preference name="android-installLocation" value="auto" /> <!-- android: app 
install location. 'auto' will choose. 'internalOnly' is device memory. 
'preferExternal' is SDCard. -->

  <!-- Define app icon for each platform. -->
  <icon src="res/icon/ios/icon-72-2x.png" /> <!-- default -->
  <icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" 
gap:density="ldpi" />
  <icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" 
gap:density="mdpi" />
  <icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" 
gap:density="hdpi" />
  <icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" 
gap:density="xhdpi" />
  <icon src="res/icon/ios/icon-57.png" gap:platform="ios" width="57" 
height="57" />
  <icon src="res/icon/ios/icon-72.png" gap:platform="ios" width="72" 
height="72" />
  <icon src="res/icon/ios/icon-57-2x.png" gap:platform="ios" width="114" 
height="114" />
  <icon src="res/icon/ios/icon-72-2x.png" gap:platform="ios" width="144" 
height="144" />

  <!-- Define app splash screen for each platform. -->
  <gap:splash src="res/screen/android/screen-ldpi-portrait.png" 
gap:platform="android" gap:density="ldpi" />
  <gap:splash src="res/screen/android/screen-mdpi-portrait.png" 
gap:platform="android" gap:density="mdpi" />
  <gap:splash src="res/screen/android/screen-hdpi-portrait.png" 
gap:platform="android" gap:density="hdpi" />
  <gap:splash src="res/screen/android/screen-xhdpi-portrait.png" 
gap:platform="android" gap:density="xhdpi" />
  <gap:splash src="res/screen/ios/screen-iphone-portrait.png" 
gap:platform="ios" width="320" height="480" />
  <gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png" 
gap:platform="ios" width="640" height="960" />

  <!-- Define access to external domains. -->
  <access origin="*" /> <!-- allow access to all external resources given 
different APIs & embeded media. -->

</widget>

                
> cordova build [PLATFORM] does not consume www/config.xml
> --------------------------------------------------------
>
>                 Key: CB-4284
>                 URL: https://issues.apache.org/jira/browse/CB-4284
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0
>         Environment: ├─┬ [email protected]
> │ ├── [email protected]
> │ ├─┬ [email protected]
> │ │ └── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ └─┬ [email protected]
> │ │ │   └── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ └─┬ [email protected]
> │ │   └── [email protected]
> │ ├─┬ [email protected]
> │ │ └── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ └─┬ [email protected]
> │ │   ├── [email protected]
> │ │   └── [email protected]
> │ ├── [email protected]
> │ ├── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ └── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ └── [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ └── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ └─┬ [email protected]
> │ │   ├── [email protected]
> │ │   └── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ └── [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ └── [email protected]
> │ │ └─┬ [email protected]
> │ │   ├── [email protected]
> │ │   ├── [email protected]
> │ │   ├── [email protected]
> │ │   ├── [email protected]
> │ │   ├── [email protected]
> │ │   └── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ ├── [email protected]
> │ │ │ └─┬ [email protected]
> │ │ │   └── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ ├─┬ [email protected]
> │ │ │ │ └── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ └─┬ [email protected]
> │ │ │   └── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ └── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ └── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├─┬ [email protected]
> │ │ │ │ ├── [email protected]
> │ │ │ │ ├── [email protected]
> │ │ │ │ ├── [email protected]
> │ │ │ │ └── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ └─┬ [email protected]
> │ │ │   └── [email protected]
> │ │ ├── [email protected]
> │ │ └─┬ [email protected]
> │ │   ├─┬ [email protected]
> │ │   │ ├── [email protected]
> │ │   │ └─┬ [email protected]
> │ │   │   └── [email protected]
> │ │   └── [email protected]
> │ ├── [email protected]
> │ ├── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ ├── [email protected]
> │ │ │ ├── [email protected]
> │ │ │ └─┬ [email protected]
> │ │ │   └── [email protected]
> │ │ └── [email protected]
> │ └─┬ [email protected]
> │   ├── [email protected]
> │   └── [email protected]
>            Reporter: Janson Hartliep
>            Assignee: Filip Maj
>              Labels: config, documentation, newbie
>
> The larger question is *how* to use config.xml, given a huge disconnect 
> between cordova and phonegap as well as changing config.xml on each point 
> version. 
> Possible documentation sources which all differ?!
> * https://github.com/phonegap/phonegap-start/blob/master/www/config.xml
> * https://github.com/apache/cordova-cli/blob/master/templates/config.xml
> * https://build.phonegap.com/docs/config-xml
> Steps to Reproduce:
> * create a project with cordova-cli
> * change www/config.xml
> * add a platform
> * build the platform
> Result: platform specific config.xml only sort of but not really uses any 
> values from www/config.xml
> I will attach what I'm trying to do, but even simple things like the name and 
> description don't get compiled!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to