I started adding the Koin dependency like below :
dependencies {
// KOIN
implementation "org.koin:koin-android:1.0.2"
}
That’s it. Pretty light compared to Dagger2. Because Koin doesn’t use the annotation processing, you don’t have to use the kapt compiler plugin and worry about it.
For the NoBullshit Android application, I only had a single & simple Dagger2 module providing Firestore datasource :
@Module
class DataModule {
@Provides
fun provideFirestore(): FirebaseFirestore = FirebaseFirestore.getInstance()
@Singleton
@Provides
fun provideJobDao(firestore: FirebaseFirestore): JobDao = JobDao(firestore)
}