Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25442] Android: Update SDK to compile with Java 7

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-11-10T01:01:39.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.0.0
ComponentsAndroid
Labelsandroid, java
ReporterJoshua Quick
AssigneeJoshua Quick
Created2017-10-25T22:22:01.000+0000
Updated2017-11-15T06:08:43.000+0000

Description

*Summary:* The Titanium SDK for Android is currently built with Java 6, which is obsolete and generates compiler warnings when building with the Android SDK. We should switch to compiling with Java 7 which is 100% supported by the Android SDK and is what Google currently recommends. Plus, we can take advantage of Java 7's newest language features, such as the Closable try-resouce feature. *Note:* The Android SDK does not fully support Java 8 yet. We can use the JDK 8 or JDK 9 tools, but compile with Java 7 until Google has full support.

Comments

  1. Joshua Quick 2017-10-27

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9562
  2. Abir Mukherjee 2017-11-10

    Passed FR, and merged.
  3. Abir Mukherjee 2017-11-15

    this.javacSource = cli.tiapp.properties['android.javac.source'] && cli.tiapp.properties['android.javac.source'].value || config.get('android.javac.source',

JSON Source