mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-07 02:51:21 -04:00
chore: suppress DelicateCoroutinesApi warning
This commit is contained in:
1 parent
2a1f7a0bcd
commit
fec6700271
1 file changed
+3
-2
+3
-2
@@ -6,9 +6,11 @@ import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import javax.inject.Singleton
|
||||
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
object LocationRepositoryModule {
|
||||
@@ -17,6 +19,5 @@ object LocationRepositoryModule {
|
||||
@Singleton
|
||||
fun provideSharedLocationManager(
|
||||
@ApplicationContext context: Context
|
||||
): SharedLocationManager =
|
||||
SharedLocationManager(context, GlobalScope)
|
||||
): SharedLocationManager = SharedLocationManager(context, GlobalScope)
|
||||
}
|
||||
Reference in new issue
Block a user