arnaud.giuliani
10/07/2025, 1:23 PMIrsath Kareem
10/10/2025, 3:04 AMIrsath Kareem
10/10/2025, 4:39 AMsingleOf(::DatabaseFactory)bartek.t
10/10/2025, 1:00 PMHoratio Thomas
10/12/2025, 5:00 AMFarhazul Mullick
10/15/2025, 9:56 AMMark
10/15/2025, 1:04 PMMainActivity which I currently access using:
inline fun <reified T : ViewModel> koinActivityViewModel(
qualifier: Qualifier? = null,
key: String? = null,
scope: Scope = currentKoinScope(),
noinline parameters: ParametersDefinition? = null,
): T = koinViewModel<T>(
qualifier = qualifier,
viewModelStoreOwner = LocalActivity.current as ComponentActivity,
key = key,
scope = scope,
parameters = parameters,
)
Claude is recommending I just use single { } for such a view model. Thoughts?Shahid Iqbal4213
10/18/2025, 5:31 PMinternal val authApiModule = module {
single<Retrofit>(named(AUTH_RETROFIT_QUALIFIER)) {
Retrofit.Builder()
.baseUrl("<https://api.example.com/>") // Base URL must be set here
.addConverterFactory(GsonConverterFactory.create())
.client(get<OkHttpClient>(qualifier = named(OKHTTP_CLIENT_QUALIFIER)))
.build()
}
factory<AuthApi> {
provideApi(
get<Retrofit>(qualifier = named(AUTH_RETROFIT_QUALIFIER)),
AuthApi::class.java
)
}
}
and AuthApi module is added to main module
val authFeatureModule = module {
includes(authNavModule, authApiModule, authMainModule)
}Irsath Kareem
10/19/2025, 8:20 AM@KoinApplication is available in :app module, (it looks for @Configuration in its direct child modules)
Let's assume, I want to write @Configuration("test") in :feature:data module. (which needs to load only in tests.)
This configuration is automatically loaded by :app module's @KoinApplication(config... = ["test"]) ?????
I think, Currently, It is not.
Can you help me?, Or any other workaround???Otávio Gabriel (Tavieto)
10/20/2025, 7:08 PMcheckModules to the new verify?
Because I'm seeing some scenarios where verify should fail, but it's not failing.
Maybe I'm getting something wrong. If not, I would like to contribute to the project.arnaud.giuliani
10/22/2025, 7:28 AMOtávio Gabriel (Tavieto)
10/22/2025, 11:34 PMFlowFan
10/23/2025, 4:01 AM@Composable
@Preview
fun App(
modifier: Modifier = Modifier,
darkTheme: Boolean = isSystemInDarkTheme(),
navController: NavHostController = rememberNavController()
) {
KoinApplication(
application = {
modules(AppModule.module)
defaultModule()
}
) {
MainScreen(navController = navController)
}
}Chirag Redij
10/25/2025, 12:50 PMPackage 'core.data' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
Here are my Kotlin versions
kotlin = "2.2.20"
ksp = "2.2.20-2.0.4"
Koin versions
koin-core = "4.1.1"
koin-annotation = "2.3.0"Denys
10/27/2025, 2:32 PMarnaud.giuliani
11/05/2025, 4:46 PMarnaud.giuliani
11/05/2025, 4:47 PMBart
11/05/2025, 7:51 PM@KoinApplication in other source set than commonMain (e.g. commonTest or custom)?
I have custom source set for instrumented tests (it includes commonMain like commonTest does), and @KoinApplication when used in this source set not generated the code properly, needed to put it in commonMain. Would be useful/cleaner is such test koin application could be created in test source set.Anuta Vlad Sv
11/06/2025, 9:59 AMMichal Klimczak
11/06/2025, 10:24 AMPedro Francisco de Sousa Neto
11/06/2025, 12:17 PM// build.gradle.kts
implementation(libs.koin.core)
implementation(libs.koin.core.coroutines)
implementation(libs.koin.compose)
implementation(libs.koin.compose.viewmodel)
implementation(libs.koin.compose.viewmodel.navigation)
implementation(libs.koin.compose.navigation)
// libs.versions.toml
koin = "4.2.0-alpha1"
koin-compose = { module = "io.insert-koin:koin-compose", version.ref = "koin" }
koin-compose-viewmodel = { module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin" }
koin-compose-viewmodel-navigation = { module = "io.insert-koin:koin-compose-viewmodel-navigation", version.ref = "koin" }
koin-compose-navigation = { module = "io.insert-koin:koin-compose-navigation3", version.ref = "koin" }
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
koin-core-coroutines = { module = "io.insert-koin:koin-core-coroutines", version.ref = "koin" }
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
I couldn´t find the import for NavigationHost in a @Composable function.
What am I missing?Albertas
11/10/2025, 4:08 PM4.2.0-alpha1 and it seems to always throw an exception when being initialized with KoinMultiplatformApplication:
java.lang.IllegalStateException: should not be used in favor of LocalKoinScopeContext
at org.koin.compose.KoinApplicationKt.<clinit>(KoinApplication.kt:48)
...shouldn't the error be within compositionLocalOf?Laurent Thiebaud
11/12/2025, 9:43 AMby inject() or annotations?Jason Toms
11/13/2025, 12:15 PMJason Toms
11/14/2025, 11:44 AM@Configuration to work in an Android project, or will I need to manually add every module? I can't find a way to combine using @KoinApplication and also providing android context and work managerSoumen pal
11/17/2025, 12:09 PMarnaud.giuliani
11/17/2025, 4:52 PMJoost Klitsie
11/19/2025, 1:39 PMAlexis
11/19/2025, 4:11 PMCan't show file for stack frame : <DBGLLDBStackFrame: 0x9e7761cc0> - stackNumber:1 - name:kfun:org.koin.core.context.MutableGlobalContext#<init>(){} [inlined]. The file path does not exist on the file system: /Users/runner/work/koin/koin/projects/core/koin-core/src/nativeMain/kotlin/org/koin/core/context/GlobalContext.ktMessage from debugger: killed
when initializing Koin.
Kotlin side:
class DependencyProvider {
fun initKoin() {
RendrLog.logInfo(this::class.simpleName, "Initializing Koin...")
val instance = startKoin {
modules(Modules.features)
}
koin = instance.koin
}
companion object {
lateinit var koin: Koin
}
}
XCode side:
public struct DIHelper {
public static func initKoint() {
let koinDependencyHelper = DependencyProvider()
koinDependencyHelper.doInitKoin()
}
}
Everything was working previously when importing my shared kotlin code my Scheme > Build > Pre-action > script running "embedAndSignAppleFrameworkForXcode"
I could't find any link about this error, so I wanted to know if anyone already encountered this error, or if you have an idea? 🙂
Have a nice dayJason Toms
11/21/2025, 11:17 AMnavigation definition seems to abstract away the entry, where animations are defined.