24 lines
750 B
Kotlin
24 lines
750 B
Kotlin
|
package code.name.monkey.retromusic
|
||
|
|
||
|
import code.name.monkey.retromusic.providers.RepositoryImpl
|
||
|
import code.name.monkey.retromusic.providers.interfaces.Repository
|
||
|
import code.name.monkey.retromusic.rest.KogouClient
|
||
|
import code.name.monkey.retromusic.rest.service.KuGouApiService
|
||
|
import code.name.monkey.retromusic.util.schedulers.BaseSchedulerProvider
|
||
|
import code.name.monkey.retromusic.util.schedulers.SchedulerProvider
|
||
|
|
||
|
object Injection {
|
||
|
|
||
|
fun provideRepository(): Repository {
|
||
|
return RepositoryImpl.getInstance()
|
||
|
}
|
||
|
|
||
|
fun provideSchedulerProvider(): BaseSchedulerProvider {
|
||
|
return SchedulerProvider.getInstance()
|
||
|
}
|
||
|
|
||
|
fun provideKuGouApiService(): KuGouApiService {
|
||
|
return KogouClient().apiService
|
||
|
}
|
||
|
}
|