Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3237] Alloy widget assets directory structure seems reversed...a little counterintuitive.

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusClosed
ResolutionWon't Fix
Resolution Date2013-02-07T01:27:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsalloy, assets, directory
ReporterSenica Gonzalez
AssigneeTony Lukasavage
Created2013-02-04T10:13:12.000+0000
Updated2016-03-08T07:57:38.000+0000

Description

I created an Alloy widget (right click > New > Alloy Widget). Then under assets I created a subfolder called categories then a subfolder called error so it looks like ASSETS > CATEGORIES > ERROR. I was trying to access a file in the error directory called error.png but it kept coming up blank. So I looked in the resources directory and the directory structure seemed backwards. See the image attached. It was essentially RESOURCES > CATEGORIES > ERROR > COM.[widget name] > error.png It's a little counterintuitive. Could each widget not have their own directory structure instead of sharing?

Attachments

FileDateSize
folderstructure.tiff2013-02-04T10:13:12.000+000032074

Comments

  1. Tony Lukasavage 2013-02-07

    The reason it is structured in this manner is so that you can take advantage of Titanium's platform-specific folders. If they are structured in this way, you can easily make use of the android, iphone, and mobileweb folders with a widget while still preventing the chance of filename collisions.

JSON Source