Tag: kotlin
-
Gradle Version Catalogs
As many of you already might know, Gradle has introduced a new (yet unstable) way to centralize dependency declarations. In huge codebases and in multi-module projects, managing gradle dependencies has always been hard. Another problem that previous solutions had, was that no two projects were using gradle declaration or configurations the same. In Android, you…
-
Gradle Convention Plugin
As many of us already know, the Google Android team will soon start using a new way of applying plugins in Android/Kotlin modules. It’s more an improvement and a try to centralize the plugin usage, rather than just copying or having duplicate code all around the android/kotlin modules in your project. In case your plugin…
-
A comparison between Flutter’s Injectable and Dagger 2
I have been playing around with Flutter lately. More specifically I discovered Injectable; a dependency injection tool for Flutter, also built by google, but extremely similar to Dagger 2. Since I also feel very comfortable in Dagger 2, I would like to make some comparisons between them. Differences Generated code The biggest difference they have…
-
First look on Hilt
onCreate A new Dependency Injection library called Hilt was presented from the Google team. It was designed on top of Dagger library and provides a simpler, less boilerplate API to handle dependencies in an Android application. As first try, it was a real game changer. Therefore, we will make a short introduction to it, and…
-
Server side kotlin using Ktor. An authentication example.
Let’s be honest, I didn’t enjoy Ktor in the beginning. It seemed pretty confusing, different, immature, and difficult to start with. Watching it grow from away was a little simpler. However, I returned to Ktor since I was interested more in server-side Kotlin. Kotlin is doing great, by the way, lots of improvements and new…