A Dependency Injection Showdown

A Dependency Injection Showdown

Choosing a dependency framework for your Android app is a big decision, it’s not something that you can easily replace later on. Dependency injection spans all layers of your app so it’s important that the DI framework that you choose meets all your requirements and that includes testing.

No alt text provided for this image

I am going to compare 4 popular frameworks: Dagger, Koin, Kodein, and Toothpick. It’s interesting that many of these frameworks also run on the JVM and 2 of the frameworks also integrate with the popular Ktor framework. I am going to demonstrate how to integrate these DI frameworks into a simple application. Although the application will run on Android many of these concepts can be easily applied to non-Android projects.

You can read more here.

要查看或添加评论,请登录

Mark Ng的更多文章

  • Auspost delivers on Jetpack Compose

    Auspost delivers on Jetpack Compose

    With Jetpack Compose’s first birthday just passing, many Android developer are probably thinking not if but when and…

    1 条评论
  • Kotlin Serialization — on the backend

    Kotlin Serialization — on the backend

    Continuing on our journey from the article “The first steps on your Kotlin Multiplatform journey — changing your…

  • Avoid CI/CD Lock-in — Make Your Builds More Portable

    Avoid CI/CD Lock-in — Make Your Builds More Portable

    We recently migrated our Android CI/CD pipelines from Bitbucket/Bamboo to Gitlabs. If you follow my blog, this is…

    1 条评论
  • Our Engineering Roadmap

    Our Engineering Roadmap

    We just completed our engineering road map for our Android apps at Australia Post. Each year we get together and try to…

  • Kotlin - The next enterprise language

    Kotlin - The next enterprise language

    The enterprise is dominated by 2 key programming languages Java and #C with many companies either choosing 1 or the…

  • Scaling an app for unexpected peaks

    Scaling an app for unexpected peaks

    It’s been an extraordinarily difficult time for many people and companies as we live through the Covid19 pandemic…

  • The first step on your Kotlin Multiplatform journey — changing your microservices.

    The first step on your Kotlin Multiplatform journey — changing your microservices.

    The mobile apps that we use today wouldn’t be very useful without APIs and the same can be said about APIs — without…

  • How fit is your Android team in 2020?

    How fit is your Android team in 2020?

    A happy lunar year or happy new year if you follow the Gregorian calendar. It's a new year and that usually means new…

  • How fast are your Android CI builds? And why it matters.

    How fast are your Android CI builds? And why it matters.

    Over time our Android CI builds gradually got slower and slower and before we knew it our CI build times were taking 47…

    1 条评论
  • Kotlin Coroutines — Are we there yet?

    Kotlin Coroutines — Are we there yet?

    I got my first glimpse of coroutines at Chris Bane’s talk “Android Suspenders” at the 2018 GDG Melbourne Devfest. I…

社区洞察

其他会员也浏览了