vffuunnyy
vffuunnyy

Reputation: 1703

How can I use TornadoFx with Kotlin/Native

My build.gradle looks like this:

plugins {
    id 'org.jetbrains.kotlin.multiplatform' version '1.3.41'
}

kotlin {

    mingwX64("mingw") {
        binaries {
            executable {
               entryPoint = 'app.AppKt'
                runTask?.args('')
            }
        }
    }

    sourceSets {
        mingwMain {
            repositories {
                mavenCentral()
            }

            dependencies {
                implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0-M1'
                implementation "no.tornado:tornadofx:1.7.19"
            }
        }
        mingwTest {
        }
    }
}

And it doesn't work. Idea says unresolved reference.

I'm was search about it in web. Some people says that TornadoFx supports Kotlin/Native.

Upvotes: 3

Views: 1012

Answers (1)

Aleksandar Stefanović
Aleksandar Stefanović

Reputation: 1593

TornadoFX doesn't work with Kotlin/Native, because it depends upon JavaFX, which is made for JVM, so it only works in Kotlin/JVM.

Upvotes: 2

Related Questions