tirbofish/dropbear · diff
wip: added JNI "*Native" java files and matched the jvmMain stuff.
todo: implement the rust side, and get `cbindgen` working.
Signature present but could not be verified.
Unverified
@@ -2,7 +2,7 @@ plugins { alias(libs.plugins.kotlinMultiplatform) alias(libs.plugins.kotlinxSerialization) `maven-publish` - id("org.jetbrains.dokka") version "2.0.0" + id("org.jetbrains.dokka") version "2.1.0" } group = "com.dropbear" @@ -36,9 +36,7 @@ val libPathProvider = provider { } kotlin { - jvm { - - } + jvm { } val nativeTarget = when { isMacOs && isArm64 -> macosArm64("nativeLib") @@ -100,7 +98,7 @@ kotlin { sourceSets { commonMain { dependencies { - api("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0") + api("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1") } } nativeMain { @@ -129,7 +127,7 @@ kotlin { } } -val extractJavaSources by tasks.registering(Copy::class) { +val extractJavaSources by tasks.registering(Sync::class) { group = "jni" description = "Copies .java files from jvmMain/kotlin to a temp directory for header generation" @@ -156,12 +154,19 @@ val generateJniHeaders by tasks.registering(JavaCompile::class) { val headerOutputDir = layout.buildDirectory.dir("generated/jni-headers") options.headerOutputDirectory.set(headerOutputDir) + doFirst { + val outDir = headerOutputDir.get().asFile + if (outDir.exists()) { + outDir.deleteRecursively()
Large diffs are not rendered by default. Showing the first 50 of 5512 lines. Show full diff