https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Kruger Brent

06/14/2019, 3:21 PM
Does a C-library compiled with cinterop tool support Android app as well or is it just for the iOS app? If so, how would a build.gradle file look like that has a cinterop tag to build a klib file for both the platforms. I am unable to make this klib work for android right now. Any ideas?
l

louiscad

06/14/2019, 3:41 PM
It'd work with the native Android targets that run off ART and off the java and Kotlin/JVM APIs. You can communicate with that world through JNI (way less nice, yes, but possible, and Google put samples for JNI)
👍 2
s

svyatoslav.scherbina

06/17/2019, 6:52 AM
2 Views