This repository is home to Koka packages related to FFI and native assets building and bundling.
Warning
This repository is a WIP, and the packages are currently basically not implemented. The plan is to reuse the generators from the Dart language, but generate Koka code. Eventually we might transition to a more optimized workflow for Koka, without all of the extras we don't need. Every once in a while we should sync from the upstream Dart project, the methodology for doing so is still being determined.
| Package | Description | Version |
|---|---|---|
| ffi | Utilities for working with Foreign Function Interface (FFI) code. | |
| ffigen | Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift files. | |
| objective_c | A library to access Objective C from Flutter that acts as a support library for package:ffigen. | |
| jni | A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen. |
|
| jnigen | A Dart bindings generator for Java and Kotlin that uses JNI under the hood to interop with Java virtual machine. | |
| native_assets_builder | This package is the backend that invokes build hooks. | |
| native_assets_cli | A library that contains the argument and file formats for implementing a native assets CLI. | |
| native_toolchain_c | A library to invoke the native C compiler installed on the host machine. |