WPKotlin
WPKotlin is a Kotlin Multiplatform client library for the WordPress REST API.
Supported Platforms
- Android
- iOS
- macOS
- JVM
- JavaScript (Browser)
- WebAssembly
- Linux (x64)
- Windows (x64)
Installation
Kotlin
dependencies {
implementation("io.github.rocxteady:wpkotlin:0.0.1")
}
Android
dependencies {
implementation("io.github.rocxteady:wpkotlin-android:0.0.1")
}
Swift Package Manager
Add the following to your Package.swift file:
dependencies: [
.package(url: "https://github.com/rocxteady/WPKotlin.git", .upToNextMajor(from: "0.0.3"))
]
Features
- Built with Kotlin Multiplatform
- Powered by Ktor client
- Kotlinx Serialization for JSON parsing
- Coroutines support
- Cross-platform support
Requirements
- Kotlin 1.9+
- Android minSdk 24+
- Xcode 15+ (for iOS/macOS)
Dependencies
- kotlinx-coroutines
- kotlinx-serialization
- kotlinx-datetime
- ktor-client
License
WPKotlin is available under the Apache License, Version 2.0. See the LICENSE file for more info.
Author
Ulaş Sancak (@rocxteady)
Related Projects
- WPSwift - Swift client for WordPress REST API