Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27685] Android: Update hyperloop module to support gradle dependencies

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-02-06T19:15:53.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.0
ComponentsAndroid, Hyperloop
Labelsandroid, gradle, hyperloop
ReporterJoshua Quick
AssigneeJoshua Quick
Created2019-12-14T00:18:51.000+0000
Updated2020-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.

Comments

  1. Joshua Quick 2019-12-14

    PR: https://github.com/appcelerator/hyperloop.next/pull/329
  2. Lokesh Choudhary 2020-02-04

    FR Passed. PR Merged.
  3. Joshua Quick 2020-02-06

    PR (titanium_mobile): https://github.com/appcelerator/titanium_mobile/pull/11465
  4. Lokesh Choudhary 2020-02-06

    Verified the fix with SDK 9.0.0.v20200206090105 which consists of module 5.0.0. Closing

JSON Source