Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Effective Gradle Scripts for Android Projects

Effective Gradle Scripts for Android Projects

Writing better gradle scripts for large and complex android apps. Captured best practices applied in revamping gradle scripts for Dailyhunt app which has 35 modules, few custom tasks and lots of dependencies. Intention is to capture not just speed boosters, but solutions to keep scripts files simpler, smart and well maintained.

Arun Babu A S P

November 10, 2016
Tweet

More Decks by Arun Babu A S P

Other Decks in Programming

Transcript

  1. E F F E C T I V E GRADLE

    SCRIPTS FOR ANDROID PROJECTS
  2. + Compose multiple random builds + Will be useful for

    large projects - Only from Gradle version (3.x)
  3. + Compose multiple random builds + Will be useful for

    large projects - Only from Gradle version (3.x) - Not yet in Android Studio :(
  4. + Enable single place ver. update + Can use no-op

    lib for debugging - Lib updates will not show up auto
  5. + When new config needed (less) + Can inherit basic

    properties - Can increase build time
  6. E F F E C T I V E GRADLE

    SCRIPTS FOR ANDROID PROJECTS
  7. + Gradle plugin to gen. Buck rules + Buck wrapper

    based on Gradle + Many times faster than Gradle
  8. + Gradle plugin to gen. Buck rules + Buck wrapper

    based on Gradle + Many times faster than Gradle - Not supported by Google