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
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.]
To large for 1.8.0.
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.
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".This is a pretty old ticket. The linked ticket could possibly resolve the original use-case behind this ticket.