Not really. Usually that androidMain contains native code that is not availabe in your shared/common module.
For example to get context, you have to have an expect method in shared/common and have its actual overriden in androidMain.
From what you shared, data module depends on domain module, this is wrong and should be in reverse order
Hieu Vu
09/12/2025, 1:13 PM
So if you want to build separate data, domain module, they are all should be in common/shared module, assuming that all dependencies of these module support KMP or have native specific feature overriden in androidMain, iOSMain,..
👀 1
h
Hai Tran
09/17/2025, 7:19 AM
Then, how i can make specific sourceSet (not common) can access to common sourceSet of other module?