cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-9264) Duplicate entries in config.xml
Date Wed, 16 Mar 2016 05:52:33 GMT

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

Shazron Abdullah edited comment on CB-9264 at 3/16/16 5:52 AM:
---------------------------------------------------------------

This is causing problems in CB-10694 as well.

In iOS, it is doing a simple xml merge: https://github.com/apache/cordova-ios/blob/036765d326b24c14a3cae16a5c56646dae86d7c4/bin/templates/scripts/cordova/lib/prepare.js#L85

... in cordova-lib/xml-helpers.js. We need to do a post-processing step where we remove duplicate
entries.


was (Author: shazron):
This is causing problems in CB-10694 as well. Android and iOS have Platform API implementations
now, so the config.xml merging implementation resides in the platform themselves.

In iOS, it is doing a simple xml merge: https://github.com/apache/cordova-ios/blob/036765d326b24c14a3cae16a5c56646dae86d7c4/bin/templates/scripts/cordova/lib/prepare.js#L85

... in cordova-lib/xml-helpers.js. We need to do a post-processing step where we remove duplicate
entries.

> Duplicate entries in config.xml
> -------------------------------
>
>                 Key: CB-9264
>                 URL: https://issues.apache.org/jira/browse/CB-9264
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaCommon, iOS
>    Affects Versions: 5.0.0, 5.1.1
>         Environment: iOS, Android
>            Reporter: Jackson Kearl
>              Labels: cordova-ios-4.1.1, triaged
>
> After adding an 
> {code:xml}
> <preference name="KeyboardDisplayRequiersUserAction" value="false"/>`
> {code}
> entry to app/config.xml, cordova build will create the app/platforms/ios/AppName/config.xml
file with 
> {code:xml}
> <preference name="KeyboardDisplayRequiersUserAction" value="true"/> 
> ...
> <preference name="KeyboardDisplayRequiersUserAction" value="false"/> 
> {code}
> The second assignment has no affect, causing the app to behave as if only the true assignment
had ever occurred. Upon manually setting the first value to false, the app executes properly.




--
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


Mime
View raw message