diff --git a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/KoinCodeGenerator.kt b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/KoinCodeGenerator.kt index c14cb4f..4b5dc15 100644 --- a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/KoinCodeGenerator.kt +++ b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/KoinCodeGenerator.kt @@ -57,7 +57,7 @@ class KoinCodeGenerator( if (defaultModule.alreadyGenerated == false && hasDefaultDefinitions){ defaultModule.setCurrentDefinitionsToExternals() - DefaultModuleWriter(codeGenerator, resolver, defaultModule, generateDefaultModule).writeModule() + DefaultModuleWriter(codeGenerator, resolver, defaultModule, generateDefaultModule).writeModule(isComposeViewModelActive) } } diff --git a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt index eee5c8a..d0af042 100644 --- a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt +++ b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt @@ -49,7 +49,7 @@ abstract class ModuleWriter( private val generatedField = "${module.packageName("_")}_${module.name}" //TODO Remove isComposeViewModelActive with Koin 4 - fun writeModule(isComposeViewModelActive: Boolean = false) { + fun writeModule(isComposeViewModelActive: Boolean) { fileStream = createFileStream() definitionFactory = DefinitionWriterFactory(resolver, fileStream!!)