Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28092] Android: Native modules pinned to build Titanium SDK version

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-08-25T05:19:18.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.1.0
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2020-08-20T16:25:40.000+0000
Updated2020-08-25T05:19:18.000+0000

Description

Building a Titanium Android native module with SDK 9.0.0+ will pin the module to require the SDK the module was built with or newer. For example, building titanium-identity with 9.0.3.GA will cause a build failure for any project builds that include the module and use a older Titanium SDK. This is because the *.pom file generated depends on org.appcelerator.titanium:
<dependency>
    <groupId>org.appcelerator</groupId>
    <artifactId>titanium</artifactId>
    <version>9.0.3</version>
</dependency>
*TEST CASE* 1. Build a native Android module using 9.0.3.GA (i.e: https://github.com/appcelerator-modules/titanium-identity) 2. Include module in project that uses an older Titanium SDK (9.0.0, 9.0.2, ...) 3. Build will fail
[ERROR] : [GRADLE] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
[ERROR] : [GRADLE] > Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
[ERROR] : [GRADLE] > Could not find org.appcelerator:titanium:9.0.3.

Comments

  1. Gary Mathews 2020-08-20

    https://github.com/appcelerator/titanium_mobile/pull/11935
  2. Lokesh Choudhary 2020-08-25

    FR Passed.
  3. Lokesh Choudhary 2020-08-25

    PR's merged.

JSON Source