{ "id": "63802", "key": "TIMOB-3170", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11256", "description": "", "name": "Sprint-2011-08", "archived": true, "released": true, "releaseDate": "2011-02-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:01:06.000+0000", "created": "2011-04-15T03:38:41.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "include", "jss", "release-1.7.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:01:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

If you have an app.js with an app.jss everything works fine. If\nyou add any Ti.include into the file the app.jss is ignored.

\n

Ticket reference: http://developer.appcelerator.com/helpdesk/view/73861

{html}", "attachment": [], "flagged": false, "summary": "Android Bug: JSS ignored if file has an include", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130219", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Fixing tags, fixing title to conform to ticket guidelines.

\n

@Ben or @Alan what version of the mobilesdk?

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:42.000+0000", "updated": "2011-04-15T03:38:42.000+0000" }, { "id": "130220", "author": { "name": "ben", "key": "ben", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hi Don, I tested with 1.6 RC1 and the 1.7.x build series from\nFeb 15th. Both had the issue.

{html}", "updateAuthor": { "name": "ben", "key": "ben", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:42.000+0000", "updated": "2011-04-15T03:38:42.000+0000" }, { "id": "130221", "author": { "name": "ben", "key": "ben", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

An additional point, it isn't limited to app.js and app.jss it\nappears to be an issue on any window with Ti.include

{html}", "updateAuthor": { "name": "ben", "key": "ben", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:42.000+0000", "updated": "2011-04-15T03:38:42.000+0000" }, { "id": "130222", "author": { "name": "marks", "key": "marks", "displayName": "Mark S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I noticed the same issue on 1.6.0 with Android.

{html}", "updateAuthor": { "name": "marks", "key": "marks", "displayName": "Mark S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:42.000+0000", "updated": "2011-04-15T03:38:42.000+0000" }, { "id": "130223", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Simple failcase:

\n

app.js:

\n
\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#000',\n    exitOnClose: true\n});\n\nTi.include('test.js');\nwin.add( Ti.UI.createButton({id:'btnTest', title: 'Mickey'}) );\nwin.open();\n
\n

app.jss:

\n
\n#btnTest {\n    height: 80;\n    width: 200;\n    font-size: 40\n}\n
\n

test.js:

\n
\nTi.API.info('hello from test.js');\n
\n

The button that displays should be a \"big\" (height 80)\nbutton with some big text on it. But you'll just get a normal\nbutton with normal font size in the failcase.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:38:43.000+0000", "updated": "2011-04-15T03:38:43.000+0000" }, { "id": "130224", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [da7f39dbb79b4bc8230ba36d0698f8e51e493701])\nWhen evalFile called for Ti.include(), make sure context's url gets\nset back to original else things that depend on the filename --\nlike JSS -- break. [#3170 state:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/da7f39dbb79b...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:38:43.000+0000", "updated": "2011-04-15T03:38:43.000+0000" }, { "id": "130225", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested with Titanium SDK version: 1.7.0 (03/01/11 16:09\ne613126)
\nG1 1.6
\nGalaxyTab 2.2
\niPhone 4 OS 4.2.1
\nEmulator 2.1

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:43.000+0000", "updated": "2011-04-15T03:38:43.000+0000" }, { "id": "130226", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

@Bill should this get onto 1.6.1. Seems like it should to\nme.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:44.000+0000", "updated": "2011-04-15T03:38:44.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }