Simon Schubert
06/03/2020, 10:12 PMplugins {
id 'org.jetbrains.kotlin.multiplatform'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.squareup.sqldelight'
kotlin {
android("android")
jvm("jvm")
sourceSets {
androidMain {
dependencies {
implementation kotlin('stdlib')
implementation "com.squareup.sqldelight:android-driver:1.3.0"
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib')
implementation "com.squareup.sqldelight:sqlite-driver:1.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.1"
}
}
}
}
louiscad
06/04/2020, 3:20 PMMichal Harakal
06/04/2020, 3:24 PMapplication
plugin and you have to define main class there as mainClassName = "main.kotlin.EntryPointKt"
but I didn’t managed to get this working in the same gradle module with android plugin. Maybe there is some trick with writing manifest file via task etc. I am also interessted in solution …russhwolf
06/04/2020, 3:29 PMjvm { withJava() }
and that doesn't work if you also apply the android plugin. You can work around that by doing your app-level configuration in a separate gradle module which consumes the shared code as a librarySimon Schubert
06/04/2020, 3:31 PM