uniffi-rs
uniffi-rs copied to clipboard
Gradle plugin for generating Kotlin bindings
UniFfi docs mention:
It is possible to generate Kotlin bindings at compile time for Kotlin Android projects. We'd like to make a gradle plugin for that...
Folks at Bitcoin Dev Kit (BDK) team (@thunderbiscuit) implemented a couple of plugin scripts for generating Kotlin JVM and Android bindings, and are open on turning it into a reusable plugin and potentially host it in this repository.
We are thinking of a nice Gradle DSL interface for generating bindings, perhaps:
// jvm or android module
plugins {
id("org.mozilla.uniffi")
}
uniffi {
udl = "path/math.udl"
outputDir = "src/main/kotlin/"
}
We are wondering:
- Is there any existing plan of you folks implementing a plugin of your own and open sourcing it?
- If not, would you be open to hosting a plugin based on BDK's implementation? What's the process for that?
┆Issue is synchronized with this Jira Task ┆friendlyId: UNIFFI-185