Hello! I found a breaking change on `koin-annotati...
# koin
m
Hello! I found a breaking change on
koin-annotations
1.3.1 that is making my compilation fail 🧵 ->
We’ve recently migrated from 1.3.0 to 1.3.1
I’ve defined a module in this way
Copy code
@Module
@ComponentScan("com.xxxx.yyyy.zzz")
internal class DynamicModule
and added to the other modules of this feature like this
Copy code
val featureAModules = listOf(moduleA, ModuleB, DynamicModule().module)
When KSP runs, there are some differences between the two versions: Code generated by 1.3.1
Copy code
public fun KoinApplication.defaultModule(): KoinApplication = modules(defaultModule)
public val defaultModule : Module = module {
	viewModel() { .... } 
	viewModel() { .... } 
	viewModel() { .... } 
}
Code generated by 1.3.0
Copy code
internal val com_xxx_yyyy_zzz_DynamicModule : Module = module {
	viewModel() { .... } 
	viewModel() { .... } 
	viewModel() { .... } 
internal val com.xxx.yyyy.zzz.DynamicModule.module : org.koin.core.module.Module get() = com_xxx_yyyy_zzz_DynamicModule
update: If I disable the default module, it works well:
Copy code
ksp {
    arg("KOIN_DEFAULT_MODULE","false")
}
a
do this difference is in code generated only?
m
AFAIK yes, is only there, but if I don’t disable the default module, it impacts the ability to compile the app without errors
a
in 1.3.0 your code was around
com_xxx_yyyy_zzz_DynamicModule
and now it's generated in
defaultModule
right?
m
exactly
as long as I don’t disable the default module, that’s the result
a
could you isolate a project sample? would save me time to reproduce it 🙏