[
https://issues.apache.org/jira/browse/CB-9264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196861#comment-15196861
]
Shazron Abdullah commented on CB-9264:
--------------------------------------
We'll have to add a new post-processing function that is called in mergeXml,
for example, called 'removeDuplicatePreferences', that will find all
<preference> tags, and write them into a hashtable (clobber) with the key being
the 'name' attribute and the value the 'value' attribute. After processing, we
remove the old <preference> tags, and write out our new ones.
> 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: [email protected]
For additional commands, e-mail: [email protected]