uniffi-rs icon indicating copy to clipboard operation
uniffi-rs copied to clipboard

Gradle plugin for generating Kotlin bindings

Open kirillzh opened this issue 3 years ago • 0 comments

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:

  1. Is there any existing plan of you folks implementing a plugin of your own and open sourcing it?
  2. 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

kirillzh avatar Jul 29 '22 19:07 kirillzh