Join Slack
Powered by
I know I should have JNI glue code for when target...
# multiplatform
a
aj
02/10/2024, 8:16 PM
I know I should have JNI glue code for when targeting Android, and KN/interop (which literally could't find any complete non-cryptic sample or prototype to inspire from)
j
Jan Holešovský
02/15/2024, 5:27 PM
I have an example of both JNI and cinterop binding in the Kotlin-Native-BigDecimal. It is used to embed BoringSSL (which is an OpenSSL fork). See
https://github.com/kendy/Kotlin-Native-BigDecimal/tree/master/bignum
; it has some README too. The 'jni' subdir is for JNI, 'ios' subdir for cinterop. You also want to read the general README of the project and the build.gradle.kts for the cinterop bits here:
https://github.com/kendy/Kotlin-Native-BigDecimal/blob/master/build.gradle.kts#L25
3
Views
Open in Slack
Previous
Next