abbic
02/18/2023, 2:24 PMimplementation(path: ':common')
ephemient
02/18/2023, 7:47 PMabbic
02/18/2023, 7:49 PMephemient
02/18/2023, 7:50 PMabbic
02/18/2023, 7:51 PMephemient
02/18/2023, 7:54 PM:lib
src/main
src/debug
src/release
:app
src/main
src/debug
src/release
:lib
produces two variants, debug
(which includes code from both src/main
and src/debug
) and release
(which includes code from both src/main
and src/release
).
in :app
, code in src/main
can use code in `:lib`'s src/main
, code in src/debug
can use code in `:lib`'s src/main
and src/debug
, and code in src/release
can use code in `:lib`'s src/main
and src/release
.
(there's some boundaries here that aren't as well enforced as KMP but that's basically the idea):lib
src/commonMain
src/jvmMain
:app
src/commonMain
src/jvmMain
with the jvm
platform containing code in both src/commonMain
and src/jvmMain
, and matching across module dependenciesabbic
02/18/2023, 8:02 PMroot-project
:lib
src/commonMain
src/jvmMain
:app
src/commonMain
src/jvmMain
this makes sense to me, but the default compose multiplatform project looks more like
:root-project
src/commonMain
src/jvmMain
:root-project
src/commonMain
src/jvmMain
:module
etc
ephemient
02/18/2023, 8:03 PMabbic
02/18/2023, 8:03 PMephemient
02/18/2023, 8:04 PMabbic
02/18/2023, 8:04 PMephemient
02/18/2023, 8:04 PM:
src/...
:lib
src/...
abbic
02/18/2023, 8:04 PM