I was wondering if it possible to add modules in t...
# multiplatform
s
I was wondering if it possible to add modules in the shared module of KMM. I want to implement Clean, and I wanted to make modules for
data
and
domain
that are common. How do I do that? So that
data
implements
domain
and in the ui I can implement
domain
that way the view does know
data
exists.
k
I believe you can do this with modules in gradle but haven’t tested it myself. In your example you can import
data
, and have it refer to another module as an
implementation
rather than an
api
, and that way it would reference
domain
without it being exported to the applications. I believe that works but could be wrong.