{ "id": "98890", "key": "TIMOB-10352", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "13872", "description": "", "name": "Sprint 2012-16 Core", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-08T13:15:37.000+0000", "created": "2012-08-08T12:53:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "qe-port" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2013-03-29T00:02:01.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": "10207", "name": "Tooling" } ], "description": "Android itself supports an environment variable, ANDROID_SDK_HOME, which can be used to indicate where the user wants Android's tools to create user-specific files, most especially AVDs and .sdcard images. We (Titanium) should also support that.\r\n\r\nBy default, the location is \".android\" under the user's home directory for AVDs, and \".titanium\" for .sdcard images. However, we should respect ANDROID_SDK_HOME if it is available.", "attachment": [], "flagged": false, "summary": "Tooling: Android: Support alternative avd/sdcard locations via ANDROID_SDK_HOME environment variable", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Android. All three desktop platforms: Windows, OSX, Linux.", "comment": { "comments": [ { "id": "213371", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "We have a community pull request for this:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2664", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-08T12:53:38.000+0000", "updated": "2012-08-08T12:53:38.000+0000" }, { "id": "213375", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h3. Testing Notes\r\n\r\nDo two passes testing the pull request branch. In the first pass, don't change anything on your system. Just make sure building and releasing an app is not broken. Then, before the second pass, set the environment variable ANDROID_SDK_HOME to an alternative path (anything you want) that exists on your system.\r\n\r\nIf you're testing with OSX, remember that because Titanium Studio is a GUI app, setting an environment variable in your .profile or in a shell won't really work. The proper way to do it is this command in a Terminal window....\r\n\r\n{code}\r\nlaunchctl setenv ANDROID_SDK_HOME /your/path/to/wherever\r\n{code}\r\n\r\n(Re-launch Titanium Studio *after* that.)\r\n\r\nThe testing steps:\r\n\r\n0) Make sure no existing emulator instances are running.\r\n1) Open Titanium Studio.\r\n2) Open an existing project or create a new one -- doesn't matter.\r\n3) Launch the project to the Android Emulator. If you're doing the first pass, just make sure it works. If you're doing the second pass, after the emulator loads the app go and check that indeed an .sdcard image and AVD are created in the path you specified for ANDROID_SDK_HOME. (You should see .titanium and .android subfolders under that path, and contents in them.)", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-08T13:08:34.000+0000", "updated": "2012-08-08T13:13:30.000+0000" }, { "id": "216410", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alternate location of AVD/SDK through ANDROID_SDK_HOME environment variable is supported. Tested through the testing notes mentioned in the comment.\r\nVerified on:\r\nTitanium Studio: 2.1.2.201208201549\r\nTitanium SDK: 2.2.0.v20120827143312\r\nAndroid: Google API Android 2.2 Emulator\r\nAndroid Runtime: V8, Rhino", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-28T05:42:27.000+0000", "updated": "2012-08-28T05:42:27.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }