App module
This commit is contained in:
@@ -10,6 +10,7 @@ import dagger.Provides
|
|||||||
import dagger.hilt.InstallIn
|
import dagger.hilt.InstallIn
|
||||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||||
import dagger.hilt.components.SingletonComponent
|
import dagger.hilt.components.SingletonComponent
|
||||||
|
import `in`.sminnovations.attendanceapp.screens.home.data.CheckInCheckOutDataStore
|
||||||
import `in`.sminnovations.attendanceapp.screens.login.data.LoginDataStore
|
import `in`.sminnovations.attendanceapp.screens.login.data.LoginDataStore
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
|
||||||
@@ -33,6 +34,11 @@ object AppModule {
|
|||||||
}
|
}
|
||||||
@Provides
|
@Provides
|
||||||
@Singleton
|
@Singleton
|
||||||
|
fun provideCheckInCheckOutDataStore(@ApplicationContext context: Context): CheckInCheckOutDataStore {
|
||||||
|
return CheckInCheckOutDataStore(context)
|
||||||
|
}
|
||||||
|
@Provides
|
||||||
|
@Singleton
|
||||||
fun provideFirebase(): FirebaseFirestore {
|
fun provideFirebase(): FirebaseFirestore {
|
||||||
return FirebaseFirestore.getInstance()
|
return FirebaseFirestore.getInstance()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user