darkmoon_uk
02/12/2022, 1:53 PMinline
:
I'm moving code out of my build.gradle.kts
into extension functions on Android's LibraryExtension
in buildSrc
, making the config nice and neat 👍
After moving the code, it doesn't work 😱, Gradle behaves as though the config hasn't applied, even though the calls are there and it compiles.
One of the things I tried out of desperation was to make the functions inline
, and suddenly it all works!!!
Never before have I come across a situation in Kotlin where inline
changes behaviour 🤷
Oh Gradle... the tool that's guaranteed to keep me humble as a developer. Whenever I think I've finally understood it; you can be guaranteed a heavy fall is just around the corner.Vampire
02/12/2022, 2:08 PM