You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i am creating Connectivity in tests, it fails to instantiate with this error
Caused by: org.koin.core.error.InstanceCreationException: Could not create instance for '[Singleton:'dev.jordond.connectivity.Connectivity']'
at app//org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:57)
at app//org.koin.core.instance.SingleInstanceFactory.create(SingleInstanceFactory.kt:46)
at app//org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:55)
at app//org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:53)
at app//org.koin.mp.KoinPlatformTools.synchronized(KoinPlatformTools.kt:36)
at app//org.koin.core.instance.SingleInstanceFactory.get(SingleInstanceFactory.kt:53)
at app//org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:109)
at app//org.koin.core.scope.Scope.resolveValue(Scope.kt:247)
at app//org.koin.core.scope.Scope.resolveInstance(Scope.kt:233)
at app//org.koin.core.scope.Scope.get(Scope.kt:212)
at app//com.medial.app.core.di.CoreModuleKt$_get_coreModule_$lambda$3$$inlined$singleOf$default$1.invoke(SingleOf.kt:227)
at app//com.medial.app.core.di.CoreModuleKt$_get_coreModule_$lambda$3$$inlined$singleOf$default$1.invoke(SingleOf.kt:52)
at app//org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:50)
... 161 more
Caused by: java.lang.IllegalStateException: ContextProvider has not been initialized
at dev.jordond.connectivity.tools.ContextProvider$Companion.getInstance(ContextProvider.kt:39)
at dev.jordond.connectivity.AndroidConnectivityKt.Connectivity(AndroidConnectivity.kt:21)
at dev.jordond.connectivity.AndroidConnectivityKt.AndroidConnectivity(AndroidConnectivity.kt:38)
at dev.jordond.connectivity.MobileConnectivity_androidKt.Connectivity(MobileConnectivity.android.kt:17)
at dev.jordond.connectivity.MobileConnectivity_androidKt.Connectivity$default(MobileConnectivity.android.kt:14)
at com.medial.app.core.di.CoreModuleKt._get_coreModule_$lambda$3$lambda$1(CoreModule.kt:23)
at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:50)
... 173 more
Please provide a test version of this, so I can use in unit tests
The text was updated successfully, but these errors were encountered:
If i am creating
Connectivity
in tests, it fails to instantiate with this errorPlease provide a test version of this, so I can use in unit tests
The text was updated successfully, but these errors were encountered: