added the network check
This commit is contained in:
@@ -7,6 +7,7 @@ import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import `in`.sminnovations.attendanceapp.main.NetworkMonitor
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Module
|
||||
@@ -25,5 +26,9 @@ object AppModule {
|
||||
return FirebaseFirestore.getInstance()
|
||||
}
|
||||
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideNetworkMonitor(@ApplicationContext context: Context): NetworkMonitor {
|
||||
return NetworkMonitor(context)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user