{ "id": "61313", "key": "TIMOB-681", "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": "11223", "name": "Release 1.3.0", "archived": true, "released": true, "releaseDate": "2010-05-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:54.000+0000", "created": "2011-04-15T02:34:19.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:54.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}

To help cut down on the number of support requests, it would be\nhelpful to have builder.py detect and report more information.

\n

1) The SDK field is filled in, if not display a message\ndirecting them to the profile page to set the location.

\n

2) If the SDK directory is specified, insure that its directory\ncontains

\n
\na) addons\nb) platforms\nc) tools\n
\n

If not, walk backward up the directory tree and reperform the\ntest until you're at the root directory, don't have permissions, or\na matching directory is found. If a matching directory is found,\ndisplay a message that it is configured incorrectly and show the\npath they should use insted. If not found, ask them to set the path\nmanually and direct them to the profile page.

\n

3) If the SDK directory is correct, verify that the tools\ndirectory contains

\n
\na) adb\nb) android\n
\n

If not then display a message saying that the directory does not\nhave the tools required for and they may need to install.

\n

4) If the SDK directory is correct, test for required platform\nfor building. Using the directory mapper test for the presence of\naapt and/or dx.

\n

5) Validate the version of Java. Several people are still on\nLeopard and have 1.5 and not 1.6.

\n

It might be beneficial to output a message for each of the tests\nthat pass (e.g. [INFO] adb : OK, or [ERROR] dx : FAIL)

{html}", "attachment": [], "flagged": false, "summary": "Android: Improve SDK detection and reporting.", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123797", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also test for valid versions of tools \nQ&A

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:20.000+0000", "updated": "2011-04-15T02:34:20.000+0000" }, { "id": "123798", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [9d6b034b42c14af2a2126e30b65b1663eed082fa])\nadded better device/emulator detection in the AndroidSDK module\n[#681] \nhttp://github.com/appcelerator/titanium_mobile/commit/9d6b034b42c14...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:20.000+0000", "updated": "2011-04-15T02:34:20.000+0000" }, { "id": "123799", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [b9bfce3a14a62b8cebb0bbe53199e87e1b84e650])\nuse more tolerant classname / activity name generation (this should\nstrip dots, spaces, and generally anything not allowed in a\nclassname) [#681] \nhttp://github.com/appcelerator/titanium_mobile/commit/b9bfce3a14a62...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:20.000+0000", "updated": "2011-04-15T02:34:20.000+0000" }, { "id": "123800", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This commit to developer does most of the validation work:
\n\nhttp://github.com/appcelerator/titanium_developer/commit/23b84ff94d...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:20.000+0000", "updated": "2011-04-15T02:34:20.000+0000" }, { "id": "123801", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [50bfa0b298c29e6a4fc364261233a882139856f2])\ncheck java version on each launch, get prereq back to working like\nit should (and also check for java 1.6) [#681\nstate:resolved] \nhttp://github.com/appcelerator/titanium_mobile/commit/50bfa0b298c29...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:21.000+0000", "updated": "2011-04-15T02:34:21.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }