Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27770] Android: Module build should add empty "build.gradle" if missing

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2020-03-06T16:13:15.000+0000
Affected Version/sRelease 9.0.0
Fix Version/sRelease 9.0.0
ComponentsAndroid
Labelsandroid, build, gradle, module
ReporterJoshua Quick
AssigneeJoshua Quick
Created2020-02-19T00:15:23.000+0000
Updated2020-03-06T16:13:15.000+0000

Description

*Summary:* When building an existing module for 9.0.0, the build system's migration code should add an empty "build.gradle" file to the project folder if missing. *Reasons:*

This will help compel developers to use this file to reference libraries instead of using the "lib" directory.

Appcelerator Studio needs a "clue" in the directory that indicates it is an Android project or else it won't be able to build/package it. This will resolve [TISTUD-9204].

*Note:* Titanium 9.0.0's module template has already been updated to provide an empty "build.gradle" file. The migration code should use this same file.

Comments

  1. Joshua Quick 2020-02-19

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/11483 PR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11484
  2. Christopher Williams 2020-03-02

    merged to master/9_0_X for 9.0.0 release
  3. Lokesh Choudhary 2020-03-06

    Verified the fix with SDK 9.0.0.v20200304064118. Closing.

JSON Source