cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpogue <...@git.apache.org>
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:

    https://github.com/apache/cordova-lib/pull/468
  
    For clarity, "top-level support" means allowing `resource-file` tags that aren't scoped
to a particular platform.
    
    i.e.,
    ```xml
    <widget ...>
        <resource-file src="foo.xml" target="bar.xml" />
    </widget>
    ```
    This would copy `./foo.xml` to `./platforms/ios/bar.xml`, `./platforms/windows/bar.xml`,
etc.
    
    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:
    ```xml
    <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"
/>
        </platform>
    </widget>
    ```
    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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message