adjpd
02/10/2022, 9:23 PMjava.util.Date
in the shared
module under commonMain
? (I'm guessing this because the import fails, although I have other strange import failures)adjpd
02/10/2022, 9:33 PMkotlinx
package yet I seem to be importing the dependencies:
My build.gradle
file is
plugins {
id 'java-library'
id "org.jetbrains.kotlin.multiplatform"
}
kotlin {
jvm()
iosX64()
iosArm32()
iosArm64()
}
sourceSets {
commonMain {
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0"
implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.3.2"
}
}
}
Matt Nelson
02/10/2022, 9:52 PM// build.gradle.kts
kotlin {
jvm()
iosX64()
// ... more targets
val commonMain by getting {
// ...
}
}
Regarding the date time stuff, checkout: https://github.com/Kotlin/kotlinx-datetime
Also another great resource for finding KMP libraries is: https://github.com/AAkira/Kotlin-Multiplatform-Librariesadjpd
02/10/2022, 10:04 PMadjpd
02/10/2022, 10:05 PMMatt Nelson
02/10/2022, 10:07 PMjava-library
pluginadjpd
02/10/2022, 10:11 PM