Ivann Ruiz
08/26/2020, 7:46 PMbuild.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?kpgalligan
08/26/2020, 7:47 PMkpgalligan
08/26/2020, 7:47 PMIvann Ruiz
08/26/2020, 7:48 PMIvann Ruiz
08/26/2020, 7:56 PMkpgalligan
08/26/2020, 7:56 PMKurt Renzo Acosta
08/27/2020, 12:09 PMcom.android.library
pluginIvann Ruiz
08/27/2020, 7:12 PM