ursus
02/19/2023, 3:56 PMval commonMain by getting {
dependencies {
api(project(":some-pure-kotlin-stuff"))
}
}
gives me odd errors at sync time
:shared:iosArm64Main: Could not resolve project :some-pure-kotlin-stuff
Required by:
project :shared
Possible solution:
- Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
Is this not supported?
Can KMP modules only depend on KMP modules?Matt Nelson
02/19/2023, 4:02 PMiosArm64
target and cannot provide the .klib
for it.ursus
02/19/2023, 4:03 PMplugins {
id "kotlin"
}
and nothing extra. Should that not just work?Matt Nelson
02/19/2023, 4:04 PMkotlin("multiplatform")
ursus
02/19/2023, 4:04 PMMatt Nelson
02/19/2023, 4:06 PMrusshwolf
02/19/2023, 4:11 PMid "kotlin"
isn't pure Kotlin, it's actually JVM. You need to use the multiplatform gradle plugin for multiplatform.ursus
02/19/2023, 4:15 PMid "kotlin"
is essentially equivalent to
plugins {
id "org.jetbrains.kotlin.multiplatform"
}
kotlin {
jvm()
}
?jw
02/19/2023, 4:15 PMorg.jetbrains.kotlin.jvm
ursus
02/19/2023, 4:18 PMjw
02/19/2023, 4:19 PMursus
02/19/2023, 4:21 PMjw
02/19/2023, 4:22 PMursus
02/19/2023, 4:23 PMrusshwolf
02/19/2023, 4:23 PMursus
02/19/2023, 4:23 PMplugins {
id "org.jetbrains.kotlin.multiplatform"
}
kotlin {
jvm()
ios()
}
is the minimum config needed to get android and ios apps going?jw
02/19/2023, 4:24 PMios()
does not include the arm simulator, but otherwise yes. also you may want android()
and not jvm()
depending on whether you use Android APIs or not.ursus
02/19/2023, 4:28 PMjw
02/19/2023, 4:28 PMursus
02/19/2023, 4:29 PM/commonMain
russhwolf
02/19/2023, 4:30 PMursus
02/19/2023, 4:32 PMrusshwolf
02/19/2023, 4:32 PMursus
02/19/2023, 4:34 PMplugins {
id "org.jetbrains.kotlin.multiplatform"
}
kotlin {
jvm()
ios()
}
everywhere, I will double my assemble
time, right?