Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19486

Android: Generate missing app icons based on DefaultIcon.png

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android, Tooling
    • Labels:
    • Story Points:
      8

      Description

      If any of the app icons are missing, then search for <project-dir>/platforms/android/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
      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                cbarber Chris Barber
                Reviewer:
                Chris Barber
              • Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration