https://kotlinlang.org logo
#doodle
Title
# doodle
n

Nazar Pohonchuk

02/22/2023, 10:06 PM
Hi! Could anyone please explain why my simple project doesn't work? build.gradle.kts
Copy code
plugins {
    id ("org.jetbrains.kotlin.js") version "1.7.21"
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

kotlin {
    js().browser()

    val doodleVersion = "0.9.0" // <--- Latest Doodle version

    dependencies {
        implementation ("io.nacular.doodle:core:$doodleVersion"   )
        implementation ("io.nacular.doodle:browser:$doodleVersion")

        // Optional
        implementation ("io.nacular.doodle:controls:$doodleVersion" )
        implementation ("io.nacular.doodle:animation:$doodleVersion")
        implementation ("io.nacular.doodle:themes:$doodleVersion"   )
    }
}
Main.kt
Copy code
import io.nacular.doodle.application.Application
import io.nacular.doodle.application.application

fun main() {
    application {
        UsefulApp()
    }
}

class UsefulApp: Application {
    init {
        //println("Hi!")
    }

    override fun shutdown() {}
}
When I run gradle task 'browserRun', I get this
6 Views