Skip to content

Commit e56dce8

Browse files
committed
use ktor-okhttp instead of ktor-apache
1 parent 810d758 commit e56dce8

File tree

4 files changed

+17458
-5
lines changed

4 files changed

+17458
-5
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ plugins {
1515
}
1616

1717
group = "com.adamratzman"
18-
version = "3.0.01"
18+
version = "3.0.02"
1919

2020
java {
2121
withSourcesJar()
@@ -70,7 +70,7 @@ kotlin {
7070
dependencies {
7171
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion")
7272
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializationVersion")
73-
implementation("io.ktor:ktor-client-apache:$ktorVersion")
73+
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
7474
implementation(kotlin("stdlib-jdk8"))
7575
}
7676
}

samples/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group 'com.adamratzman'
6-
version '3.0.0'
6+
version '3.0.1'
77

88
repositories {
99
jcenter()

src/commonTest/kotlin/com.adamratzman/spotify/public/PublicTracksAPITest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ class PublicTracksAPITest : Spek({
4343
assertFailsWith<SpotifyException.BadRequestException> { t.getAudioFeatures("bad track").complete() }
4444
}
4545
it("known track") {
46-
assertEquals("0.0589", t.getAudioFeatures("6AH3IbS61PiabZYKVBqKAk").complete().acousticness.toString())
46+
assertEquals("0.0592", t.getAudioFeatures("6AH3IbS61PiabZYKVBqKAk").complete().acousticness.toString())
4747
}
4848
it("multiple tracks (all known)") {
49-
assertEquals(listOf(null, "0.0589"), t.getAudioFeatures("hkiuhi", "6AH3IbS61PiabZYKVBqKAk").complete().map { it?.acousticness?.toString() })
49+
assertEquals(listOf(null, "0.0592"), t.getAudioFeatures("hkiuhi", "6AH3IbS61PiabZYKVBqKAk").complete().map { it?.acousticness?.toString() })
5050
}
5151
it("mix of known and unknown tracks") {
5252
assertTrue(t.getAudioFeatures("bad track", "0o4jSZBxOQUiDKzMJSqR4x").complete().let {

0 commit comments

Comments
 (0)