Peter Farlow
04/28/2021, 11:22 PMListenableWorker
requires both a WorkerParameters
and Context
parameter, but the KoinWorkerFactory doesn't provide the context https://github.com/InsertKoinIO/koin/blob/master/android/koin-androidx-workmanager/src/main/java/org/koin/androidx/workmanager/factory/KoinWorkerFactory.ktMartin Feldsztejn
05/01/2021, 2:34 PMMark
05/02/2021, 2:05 AMChristopher Elías
05/03/2021, 1:27 PMeurycea
05/03/2021, 9:05 PMrsetkus
05/04/2021, 11:02 AM3.0.1
on Kotlin Multiplatform project and started getting error:
java.lang.IllegalStateException: e: Failed to resolve Kotlin library: /Users/.../build/kotlinSourceSetMetadata/commonMain/io.insert-koin-koin-core/io.insert-koin-koin-core-commonMain.klib
Building successfully for Android platform but getting error for iOS. Anybody else experienced anything similar?nikolaymetchev
05/06/2021, 10:12 AM3.0.1
what happened to the environmentProperties()
method ? Does koin automatically do that now? Or is this feature gone? Is there a migration guide from 2 to 3?Helio
05/10/2021, 7:11 AMorg.koin.core.error.NoBeanDefFoundException: No definition found for class:'com.atlassian.buildeng.pipeline.compliant.checker.service.BuildInfoService'. Check your definitions!
The class that it is complaining about, it is actually an interface
interface BuildInfoService<T : HttpRequestParamsModel, out P> {
suspend fun getBuildInfo(httpRequestParamsModel: T): P
}
I’m currently trying to configure my Koin test module with classes that implement that interface. In my definition, I’m adding qualifier to everything. Example:
val testModule = module {
...
single<BuildInfoService<ModelA, TypeA>>(named("BuildInfoService_A")) { MyClassA(get(named("ServiceA"))) }
single<BuildInfoService<ModelB, TypeB>>(named("BuildInfoService_B")) { MyClassB(get(named("ServiceB")), get(named("ServiceA"))) }
...
}
Just to complement a bit further, the project is running Koin = 2.2.2
and Ktor=1.5.1
.
Any help would be greatly appreciated.Yahor
05/15/2021, 5:38 PMclass PostCreatorFragment : ScopeFragment(R.layout.fragment_post_creator) {
init {
loadKoinModules(postModule)
}
override fun onDestroy() {
super.onDestroy()
unloadKoinModules(postModule)
}
}
Now I receive following error:
org.koin.core.error.NoScopeDefFoundException: No Scope Definition found for qualifer 'com.egoriku.ladyhappy.postcreator.presentation.PostCreatorFragment'
at org.koin.core.registry.ScopeRegistry.createScope(ScopeRegistry.kt:126)
at org.koin.core.Koin.createScope(Koin.kt:208)
at org.koin.core.Koin.createScope$default(Koin.kt:204)
at org.koin.androidx.scope.FragmentExtKt$fragmentScope$1.invoke(FragmentExt.kt:29)
at org.koin.androidx.scope.FragmentExtKt$fragmentScope$1.invoke(Unknown Source:2)
at org.koin.androidx.scope.LifecycleScopeDelegate.<init>(LifecycleScopeDelegate.kt:30)
at org.koin.androidx.scope.LifecycleScopeDelegate.<init>(LifecycleScopeDelegate.kt:19)
at org.koin.androidx.scope.FragmentExtKt.fragmentScope(FragmentExt.kt:28)
at org.koin.androidx.scope.ScopeFragment.<init>(ScopeFragment.kt:38)
at org.koin.androidx.scope.ScopeFragment.<init>(ScopeFragment.kt:35)
Looks like _scopeDefinitions
don’t contain my scope from dynamic feature
Source code: https://github.com/egorikftp/Lady-happy-Android/blob/e2fbec6c4f581b84e390caa4958e7[…]oriku/ladyhappy/postcreator/presentation/PostCreatorFragment.kt
@arnaud.giuliani Could you please assist or its better to create issue on github?Sergio Crespo Toubes
05/18/2021, 11:40 AMMutableLiveData
change and load another fragment with navigation component. Any idea? THANKS.arnaud.giuliani
05/20/2021, 8:30 AMMark
05/20/2021, 9:18 AMvar foo = 0u
) suddenly give the error Type of the constant expression cannot be resolved. Please make sure you have the required dependencies for unsigned types in the classpath
. Any ideas?eurycea
05/20/2021, 3:12 PMArtem
05/21/2021, 1:35 PMNacho Ruiz Martin
05/22/2021, 4:03 PMSlackbot
05/28/2021, 6:03 AMarnaud.giuliani
05/29/2021, 8:36 AMLena Stepanova
06/01/2021, 12:27 PMAlexa_Gal
06/03/2021, 9:03 AMJames Black
06/07/2021, 5:52 AMval passwordHelperViewModel = getViewModel<ViewModel>()
I get this error java.lang.NoSuchMethodError: No interface method startReplaceableGroup(ILjava/lang/String;)V in class Landroidx/compose/runtime/Composer
Is there a version of koin that is coming out that will allow this to work, as I would hate to change everything back to kotlin 1.4.32.xxfast
06/08/2021, 3:41 AMEvan
06/09/2021, 8:09 PMget
from the KampKit project, but for some objects I get a EXC_BAD_ACCESS
crash. Can anyone point me to what I’m doing wrong? Snippets in comments.ushort
06/09/2021, 10:00 PMclass A {
val b by inject<B>() // How I expected it to be done (based off codes samples I've seen)
val b by inject<B>(B::class.java) // Requiring me to do it this way
}
xxfast
06/11/2021, 7:15 AMTypeError: elements.iterator_62 is not a function
while trying to consume koin from a typescript client. More code in the threadMarek Hlava
06/11/2021, 9:47 AMaipok
06/11/2021, 10:02 AMparameters.get()
intent to be used?Paul Davies
06/11/2021, 10:18 AM3.1.0
(thanks!)
Am getting the following error. Is there a release of `io.insert-koin:koin-androidx-compose`as well (latest i'm seeing is 3.0.1
), or am I just missing an API change?
@Composable
fun EntryDetailScreen(id: EntryId) {
val viewModel = getViewModel<EntryDetailViewModel> { parametersOf(id) }
}
Type mismatch: inferred type is ParametersHolder but DefinitionParameters was expected
Mini
06/12/2021, 1:20 PMval vm : MyVm = getStateViewModel(state = { bundleOf(Pair("key", value)) })
russhwolf
06/12/2021, 3:38 PMcheckModules()
in 3.1.0. Nothing in the changelog about it. What’s the story there? I’m having trouble understanding how to migrate my tests from the lambda-based setup I had before.Marcin Wisniowski
06/12/2021, 5:00 PMio.insert-koin
, however in the Android docs it still has imports with org.koin
. So which am I supposed to use? Android docs tell me to use org.koin
imports, but the main setup docs tell me to not do that.Marcin Wisniowski
06/12/2021, 5:00 PMio.insert-koin
, however in the Android docs it still has imports with org.koin
. So which am I supposed to use? Android docs tell me to use org.koin
imports, but the main setup docs tell me to not do that.russhwolf
06/12/2021, 5:34 PMMarcin Wisniowski
06/12/2021, 11:34 PMorg.koin
, but https://insert-koin.io/docs/setup/v3 has different ones, and it isn't clear which page supersedes which.russhwolf
06/12/2021, 11:40 PMarnaud.giuliani
06/14/2021, 8:07 AM