{ "id": "174763", "key": "TIMOB-27778", "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": "20949", "name": "Release 9.0.1", "archived": false, "released": true, "releaseDate": "2020-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-04-02T14:27:44.000+0000", "created": "2020-02-25T00:00:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "build", "gradle", "tools" ], "versions": [], "issuelinks": [ { "id": "58234", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174766", "key": "TIMOB-27781", "fields": { "summary": "Android: App/Module builds fail with JDK 13 as of 9.0.0", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "58232", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174764", "key": "TIMOB-27780", "fields": { "summary": "Android: Hyperloop builds fail if JDK 12 or higher is installed", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-04-02T14:27: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\nAs of Titanium 9.0.0, we're using Android gradle build tool 3.4.2 to build the SDK, apps, and modules.\r\n{code}\r\n'com.android.tools.build:gradle:3.4.2'\r\n{code}\r\n\r\nWe should update the tools to version 3.6.x.\r\nhttps://developer.android.com/studio/releases/gradle-plugin#3-6-0\r\n\r\nThe newest build tools are supposed to improve APK build times.\r\nhttps://developer.android.com/studio/releases/gradle-plugin#zipflinger\r\n\r\n*Note:*\r\nWe should also update our gradle template to 6.0.x which has full support for JDK 13.\r\nhttps://developer.android.com/studio/releases/gradle-plugin#updating-gradle\r\nhttps://docs.gradle.org/6.0/release-notes.html\r\n\r\n*To-Do:*\r\nWe must update the version in the following files...\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/build.gradle\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/templates/build/root.build.gradle\r\n\r\nUpgrading will cause the SDK and module builds to fail. The reason is because Google's build tool will now compile C/C++ before Java, which is an issue since our {{kroll-apt}} Java annotation processor generates C++ source files. We can solve this by adding the below to the library project's \"build.gradle\" file.\r\n{code:groovy}\r\nproject.afterEvaluate {\r\n\texternalNativeBuildDebug.dependsOn compileDebugJavaWithJavac\r\n\texternalNativeBuildRelease.dependsOn compileReleaseJavaWithJavac\r\n}\r\n{code}\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/build.gradle\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/templates/module/generated/build.gradle\r\n\r\nWe will also need to update our gradlew and gradle library folder to the newest version.\r\nhttps://github.com/appcelerator/titanium_mobile/tree/master/android", "attachment": [], "flagged": false, "summary": "Android: Update gradle build tools to 3.6.x", "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, "closedSprints": [ { "id": 1181, "state": "closed", "name": "2020 Sprint 5", "startDate": "2020-03-02T18:45:02.513Z", "endDate": "2020-03-13T18:45:00.000Z", "completeDate": "2020-03-13T16:42:04.632Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454481", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/11507\r\nPR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11510", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-29T04:28:05.000+0000", "updated": "2020-02-29T05:12:40.000+0000" }, { "id": "454782", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-03-20T12:23:23.000+0000", "updated": "2020-03-20T12:23:23.000+0000" }, { "id": "454944", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK version 9.1.0.v20200401121418. and 9.0.1.v20200331084758\r\n\r\nTest and other information can be found at:\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/11507\r\nPR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11510", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-02T14:27:35.000+0000", "updated": "2020-04-02T14:27:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }