
Enhances SDK development with annotations for auto-generating code, supporting JSON conversion, and facilitating integration with React Native and Flutter through specific plugin interfaces.
A kotlin multiplatform (kmp) annotations to auto generate code to support and speed up building KMP SDKs,
The project also support a gradle plugin that has helpful tasks to can setup the integration faster
This is the same official annotation in kotlin However the gradle plugin io.telereso.kmp will add json conversion extension functions Example
@Serializable
data class Data(val a: Int, val b: String)After adding the plugin you will get fromJson, fromJsonArray , toJson , and to toPrettyJson functions
val data = Data.fromJson("{\"a\": 1,\"b\": \"test\"}")
val json = data.toJson() // minified json
val json = data.toPrettyJson() // human readable json
// Also support json array
val jsonArray = Data.fromJsonArray("[{\"a\":1,\"b\":\"test\"},{\"a\":1,\"b\":\"test\"}]")An "interop" from kotlin to react native plugins , basically it convert a kmp sdk manager class into a ReactNative plugin manger interface.
An "interop" from kotlin to flutter plugins , basically it convert a kmp sdk manager class into a Flutter plugin manger interface.
A kotlin multiplatform (kmp) annotations to auto generate code to support and speed up building KMP SDKs,
The project also support a gradle plugin that has helpful tasks to can setup the integration faster
This is the same official annotation in kotlin However the gradle plugin io.telereso.kmp will add json conversion extension functions Example
@Serializable
data class Data(val a: Int, val b: String)After adding the plugin you will get fromJson, fromJsonArray , toJson , and to toPrettyJson functions
val data = Data.fromJson("{\"a\": 1,\"b\": \"test\"}")
val json = data.toJson() // minified json
val json = data.toPrettyJson() // human readable json
// Also support json array
val jsonArray = Data.fromJsonArray("[{\"a\":1,\"b\":\"test\"},{\"a\":1,\"b\":\"test\"}]")An "interop" from kotlin to react native plugins , basically it convert a kmp sdk manager class into a ReactNative plugin manger interface.
An "interop" from kotlin to flutter plugins , basically it convert a kmp sdk manager class into a Flutter plugin manger interface.