[TIMOB-27685] Android: Update hyperloop module to support gradle dependencies
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-02-06T19:15:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.0.0 |
Components | Android, Hyperloop |
Labels | android, gradle, hyperloop |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2019-12-14T00:18:51.000+0000 |
Updated | 2020-02-06T19:15:53.000+0000 |
Description
*Summary:*
In Titanium 9.0.0, we will be changing the Android app build system from "ant" to "gradle". This will be a breaking-change that will require the hyperloop module to change how it hooks into the build. But this is also a good opportunity to support gradle's "dependencies" feature which allows the hyperloop user to reference dependencies via their maven
<groupId>:<libraryName>:<version>
references.
*Recommended Solution:*
Add support for an optional "build.gradle" file to the following Titanium app project directory...
./platform/android/build.gradle
The file can then reference dependences like this...
repositories {
google()
jcenter()
}
dependencies {
implementation 'com.google.android.gms:play-services-ads:18.3.0'
}
*Note:*
This feature depend on [TIMOB-19300] to be completed first.
PR: https://github.com/appcelerator/hyperloop.next/pull/329
FR Passed. PR Merged.
PR (titanium_mobile): https://github.com/appcelerator/titanium_mobile/pull/11465
Verified the fix with SDK 9.0.0.v20200206090105 which consists of module 5.0.0. Closing