cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11023) plugin.xml should be able to add attribute to an existing element in AndroidManifest.xml
Date Thu, 19 May 2016 20:21:12 GMT


ASF GitHub Bot commented on CB-11023:

Github user ktop commented on the pull request:
    @riknoll Vladimir is correct, there is no mechanism for either yet. 
    I think warnings are good, but does that mean the plugins that get installed first get
first dibs to modifying xml elements? How do we go about keeping track of whether or not an
attribute/element was modified or not?
    For the second question, that has actually crossed my mind a few times while testing (how
I couldn't modify the second activity tag or add children to it). I'm not really sure the
best way to handle it. I've thought about adding an identifier attribute to the config-file
tag, but that would limit config-file to modify only one element. 
    <config-file target="AndroidManifest.xml" parent="/manifest/application" identifierName="android:name"
identifierValue="SecondActivity" mode="merge" >
        <activity android:configChanges="orientation|keyboardHidden|screenSize" />
    End goal would be to be able to modify both activity tags in the same config-file tag,
but that may be a stretch. 

> plugin.xml should be able to add attribute to an existing element in AndroidManifest.xml
> ----------------------------------------------------------------------------------------
>                 Key: CB-11023
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI, Plugman
>            Reporter: Carlos Santana
> We have a need for a plugin we develop to add the attribute android:name to the <application>
element to be able to point to a Class that tracks app sessions for analytics.
> plugin.xml only support via <config-file> only to add elements to AndroidManfist.xml
this request is to add an enhancement to also handle adding an attribute to an existing element.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message