ANDROID BUILD TIME

Move Glide from kapt to ksp on Android

Better build performance with glide ksp on Android

Gradle plugin

plugins {

// From
kotlin("kapt")

// To
id("com.google.devtools.ksp")
}

Gradle dependencies

dependencies {

// From
implementation("com.github.bumptech.glide:glide:4.14.2")
kapt("com.github.bumptech.glide:compiler:4.14.2")

// To
implementation("com.github.bumptech.glide:glide:4.14.2")
ksp("com.github.bumptech.glide:ksp:4.14.2")
}

Application source code

// From
GlideApp.with(context)
.load(url)
.into(imageView)

// To
Glide.with(context)
.load(url)
.into(imageView)

Sources

--

--

Android Lead at MWM. Android is my passion. More about me on mercandalli.com

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