Native Power, Zero Boilerplate

The ultimate automation bridge for C/C++ in Kotlin Multiplatform. Write your logic once, call it everywhere.

Engineered for Productivity

🚀

Automated JNI

Stop writing manual JNI headers and wrappers. Our plugin parses your C headers and generates the bridge automatically.

🛠

Unified Source

Maintain a single source of truth for your native logic. Changes in C implementations are reflected in Kotlin instantly.

📱

Full KMP Support

Designed for Android (JNI), iOS (CInterop), JVM, and Native targets. One tool for your entire multiplatform stack.

⚙️

Gradle Integrated

Seamlessly integrates into your Gradle build cycle. No extra build steps required for your developers.

How it Works

CBindingKMP acts as the intelligent glue between your C code and Kotlin libraries. It interprets your function signatures and generates high-performance wrappers tailored for each target platform.

  • 1 Write your C function in a standard header.
  • 2 Let the Gradle task generate JNI and Kotlin bindings.
  • 3 Call the function directly from your shared Kotlin code.
mylib.h
int add_numbers(int a, int b);
SharedLogic.kt
import com.generated.add_numbersJNI

fun add(a: Int, b: Int): Int {
    return add_numbersJNI(a, b)
}

Ready to Accelerate?

Join the future of high-performance Kotlin Multiplatform development.

./gradlew :shared:assemble Start Building Now