JniBindingTarget
A single platform target of a JNI library binding.
Describes where the compiled native binary for this platform comes from (see fromProducer and fromPrebuiltBinding) and where it must be packaged (see copyToResources and copyToJniLibs).
Properties
Corresponding Kotlin/Native target, or null if this target has no direct Kotlin/Native counterpart.
The producer project this target takes its binding from, or unset when the binding is taken from prebuilt bindings.
Source of the native binary and JniActuals' info for this target.
Functions
Packages this target's binary into jniLibs/<abi> of the APK or AAR of the Android consumer compilation, so that System.loadLibrary("<library name>") finds it without extracting it by hand.
Packages this target's binary into the resources of the consumer compilation, so that the JVM code can load it from the classpath. On Android the binary goes into the assets of the variant instead.
Convenience overload of fromPrebuiltBinding accepting a File.
Convenience overload of fromPrebuiltBinding accepting a Directory.
Takes the binding from pre-built bindings in the given directory.
Takes the binding from a producer project resolved by its path.
Takes the binding from a producer project that applies io.github.mimimishkin.jni.binding.plugin.producer.JniLibProducerPlugin.