Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14644] Liveview does not read files from platform specific folder

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-07-25T22:22:40.000+0000
Affected Version/sRelease 3.1.2
Fix Version/s2013 Sprint 15 Tooling, 2013 Sprint 15, Release 3.1.2, Release 3.2.0
ComponentsLiveView
Labelsqe-closed-3.2.0
ReporterChristian Sullivan
AssigneeChristian Sullivan
Created2013-07-24T19:28:52.000+0000
Updated2013-12-18T11:23:42.000+0000

Description

Add support for platform specific folder assets

Comments

  1. Christian Sullivan 2013-07-25

    resolved in [master] https://github.com/appcelerator/liveview/commit/1d3882115cf98a72778c28a68a3858faa5f5aa76
  2. Priya Agarwal 2013-12-18

    Tested Environment: Appcelerator Studio: 3.2.0.201312171913 SDK:3.2.0.v20131217190633 alloy: 1.3.0-cr2 acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Xcode:5.0.2 OS: Mac OSX 10.9 Device: HTC Desire(v4.0.3) and Iphone5C(v7.0.4)
       Ti.UI.backgroundColor = 'white';
       var win = Ti.UI.createWindow();
       var imageView = Titanium.UI.createImageView({
       		image:'/chat.png',
       		width:261,
       		height:178,
       		top:20,
       		borderColor:'red',
       		borderWidth:2
       	});
       win.add(imageView);
       win.open();
       
    Steps used to test: 1) Copy paste the above code in app.js 2) Put any two different png images with same name inside individual platform specific folders.(just to differentiate the platform specific assets are read while liveView enabled.) Have used two different image but with same name as "chat.png" and have put under Resources> android>chat.png and Resources>iphone>chat.png 3)Enable LiveView and run the app on both the platforms individually. Expected Result: 3) Image inside imageView must be same as the one which were put inside specific folders in Step2.

JSON Source