Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25448

Android: Update module build tools to compile with Java 7

    Details

    • Story Points:
      3

      Description

      Summary:
      Currently, the "appc" command line tool builds Titanium Android modules with Java 6 which is obsolete and generates compiler warnings.

      We should switch to compiling modules with Java 7 which is 100% supported by the Android SDK and is what Google currently recommends. Plus, module developers 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.

      How to test:

      1. Unzip the attached java7module.zip file.
      2. Open the Mac terminal (or Windows command prompt).
      3. In the terminal, "cd" (change directory) to the "./java7Module/android" directory.
      4. In the terminal, enter: appc ti sdk select
      5. You will be prompted to select an SDK version. Enter the newest Titanium version.
      6. In the terminal, enter: appc run -p "android" --build-only
      7. Verify that the build was successful. (Note that compiler errors will occur if compiling with Java 6.)

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
              Tester:
              Abir Mukherjee
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code