Is there a way to use Gradle modules instead of ta...
# multiplatform
z
Is there a way to use Gradle modules instead of targets?
b
Yes, regular gradle modules
Just apply MPP plugin and declare same targets
Note that if module A targets only
JS
and module B targets
JS
&
JVM
, module B cannot depend on module A, but module A can depend on module B since it satisfies module A targets requirement.
z
So if common has
expect
things I can implement them in those gradle submodules?
b
Ah, no. all expect/actual interactions must happen in the same module. For inter-module implementations you should just use good old interfaces
Otherwise there would be no way to guarantee that all targets implement the expects
z
Hm... It sounds strange. We can copy the common target into each module at last.
j
what is your use case for doing that