kotlin-sqlite-bindings
kotlin-sqlite-bindings copied to clipboard
sqlite support via both kotlin native & jvm
agp 7 beta4 replaced inline classes with value classes
we are probably leaking memory right now and it is quite possible to create more of those. figure out some strategy to test for it
https://github.com/yigit/kotlin-sqlite-bindings/runs/721237795?check_suite_focus=true `:sqlitebindings:cinteropJniLinuxX64` ##[error]Exception in thread "main" java.lang.Error: C:\hostedtoolcache\windows\jdk\11.0.7\x64\include\win32\jni_md.h:35:9: error: unknown type name '__int64' at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152) at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:1003) at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:992) at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:91) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:230) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:46) at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:44) at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:19) at...
https://github.com/JetBrains/kotlin-native/blob/master/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt#L52 maybe this can replace the jni generator.
seems like JNI might fail in java8. https://github.com/yigit/kotlin-sqlite-bindings/actions/runs/115146189 Couldn't reproduce locally but happens on the Actions. Moving to 11 fixed the issue https://github.com/yigit/kotlin-sqlite-bindings/pull/9/commits/c254e46a321c82a8089b6c7b1477646bc1d5066e