Sign in

Developer Productivity Engineer | Android | Productivity tools & ideas for Android, Kotlin & Gradle developers on medium.dipien.com

Reduce your Gradle build times on android & non-android projects with these great ideas

1. Disable Gradle plugins


A 5 steps guide to reduce your Gradle build times by only applying the plugins you need for each environment


Reduce your Gradle build times on android & non-android projects with these great ideas

1. Use the latest dependencies versions


How to debug Gradle build scripts & Plugins using IntelliJ or Android Studio in 3 simple steps.

What do you can debug?

  • The buildSrc directory
  • Standalone Gradle plugins
  • Any build.gradle.kts file on your project (only if you use Kotlin DSL)

1. Configure IntelliJ / Android Studio


3 important lessons learned after using Firebase Remote Config on Android

Lesson #1: Define in-app default parameter values

Firebase.remoteConfig.apply {
setDefaultsAsync(mapOf(
"key" to "default_value"
))
}

Lesson #2: Retry the fetching with WorkManager

com.google.firebase.remoteconfig.FirebaseRemoteConfigClientException: The client had an error while calling the backend!


A simple guide to help you effectively manage the tech debt on your project.

  • new ways to do things, some of them can be official recommendations of the platforms you use
  • external libraries are deprecated or upgraded



Ideas to improve your Circle CI configuration on android projects

1. Define executors for each resource class

references:  android_config: &android_config
working_directory: "/path"
docker:
- image: circleci/android:api-30
executors: android_executor_small:
<<
: *android_config
resource_class: small
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx2g -XX:MaxPermSize=2g"
android_executor_medium:
<<
: *android_config
resource_class: medium
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4g -XX:MaxPermSize=4g"
android_executor_medium_plus:
<<
: *android_config
resource_class: medium+
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx6g -XX:MaxPermSize=6g"

2. Unify Gradle user home path between different docker images


6 steps to stop using Jetifier and reduce your build speed


Summary of official Google development resources

Documentation

Source Code

Issue Tracker

Twitter

Samples

Medium

Youtube

Codelabs

2020

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store