Android Studio – How to inject LocationTracker using Koin DI framework
I'm migrating from Hilt to Koin. With Hilt I'm doing the following for injecting LocationTracker: @Module @InstallIn(SingletonComponent::class) object LocationModule { @Provides @Singleton fun providesFusedLocationProviderClient(application: Application): FusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(application) @Provides @Singleton fun providesLocationTracker( fusedLocationProviderClient: FusedLocationProviderClient, application: Application ): LocationTracker = LocationTracker(…