Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3891] Customizable Core Image Locations (Icons, Splash[, iTunesArtwork])

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 1.8.0
Fix Version/sn/a
ComponentsTooling
Labelsn/a
ReporterDawson Toth
AssigneeEric Merriman
Created2011-05-04T07:17:19.000+0000
Updated2018-08-02T17:31:55.000+0000

Description

New Feature

Add the option to customize the location of core images on both Android and iOS. By "core images", I mean app icons, launch images, and (on iOS), the iTunesArtwork.

Ideal Behavior

The tooling could look in the tiapp.xml to see if the paths have been customized. It could then adjust the generated project files' paths to the images, or copy the core images to where it wants them in the generated project.

Sample tiapp.xml

This is my idea for how it could work.
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.dawson.coreimagessample</id>
    <name>CoreImagesSample</name>
    ... etc ...
    <app-icons>
        <image device="iphone">images/iphone/appicon.png</image>
        <image device="iphone-retina">images/iphone/appicon@2x.png</image>
        <image device="ipad">images/ipad/appicon@ipad.png</image>
        <image device="android" density="low">images/android/appicon.png</image>
        <image device="android" density="medium">images/android/appicon@medium.png</image>
        <image device="android" density="high">images/android/appicon@high.png</image>
    </app-icons>
    <launch-images>
        <image device="iphone" orientation="landscape">images/iphone/appicon.png</image>
        <image device="iphone" orientation="portrait">images/iphone/appicon.png</image>
        ... etc ...
    </launch-images>
    <iTunesArtwork>images/iphone/iTunesArtwork</iTunesArtwork>
</ti:app>

Why

One of our enterprise customers wants to be able to have a single folder that their designers can access. Right now, they have to have certain images in the top Resources folder, which is undesirable for their use case. They don't want designers to have access to the programming, but don't have a choice with how the tooling works right now.

Associated Helpdesk Ticket

http://appc.me/c/APP-539222

Comments

  1. Dawson Toth 2011-06-01

    I will test if the /platform folder can be used on both iOS and Android for maintaining a single folder (relatively) with all image resources separate from the code base, and then I will repurpose this ticket for any necessary changes. [As per conversation with Don.]
  2. Don Thorp 2011-08-01

    To large for 1.8.0.
  3. Dawson Toth 2011-08-15

    Bumped to "Next Release". I have experimented on iOS with placing images on the platform/ios folder, but I haven't been able to use these or figure out where they are in the resulting generated project. I'll investigate further in the near future.
  4. Dawson Toth 2011-11-03

    I just verified that the contents of platform/iphone are NOT copied in to the resulting app. The tooling needs to be updated to copy the contents of this folder in to the app, like it does on Android.

    How To Test

    1. Create an app or use an existing one; the JavaScript doesn't matter. 2. Create the "platform/iphone" folder. "platform" should be side by side with your "Resources" directory, and not inside of it. 3. Create an image or a file in the "platform/iphone" folder. 4. Build your project. 5. Show the package contents of build/iphone/build/Debug-iphonesimulator/your.app. 6. Locate your image that you placed in "platform/iphone".
  5. Tim Poulsen 2015-02-05

    This is a pretty old ticket. The linked ticket could possibly resolve the original use-case behind this ticket.

JSON Source