cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpogue <>
Subject [GitHub] cordova-lib issue #468: CB-8978 Add resource-file parsing to config.xml
Date Tue, 29 Nov 2016 17:41:11 GMT
Github user dpogue commented on the issue:
    For clarity, "top-level support" means allowing `resource-file` tags that aren't scoped
to a particular platform.
    <widget ...>
        <resource-file src="foo.xml" target="bar.xml" />
    This would copy `./foo.xml` to `./platforms/ios/bar.xml`, `./platforms/windows/bar.xml`,
    It's not clear if there's a use case for files that get copied into every platform.
    What will definitely be supported is platform-scoped `resource-file` tags:
    <widget ...>
        <platform name="android">
            <resource-file src="gservice.json" target="google-services.json" />
            <resource-file src="icons/notification-mdpi.png" target="res/drawable-mdpi/ic_notification.png"
    This would copy `./gservices.json` to `./platforms/android/google-services.json` and copy
`./icons/notification-mdpi.png` to `./platforms/android/res/drawable-mdpi/ic_notification.png`
    This does not require files to go under the www folder, the target can be anywhere in
the platform directory (same as with plugin `resource-file` tags)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

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

View raw message