Add dev and prod flavors
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c0442243a8
commit
aa8058ef93
@ -0,0 +1,17 @@
|
||||
package fr.iut.alldev.allin.data.di
|
||||
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import fr.iut.alldev.allin.data.api.AllInApi
|
||||
import fr.iut.alldev.allin.data.api.MockAllInApi
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
internal object ApiModule {
|
||||
@Provides
|
||||
@Singleton
|
||||
internal fun provideAllInApi(): AllInApi = MockAllInApi()
|
||||
}
|
Loading…
Reference in new issue