{ "id": "170151", "key": "TIMOB-25448", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-10T01:02:16.000+0000", "created": "2017-10-27T01:22:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "java", "module" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-15T05:52: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nCurrently, the \"appc\" command line tool builds Titanium Android modules with Java 6 which is obsolete and generates compiler warnings.\r\n\r\nWe should switch to compiling modules with Java 7 which is 100% supported by the Android SDK and is what Google currently recommends. Plus, module developers can take advantage of Java 7's newest language features, such as the Closable try-resouce feature.\r\n\r\n*Note:*\r\nThe Android SDK does not fully support Java 8 yet. We can use the JDK 8 or JDK 9 tools, but compile with Java 7 until Google has full support.\r\n\r\n*How to test:*\r\n\r\n# Unzip the attached [^java7module.zip] file.\r\n# Open the Mac terminal (or Windows command prompt).\r\n# In the terminal, \"cd\" (change directory) to the \"./java7Module/android\" directory.\r\n# In the terminal, enter: appc ti sdk select\r\n# You will be prompted to select an SDK version. Enter the newest Titanium version.\r\n# In the terminal, enter: appc run -p \"android\" --build-only\r\n# Verify that the build was successful. (Note that compiler errors will occur if compiling with Java 6.)\r\n", "attachment": [ { "id": "63486", "filename": "java7module.zip", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-27T01:23:24.000+0000", "size": 11604, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Update module build tools to compile with Java 7", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "429720", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9562", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-27T02:44:50.000+0000", "updated": "2017-10-27T02:44:50.000+0000" }, { "id": "430370", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR, and merged.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-10T01:02:04.000+0000", "updated": "2017-11-10T01:02:04.000+0000" }, { "id": "430662", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changes are seen in SDK 7.0.0.v20171114202841.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-15T05:52:44.000+0000", "updated": "2017-11-15T05:52:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }