Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27734] Fix Android to use DefaultIcon.png for generating missing icons

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, cb-tooling, griffin-app, icons
ReporterBrenton House
AssigneeUnknown
Created2020-01-23T16:08:44.000+0000
Updated2020-04-01T08:59:28.000+0000

Description

Currently, there is a DefaultIcon.png and a DefaultIcon-ios.png in the project root directory. iOS uses the DefaultIcon-ios.png but I think Android uses something like /app/assests/android/appicon.png Their should be a DefaultIcon-android.png file that is used by Android (if it exists) and the DefaultIcon.png should be the default fallback if either DefaultIcon-ios.png or DefaultIcon-android.png is missing.

Comments

  1. Chris Barber 2020-04-01

    This is definitely a bug/oversight. The Android build [calls](https://github.com/appcelerator/titanium_mobile/blob/c8f358dcdd50763fb509576ee635f626bc9ba069/android/cli/commands/_build.js#L870) the base Builder validate that [generates the list of defaultIcons](https://github.com/appcelerator/node-titanium-sdk/blob/3cfe4346ee87b67fd7da89c2d75a525c588a7c93/lib/builder.js#L143-L146). The problem is nowhere (as far as I can tell) does the Android build call generateAppIcons() or reference this.defaultIcons. The Android build should call generateAppIcons() with the appropriate destination whether that be in the res folder or elsewhere.
  2. Ewan Harris 2020-04-01

    FWIW, the work got done and then reverted in TIMOB-19486

JSON Source