[TIMOB-19485] MobileWeb: Generate missing app icons based on DefaultIcon.png
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | None |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2017-06-26T23:05:17.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | MobileWeb, Tooling |
| Labels | n/a |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2015-09-09T21:44:16.000+0000 |
| Updated | 2018-04-04T23:20:17.000+0000 |
Description
If any of the app icons are missing, then search for
<project-dir>/platforms/mobileweb/DefaultIcon.png and <project-dir>/DefaultIcon.png and us it to generate missing app icons.
You simply need to the base Builder object's generateAppIcons() method:
var missingIcons = [
{
description: 'Resources/<platform>/appicon.png - Used for iPhone', // some meaningful description... iOS build dynamically generates this
file: '/path/to/dest.png', // MUST be a png and MUST have an extension
width: 100, // whatever is required
height: 100, // should match width
required: true // when DefaultIcon.png isn't big enough, true will trigger an error and false will skip the icon
}
];
this.generateAppIcons(missingIcons, function (err) {
// err is either true if there was an error or undefined if it was successful
});
Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.