https://kotlinlang.org logo
#ktor
Title
# ktor
h

Hayden Meloche

04/25/2022, 12:24 AM
is there any documentation on how to build a Ktor plugin that supports multi-platform? right now my plugin relies on a few ktor
*-jvm
libraries and I believe I need to generate a file like this
👀 1
h

hfhbd

04/25/2022, 7:38 AM
The
.api
is generated by the https://github.com/Kotlin/binary-compatibility-validator and is just an internal file of your plugin to prevent binary incompatibles. For a multiplatform plugin you just need to use kotlin multiplatform plugin
You could look at https://github.com/hfhbd/RateLimit/pull/129, where I migrate from a jvm plugin to a multiplatform plugin
h

Hayden Meloche

05/31/2022, 6:29 PM
@hfhbd Little late, but thanks!