Hi all π starting a new MPP project using Kotlin 1.4, lemme pick your brains a bit. In my app's
build.gradle.kts
file I can create ios/android targets by adding these linesπ it all compiles and runs fine.
plugins {
kotlin("multiplatform")
}
kotlin {
ios()
android()
}
but when i try to put this same logic in the
build.gradle.kts
of a new
:common
module it just won't work. First it gives me an error on the
android()
line. Second, i get around this by adding
jvm("android")
instead, but then my app crashes when running.
The point of doing this is so I can have all the multiplatform gradle code separate from the app gradle. Thoughts?