https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

Ricky

08/18/2020, 3:17 AM
Would it be possible to use KMP as multi-project style? like
Copy code
common/
- src/
- build.gradle.kts
jvm/
- src/
- build.gradle.kts
js/
- src/
- build.gradle.kts
vs
Copy code
src/
- commonMain
- jvmMain
- jsMain
build.gradle.kts
I need to use two plugins (that conflict with each other), if I have it as multi-project I can apply each plugin for the associated target
w

willyrs

08/18/2020, 6:33 AM
It’s not exactly a clean solution, but I’ve created a new project jvm-multi in the same folder and added the shared code project as a dependency. It’s the only way I found to use the code with both android and jvm application because you can’t have both plugins in the same gradle file
2 Views