Andrey Larionov
01/01/2024, 10:43 AM:composeApp and :shared
I want to structure my code following the Clean Architecture principles, which involves additional core, domain and data modules
Can you suggest the best way to implement this in a KMP project? Specifically, where and how should I define these modules?
Thank youPitam Poudel
01/01/2024, 10:46 AMAndrey Larionov
01/01/2024, 10:48 AMcore package knows about data and domain packagesPitam Poudel
01/01/2024, 10:51 AMAndrey Larionov
01/01/2024, 10:53 AMPitam Poudel
01/01/2024, 10:54 AMLaxystem
01/01/2024, 10:57 AM// shared/a/build.gradle.kts
dependencies {
runtimeOnly(":shared:b")
}Andrey Larionov
01/01/2024, 11:16 AMLaxystem
01/01/2024, 11:17 AMruntimeOnly (you're probably better off using implementation , actually). I don't have a sample project, actually.Andrey Larionov
01/01/2024, 11:31 AMyoussef
01/01/2024, 1:17 PMandylamax
01/01/2024, 3:20 PMYou are wrong. data, domain and presentation are not modules. They are just the packages
Sadly, you are wrong too 😔 , they can be structured into different packages yes, but also they can be structured into their own respective modules, and we are already doing this
Pamela Hill
01/02/2024, 5:58 AMBekzod
02/19/2024, 11:04 AM