A sample project showing how to use a Ktor client in a multiplatform application.
An application works on the following platforms: Android
, iOS
, JavaScript
, and macosX64
. To run the application, open it in IntelliJ IDEA and do one of the following:
-
To run the Android application, use the
client-mpp.androidApp
run configuration created by IntelliJ IDEA automatically. -
To run the iOS application, open the iosApp directory in Xcode and run it.
-
To run the JavaScript application, execute the following command in a project's root directory:
./gradlew :jsApp:run
-
To run
macosX64
, execute the following command in a project's root directory:./gradlew :macApp:runDebugExecutableNative