This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Module(includes = [SecondModule::class]) | |
| @ComponentScan("com.firstModule") | |
| class FirstModule | |
| @Module | |
| @ComponentScan("com.secondModule") | |
| class SecondModule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Module | |
| @ComponentScan("com.cprt.advancedauction.common") | |
| class CommonModule { | |
| @Single | |
| fun json() = Json { | |
| ignoreUnknownKeys = true | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal val commonModule = module { | |
| factory<ScreenProvider> { AppScreenProvider() } | |
| single { | |
| Json { | |
| ignoreUnknownKeys = true | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sourceSets { | |
| val commonMain by getting { | |
| kotlin.srcDir("build/generated/ksp/desktop/desktopMain/kotlin") | |
| dependencies { | |
| implementation(libs.koin.core) | |
| implementation(libs.koin.ksp.annotations) | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //From | |
| sealed interface A { | |
| interface B : A | |
| } | |
| class C : A.B | |
| //To | |
| sealed interface A | |
| interface B : A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package extension | |
| import org.gradle.api.Project | |
| fun Project.ksp(dependencyNotation: Any) { | |
| project.dependencies.add("ksp", dependencyNotation) | |
| } |