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

Android: Improve build time on incremental builds

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None

      Description

      While working on TIMOB-24829 i noticed a few more things in the android build that can be improved, resulting in a faster build time on incremental builds.

      Compared to the iOS build, which only takes ~5s for incremental builds, the Android build is much slower with ~30-40 sek. Most of the time is spend on recompiling and dexer operations, which are unnecessary if nothing related changed.

      The Android builder already contains a lot of comments about what can be skipped or cached, but contains no actual code that would do that. The actions in particular are:

      • Compile java classes (only needs to be done when files in build/android/src or build/android/gen change
      • Run Proguard (only needs to be done when any java classes changed)
      • Run dexer (only needs to be done if any libraries changed, any files in build/android/bin/classes have changed or debugging/profiling was toggled. This alone will cut down the android build time by approximately one third.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jvennemann Jan Vennemann
              • Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:

                  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