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-8978) Adding New Image Element to config.xml
Date Tue, 29 Nov 2016 17:41:58 GMT


ASF GitHub Bot commented on CB-8978:

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)

> Adding New Image Element to config.xml
> --------------------------------------
>                 Key: CB-8978
>                 URL:
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: CLI, CordovaLib
>    Affects Versions: Master
>         Environment: Android, iOS, WP8, Windows, Blackberry
>            Reporter: Karen Tran
>            Assignee: Karen Tran
>              Labels: config.xml, images
>   Original Estimate: 168h
>  Remaining Estimate: 168h
> At present, there are only an icon element and splashscreen element that handles copying
images from a source to destination in the config.xml. These elements also only handle copying
1 image only and replacing what was previously there as the icon.png or splash.png. 
> I'm creating a new tag that will copy non-main app icon images, which could be notification
icons, button icons, custom image text, etc. and not limited to just 1 image. 
> Example:
> <image src="res/android/notification.png" name="notification.png" />
> <image src="res/android/notification-mdpi.png" name="notification.png" density="mdpi"
> The required attributes will be src and name. 
> Depending on the directory that the image gets copied to, the width and height attribute
may not be needed. 

This message was sent by Atlassian JIRA

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

View raw message