ckchen
11/20/2018, 5:56 AMSam
11/20/2018, 6:46 AMckchen
11/20/2018, 6:54 AMnapperley
11/20/2018, 7:00 AMckchen
11/20/2018, 7:03 AMorg.jetbrains.kotlin.platform.native
is used. But when I check it in https://plugins.gradle.org/, it says “The plugin is intended for native parts of multiplatform projects.“. Confused.ckchen
11/20/2018, 7:06 AMorg.jetbrains.kotlin.native
. Guess this is the one to use when multiplatform isn’t needed. Correct?msink
11/20/2018, 7:13 AMSam
11/20/2018, 3:35 PMcommon
but needed to have a darwin
sourceset that the iOS and macOS targets could depend on. The project would compile but IntelliJ complained about not being able to import Kotlin standard lib stuff and my c library on any source file in the Darwin folder. I gave up on the mpp plugin and just went with the newer native plugin. The syntax is similar and while it doesn’t work well in IntelliJ, it’s good enough to code with.ckchen
11/21/2018, 2:23 AM1.3.10
. But it only works with gradle 4.9
or below. Gradle 4.10.x
with konan 1.3.10
produces errors: Script compilation errors:
Line 09: interop("curl") {
^ Overload resolution ambiguity:
public final fun interop(name: String, configureAction: Action<KonanInteropLibrary>): Unit defined in org.jetbrains.kotlin.gradle.plugin.konan.KonanArtifactContainer
public final fun interop(name: String, configureAction: KonanInteropLibrary.() -> Unit): Unit defined in org.jetbrains.kotlin.gradle.plugin.konan.KonanArtifactContainer
Line 10: defFile("curl.def")
^ Unresolved reference: defFile
Line 13: interop("cjson") {
^ Overload resolution ambiguity:
public final fun interop(name: String, configureAction: Action<KonanInteropLibrary>): Unit defined in org.jetbrains.kotlin.gradle.plugin.konan.KonanArtifactContainer
public final fun interop(name: String, configureAction: KonanInteropLibrary.() -> Unit): Unit defined in org.jetbrains.kotlin.gradle.plugin.konan.KonanArtifactContainer
Line 14: defFile("cjson.def")
^ Unresolved reference: defFile
Line 17: program("weather") {
^ Overload resolution ambiguity:
public final fun program(name: String, configureAction: Action<KonanProgram>): Unit defined in org.jetbrains.kotlin.gradle.plugin.konan.KonanArtifactContainer
public final fun program(name: String, configureAction: KonanProgram.() -> Unit): Unit defined in org.jetbrains.kotlin.gradle.plugin.konan.KonanArtifactContainer
Line 18: entryPoint("org.example.weather_func.main")
^ Unresolved reference: entryPoint
Line 19: libraries {
^ Unresolved reference: libraries
Line 20: artifact("cjson")
^ Unresolved reference: artifact
Line 21: artifact("curl")
^ Unresolved reference: artifact
9 errors
msink
11/21/2018, 3:45 AMkonan
is deprecated.