Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4417] Add pathing to assets for Javascript Modules

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-10-11T09:41:46.000+0000
Affected Version/sRelease 1.7.0, Release 1.6.2, Release 1.8.0
Fix Version/sSprint 2011-35
ComponentsiOS
Labelsn/a
ReporterAlan Leard
AssigneeAlan Leard
Created2011-06-15T12:59:57.000+0000
Updated2013-08-29T20:15:15.000+0000

Description

Resources placed in the assets directory when building a module get placed in /modules/[ti.module]/ of the application bundle, but when building a javascript module there seems to be no way to access those resources. A sample module with a sample app is attached for testing. This feature may also be related to this ticket: TIMOB-4233

Attachments

FileDateSize
testimg.zip2011-06-15T12:59:57.000+0000146128

Comments

  1. Blain Hamon 2011-06-24

    Since this is a nigh-duplicate of 4233, and has deeper implications for those using modules than those using the built-in portions, it might be best to have Jeff take control of this bug.
  2. Jeff English 2011-08-16

    The assets are being copied properly into the module/ folder. Per the resolution of TIMOB-4233 we are not going to copy module resources into the application bundle root, so there needs to be an improvement to allow the JS modules to access the module's assets folder.
  3. Reggie Seagraves 2011-09-01

    In 1.8.0, the second form "var img_url = '/modules/com.testimg/user_default.png';" should be working. Reassigning to Alan for validation.

JSON Source