diff options
author | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-05 14:47:54 -0600 |
---|---|---|
committer | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-05 14:48:48 -0600 |
commit | 51659d10e8ea5d35c1c951922bb6712ee970a9c1 (patch) | |
tree | 5afdac1a83daa31562f3b30438f2bbb85af2b667 /shared/build.gradle.kts | |
parent | 0161a7355c8a296880ce24db54bf0f78158b90e2 (diff) | |
download | etbsa-trackermap-mobile-51659d10e8ea5d35c1c951922bb6712ee970a9c1.tar.gz etbsa-trackermap-mobile-51659d10e8ea5d35c1c951922bb6712ee970a9c1.tar.bz2 etbsa-trackermap-mobile-51659d10e8ea5d35c1c951922bb6712ee970a9c1.zip |
Adds x-www-form-urlencoded support to http client
- Installs a serialization library
- Installs a ktor logging library
- Updates ApiClient to support x-www-form-urlencoded requests
- Serializes the User data model
Diffstat (limited to 'shared/build.gradle.kts')
-rw-r--r-- | shared/build.gradle.kts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 4a6cd59..4c6e870 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -1,9 +1,12 @@ plugins { kotlin("multiplatform") + id("kotlinx-serialization") id("com.android.library") } kotlin { + val ktor_version = "1.6.6" + android() listOf( @@ -19,9 +22,12 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - implementation("io.ktor:ktor-client-core:1.6.6") - implementation("io.ktor:ktor-client-cio:1.6.6") - implementation("io.ktor:ktor-client-serialization:1.6.6") + implementation("io.ktor:ktor-client-core:$ktor_version") + implementation("io.ktor:ktor-client-cio:$ktor_version") + implementation("io.ktor:ktor-client-logging:$ktor_version") + implementation("io.ktor:ktor-client-serialization:$ktor_version") + implementation("ch.qos.logback:logback-classic:1.2.6") + implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.1") } } |