{ "id": "108595", "key": "TIMOB-12432", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-08-27T01:54:11.000+0000", "created": "2013-01-25T23:42:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-22T21:07:44.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h6.Feature Request\r\nAdd the ability to _transport.py_ to be \"smart\" enough to re-create the iphone in a similar way as Titanium Studio does.\r\n\r\n- \"iphone/transport.py\"\r\n\r\n{code}\r\n # Clean build dir (if it exists), error otherwise (no iphone support)\r\n info(\"Cleaning build...\")\r\n if os.path.exists(build_dir):\r\n for f in os.listdir(build_dir):\r\n path = os.path.join(build_dir,f)\r\n if os.path.isfile(path):\r\n os.remove(path)\r\n else:\r\n shutil.rmtree(path)\r\n else:\r\n info(\"Your project is not configured to be built for iphone.\")\r\n exit(1)\r\n{code}\r\n\r\nWhen you run clean in Titanium Studio (Project -> Clean... -> Clean All Projects for instance) it deletes the iphone directory under build. \r\n\r\n- If project has no iphone it won't migrate resources:\r\n\r\n{code}\r\negomezMBP:Titanium Studio Workspace egomez$ /Library/Application\\ Support/Titanium/mobilesdk/osx/3.0.0.GA/iphone/./transport.py AppLeak/\r\n[INFO] Cleaning build...\r\n[INFO] Your project is not configured to be built for iphone.\r\n{code}\r\n\r\n- Build Titanium project to get it to work (iphone build present).\r\n \r\n{code}\r\negomezMBP:Titanium Studio Workspace egomez$ /Library/Application\\ Support/Titanium/mobilesdk/osx/3.0.0.GA/iphone/./transport.py AppLeak/ \r\n[INFO] Cleaning build... \r\n[INFO] Migrating resources... \r\n[INFO] Migrating platform/iphone to Resources... \r\n[INFO] Migrating tiapp.xml... \r\n[INFO] Generating project from Titanium template... \r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Transport.py - Add the ability to re-create the iphone in a similar way as Titanium Studio does", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "394546", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "{{transport.py}} has been deprecated and there currently no alternative.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-27T01:54:11.000+0000", "updated": "2016-08-27T01:54:11.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }