Overview of performance improvements in Android Studio 3.2, as well as generate build performance tips and tricks both for small and large scale projects.
UTF-8 encoding • Annotations • You used timestamps • 3rd party library used timestamps • Variables in BuildConfig.java • Crashlytics’ unique ids I will write a blogposts on these, I promise!
unused code and modules (use Lint and Proguard reports) • Disable unnecessary modules in settings.gradle //settings.gradle //Include easter egg module only when building EE app. if (startParameter?.taskNames?.count {name -> name.contains('easterEgg')} > 0) { include ':easterEgg' }
should compile in parallel, not in sequence • Split modules into more submodules! • java lib compile faster than android lib • No Kotlin code in module? Don’t apply Kotlin plugin! • Build Scans and Build Cache FTW!