[
https://issues.apache.org/jira/browse/CB-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Stanford updated CB-4476:
---------------------------------
Description:
My project appears to need two copies of config.xml:
- www/config.xml
- platforms/ios/My App/config.xml
The documentation
(https://cordova.apache.org/docs/en/2.8.0/guide_project-settings_index.md.html)
doesn't explain why I need two, and the app appears to compile and work
correctly when they are identical, although they are different (but with the
same widget id) when the project is first created. But removing either of them
causes "$cordova emulate ios" to fail.
This seems to violate the DRY principle, particularly because it seems easy to
put different version numbers in them without raising any warnings.
Maybe it's something to do with the space in the app name?
Perhaps a documentation change is needed, saying that "platforms/ios/My
App/config.xml" overrides "www/config.xml"? But if that is the case, it seems
that for consistency it should be possible to put the over-riding version into
the merges directory, but I haven't figured out how to override
"platforms/ios/My App/config.xml" from the merges directory, so again maybe a
change to the documentation would help.
was:
My project appears to need two copies of config.xml:
- www/config.xml
- platforms/ios/My App/config.xml
The documentation doesn't explain why I need two, and the app appears to
compile and work correctly when they are identical, although they are different
(but with the same widget id) when the project is first created. But removing
either of them causes "$cordova emulate ios" to fail.
This seems to violate the DRY principle, particularly because it seems easy to
put different version numbers in them without raising any warnings.
Maybe it's something to do with the space in the app name?
Perhaps a documentation change is needed, saying that "platforms/ios/My
App/config.xml" overrides "www/config.xml"? But if that is the case, it seems
that for consistency it should be possible to put the over-riding version into
the merges directory, but I haven't figured out how to override
"platforms/ios/My App/config.xml" from the merges directory, so again maybe a
change to the documentation would help.
> Seems to need two copies of config.xml - at least on iOS
> --------------------------------------------------------
>
> Key: CB-4476
> URL: https://issues.apache.org/jira/browse/CB-4476
> Project: Apache Cordova
> Issue Type: Improvement
> Components: iOS
> Affects Versions: 3.0.0
> Environment: OS X
> Reporter: Michael Stanford
> Assignee: Shazron Abdullah
> Priority: Minor
> Labels: documentation
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> My project appears to need two copies of config.xml:
> - www/config.xml
> - platforms/ios/My App/config.xml
> The documentation
> (https://cordova.apache.org/docs/en/2.8.0/guide_project-settings_index.md.html)
> doesn't explain why I need two, and the app appears to compile and work
> correctly when they are identical, although they are different (but with the
> same widget id) when the project is first created. But removing either of
> them causes "$cordova emulate ios" to fail.
> This seems to violate the DRY principle, particularly because it seems easy
> to put different version numbers in them without raising any warnings.
> Maybe it's something to do with the space in the app name?
> Perhaps a documentation change is needed, saying that "platforms/ios/My
> App/config.xml" overrides "www/config.xml"? But if that is the case, it seems
> that for consistency it should be possible to put the over-riding version
> into the merges directory, but I haven't figured out how to override
> "platforms/ios/My App/config.xml" from the merges directory, so again maybe a
> change to the documentation would help.
--
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