
Enables seamless cross-platform communication via gRPC, offering an easy API for creating services and clients. Supports unary and server-side streaming RPCs, ensuring broad compatibility.
KTransport is a Kotlin Multiplatform library built on top of gRPC, that enables you to easily create cross-platform communication between your apps and services.
To use KTransport in your project, you need to add the following dependencies to
your build.gradle.kts file:
plugins {
//....
id("com.jamshedalamqaderi.ktransport.gradle-plugin") version < ktransport_version >
}
ktransport {
packageName = "com.jamshedalamqaderi.ktransport.example.ksp"
}
kotlin {
android()
jvm()
js(IR) {
browser()
binaries.executable()
}
wasm {
browser()
}
sourceSets {
val commonMain by getting {
dependencies {
// KTransport
implementation("com.jamshedalamqaderi.ktransport:ktransport:<ktransportVersion>")
// Other dependencies
}
}
val jsMain by getting {}
// JsMain could be used for wasm platform
val wasmMain by getting {
dependsOn(jsMain)
}
}
}please check out the example project in the repository. Just clone the repo and
run ExampleServer.kt then run ExampleClient.kt using intellij. Do the same as ExampleClient.kt
for JS platform
The example dir include all the necessary setup dependencies and code
KTransport was developed
by JamshedAlamQaderi
We welcome contributions to KTranport! If you have an idea for a new feature or bug fix, please open an issue or pull request.
If you found KTransport useful and would like to support its development, you can donate via Patreon by clicking on the button below:
KTransport is licensed under the Apache License 2.0.
Copyright 2023 Jamshed Alam Qaderi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
KTransport is a Kotlin Multiplatform library built on top of gRPC, that enables you to easily create cross-platform communication between your apps and services.
To use KTransport in your project, you need to add the following dependencies to
your build.gradle.kts file:
plugins {
//....
id("com.jamshedalamqaderi.ktransport.gradle-plugin") version < ktransport_version >
}
ktransport {
packageName = "com.jamshedalamqaderi.ktransport.example.ksp"
}
kotlin {
android()
jvm()
js(IR) {
browser()
binaries.executable()
}
wasm {
browser()
}
sourceSets {
val commonMain by getting {
dependencies {
// KTransport
implementation("com.jamshedalamqaderi.ktransport:ktransport:<ktransportVersion>")
// Other dependencies
}
}
val jsMain by getting {}
// JsMain could be used for wasm platform
val wasmMain by getting {
dependsOn(jsMain)
}
}
}please check out the example project in the repository. Just clone the repo and
run ExampleServer.kt then run ExampleClient.kt using intellij. Do the same as ExampleClient.kt
for JS platform
The example dir include all the necessary setup dependencies and code
KTransport was developed
by JamshedAlamQaderi
We welcome contributions to KTranport! If you have an idea for a new feature or bug fix, please open an issue or pull request.
If you found KTransport useful and would like to support its development, you can donate via Patreon by clicking on the button below:
KTransport is licensed under the Apache License 2.0.
Copyright 2023 Jamshed Alam Qaderi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.