This library is a Matrix client library that supports Kotlin Multiplatform. It depends on khttpclient and internally uses Ktor Client. Therefore, this library is available on Kotlin Multiplatform and platforms supported by Ktor Client. The behavior on each platform depends on khttpclient.
Below is how to use it in Kotlin with Gradle on supported platforms.
repositories {
mavenCentral()
+ maven { url = uri("https://repo.repsy.io/mvn/uakihir0/public") }
}
dependencies {
+ implementation("work.socialhub.kmatrix:core:0.0.1-SNAPSHOT")
+ implementation("work.socialhub.kmatrix:stream:0.0.1-SNAPSHOT")
}val matrix = MatrixFactory.instance(
{{HOST}}, {{ACCESS_TOKEN}}
)
val response = matrix.rooms().getJoinedRooms()
println(response.data.joinedRooms)MIT License