Project: titanium
Issue TIMOB-19486: Android: Generate missing app icons based on DefaultIcon.png
If any of the app icons are missing, then search for {{/platforms/android/DefaultIcon.png}} and {{/DefaultIcon.png}} and us it to generate missing app icons. You simply need to the base Builder object's {{generateAppIcons()}} method: {code} var missingIcons = [ { description: 'Resources//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 }); {code}
Story points: 8