Skip to content

Commit 60fbd7a

Browse files
committed
update serialization and multiplatform dependencies
1 parent 4d8bf86 commit 60fbd7a

File tree

12 files changed

+35
-25
lines changed

12 files changed

+35
-25
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ plugins {
77
signing
88
`java-library`
99
id("io.codearte.nexus-staging") version "0.21.2"
10-
kotlin("multiplatform") version "1.3.71"
11-
kotlin("plugin.serialization") version "1.3.71"
10+
kotlin("multiplatform") version "1.3.70"
11+
kotlin("plugin.serialization") version "1.3.70"
1212
id("com.diffplug.gradle.spotless") version "3.26.1"
1313
id("com.moowork.node") version "1.3.1"
1414
id("org.jetbrains.dokka") version "0.10.0"
@@ -41,7 +41,7 @@ kotlin {
4141
targets {
4242
sourceSets {
4343
val coroutineVersion = "1.3.3"
44-
val serializationVersion = "0.14.0"
44+
val serializationVersion = "0.20.0"
4545
val spekVersion = "2.0.9"
4646
val ktorVersion = "1.3.0-rc2"
4747
val kotlinVersion = "1.3.71"

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/client/ClientFollowingApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import com.adamratzman.spotify.models.PlaylistUri
1717
import com.adamratzman.spotify.models.UserUri
1818
import com.adamratzman.spotify.models.serialization.toCursorBasedPagingObject
1919
import com.adamratzman.spotify.models.serialization.toList
20-
import kotlinx.serialization.list
21-
import kotlinx.serialization.serializer
20+
import kotlinx.serialization.builtins.list
21+
import kotlinx.serialization.builtins.serializer
2222

2323
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("ClientFollowingApi"))
2424
typealias ClientFollowingAPI = ClientFollowingApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/client/ClientLibraryApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import com.adamratzman.spotify.models.TrackUri
1717
import com.adamratzman.spotify.models.serialization.toList
1818
import com.adamratzman.spotify.models.serialization.toPagingObject
1919
import com.adamratzman.spotify.utils.Market
20-
import kotlinx.serialization.list
21-
import kotlinx.serialization.serializer
20+
import kotlinx.serialization.builtins.list
21+
import kotlinx.serialization.builtins.serializer
2222

2323
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("ClientLibraryApi"))
2424
typealias ClientLibraryAPI = ClientLibraryApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/client/ClientPlayerApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import com.adamratzman.spotify.utils.jsonMap
2727
import kotlinx.serialization.json.JsonArray
2828
import kotlinx.serialization.json.JsonPrimitive
2929
import kotlinx.serialization.json.json
30-
import kotlinx.serialization.list
30+
import kotlinx.serialization.builtins.list
3131

3232
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("ClientPlayerApi"))
3333
typealias ClientPlayerAPI = ClientPlayerApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/public/ArtistApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import com.adamratzman.spotify.models.serialization.toObject
2020
import com.adamratzman.spotify.models.serialization.toPagingObject
2121
import com.adamratzman.spotify.utils.Market
2222
import com.adamratzman.spotify.utils.catch
23-
import kotlinx.serialization.list
23+
import kotlinx.serialization.builtins.list
2424

2525
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("ArtistApi"))
2626
typealias ArtistsAPI = ArtistApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/public/BrowseApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import com.adamratzman.spotify.utils.Locale
2626
import com.adamratzman.spotify.utils.Market
2727
import com.adamratzman.spotify.utils.formatDate
2828
import kotlin.reflect.KClass
29-
import kotlinx.serialization.list
30-
import kotlinx.serialization.serializer
29+
import kotlinx.serialization.builtins.list
30+
import kotlinx.serialization.builtins.serializer
3131

3232
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("BrowseApi"))
3333
typealias BrowseAPI = BrowseApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/public/FollowingApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import com.adamratzman.spotify.http.encodeUrl
1010
import com.adamratzman.spotify.models.PlaylistUri
1111
import com.adamratzman.spotify.models.UserUri
1212
import com.adamratzman.spotify.models.serialization.toList
13-
import kotlinx.serialization.list
14-
import kotlinx.serialization.serializer
13+
import kotlinx.serialization.builtins.list
14+
import kotlinx.serialization.builtins.serializer
1515

1616
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("FollowingApi"))
1717
typealias FollowingAPI = FollowingApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/public/PlaylistApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import com.adamratzman.spotify.models.serialization.toObject
2121
import com.adamratzman.spotify.models.serialization.toPagingObject
2222
import com.adamratzman.spotify.utils.Market
2323
import com.adamratzman.spotify.utils.catch
24-
import kotlinx.serialization.list
24+
import kotlinx.serialization.builtins.list
2525

2626
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("PlaylistApi"))
2727
typealias PlaylistAPI = PlaylistApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/public/SearchApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import com.adamratzman.spotify.models.serialization.createMapSerializer
2121
import com.adamratzman.spotify.models.serialization.toPagingObject
2222
import com.adamratzman.spotify.utils.Market
2323
import kotlinx.serialization.json.JsonObject
24-
import kotlinx.serialization.serializer
24+
import kotlinx.serialization.builtins.serializer
2525

2626
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("SearchApi"))
2727
typealias SearchAPI = SearchApi

src/commonMain/kotlin/com.adamratzman.spotify/models/SpotifyUris.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import kotlinx.serialization.Decoder
66
import kotlinx.serialization.Encoder
77
import kotlinx.serialization.KSerializer
88
import kotlinx.serialization.SerialDescriptor
9-
import kotlinx.serialization.Serializable
109
import kotlinx.serialization.Serializer
1110
import kotlinx.serialization.internal.StringDescriptor
11+
import kotlinx.serialization.Serializable
1212

1313
/**
1414
* Exception instantiating or deserializing a uri perceived as invalid

0 commit comments

Comments
 (0)