Florina Muntenescu and Parag Kadam. I don’t know if the Architecture guides’ suggestion under Persist Data to use Dagger2 is the best strategy for an app built with Kotlin.

As @Ajay points out in his post Building database with Room Persistence Library a Singleton pattern can be used to create a Database which achieves the same result as Dagger2. I’ve heard Dagger2 has issues with Kotlin and might be more complicated to get up and running.

--

--

--

Open Sourcer

Love podcasts or audiobooks? Learn on the go with our new app.

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
Adam Hurwitz

Adam Hurwitz

Open Sourcer

More from Medium

Step Up To Meet The Times, For “They Are A-Changin’”

Calcium Score

Travelling