Skip to content

Commit 14c55e2

Browse files
authored
Merge pull request #176 from adamint/dev
bug fixes, avoid name shadowing, fix uri serialization
2 parents 94a7183 + 5e179ef commit 14c55e2

File tree

82 files changed

+559
-610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+559
-610
lines changed

build.gradle.kts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
21
import org.jetbrains.dokka.gradle.DokkaTask
32
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
43

54
plugins {
65
`maven-publish`
76
signing
87
`java-library`
9-
id("io.codearte.nexus-staging") version "0.21.1"
8+
id("io.codearte.nexus-staging") version "0.21.2"
109
kotlin("multiplatform") version "1.3.61"
1110
kotlin("plugin.serialization") version "1.3.61"
12-
id("com.diffplug.gradle.spotless") version "3.26.0"
11+
id("com.diffplug.gradle.spotless") version "3.26.1"
1312
id("com.moowork.node") version "1.3.1"
1413
id("org.jetbrains.dokka") version "0.10.0"
1514
}
1615

1716
group = "com.adamratzman"
18-
version = "3.0.0-rc.5"
17+
version = "3.0.0"
1918

2019
java {
2120
withSourcesJar()
@@ -34,10 +33,10 @@ kotlin {
3433

3534
targets {
3635
sourceSets {
37-
val coroutineVersion = "1.3.2"
36+
val coroutineVersion = "1.3.3"
3837
val serializationVersion = "0.14.0"
39-
val spekVersion = "2.0.8"
40-
val ktorVersion = "1.2.6"
38+
val spekVersion = "2.0.9"
39+
val ktorVersion = "1.3.0-rc2"
4140

4241
val commonMain by getting {
4342
dependencies {
@@ -62,7 +61,6 @@ kotlin {
6261
}
6362

6463
dependencies {
65-
implementation("com.neovisionaries:nv-i18n:1.26")
6664
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion")
6765
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializationVersion")
6866
implementation("io.ktor:ktor-client-apache:$ktorVersion")
@@ -74,7 +72,7 @@ kotlin {
7472
dependencies {
7573
implementation(kotlin("test"))
7674
implementation(kotlin("test-junit"))
77-
implementation("org.junit.jupiter:junit-jupiter:5.5.2")
75+
implementation("org.junit.jupiter:junit-jupiter:5.6.0-M1")
7876
implementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
7977
runtimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
8078
runtimeOnly(kotlin("reflect"))
@@ -83,7 +81,7 @@ kotlin {
8381

8482
val jsMain by getting {
8583
dependencies {
86-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:1.3.2")
84+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$coroutineVersion")
8785
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serializationVersion")
8886
implementation("io.ktor:ktor-client-js:$ktorVersion")
8987
compileOnly(kotlin("stdlib-js"))

docs/docs/spotify-web-api-kotlin/com.adamratzman.spotify.endpoints.client/-client-library-api/get-saved-albums.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<br/>
1010
<h1>getSavedAlbums</h1>
1111
<a name="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedAlbums(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)"></a>
12-
(common, js, jvm) <code><span class="keyword">fun </span><span class="identifier">getSavedAlbums</span><span class="symbol">(</span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedAlbums(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/limit">limit</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedAlbums(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/offset">offset</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedAlbums(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/market">market</span><span class="symbol">:</span>&nbsp;<a href="../../com.adamratzman.spotify.models/-country-code.html"><span class="identifier">CountryCode</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="../../com.adamratzman.spotify/-spotify-rest-action-paging/index.html"><span class="identifier">SpotifyRestActionPaging</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-album/index.html"><span class="identifier">SavedAlbum</span></a><span class="symbol">,</span>&nbsp;<a href="../../com.adamratzman.spotify.models/-paging-object/index.html"><span class="identifier">PagingObject</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-album/index.html"><span class="identifier">SavedAlbum</span></a><span class="symbol">&gt;</span><span class="symbol">&gt;</span></code>
12+
(common, js, jvm) <code><span class="keyword">fun </span><span class="identifier">getSavedAlbums</span><span class="symbol">(</span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedAlbums(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/limit">limit</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedAlbums(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/offset">offset</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedAlbums(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/market">market</span><span class="symbol">:</span>&nbsp;<a href="../../com.adamratzman.spotify.utils/-market/index.html"><span class="identifier">Market</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="../../com.adamratzman.spotify/-spotify-rest-action-paging/index.html"><span class="identifier">SpotifyRestActionPaging</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-album/index.html"><span class="identifier">SavedAlbum</span></a><span class="symbol">,</span>&nbsp;<a href="../../com.adamratzman.spotify.models/-paging-object/index.html"><span class="identifier">PagingObject</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-album/index.html"><span class="identifier">SavedAlbum</span></a><span class="symbol">&gt;</span><span class="symbol">&gt;</span></code>
1313
<p>Get a list of the albums saved in the current Spotify user’s ‘Your Music’ library.</p>
1414
<p><strong>Requires</strong> the <a href="../../com.adamratzman.spotify/-spotify-scope/-u-s-e-r_-l-i-b-r-a-r-y_-r-e-a-d.html#com.adamratzman.spotify.SpotifyScope.USER_LIBRARY_READ">SpotifyScope.USER_LIBRARY_READ</a> scope</p>
1515
<h3>Parameters</h3>

docs/docs/spotify-web-api-kotlin/com.adamratzman.spotify.endpoints.client/-client-library-api/get-saved-tracks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<br/>
1010
<h1>getSavedTracks</h1>
1111
<a name="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedTracks(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)"></a>
12-
(common, js, jvm) <code><span class="keyword">fun </span><span class="identifier">getSavedTracks</span><span class="symbol">(</span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedTracks(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/limit">limit</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedTracks(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/offset">offset</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedTracks(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/market">market</span><span class="symbol">:</span>&nbsp;<a href="../../com.adamratzman.spotify.models/-country-code.html"><span class="identifier">CountryCode</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="../../com.adamratzman.spotify/-spotify-rest-action-paging/index.html"><span class="identifier">SpotifyRestActionPaging</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-track/index.html"><span class="identifier">SavedTrack</span></a><span class="symbol">,</span>&nbsp;<a href="../../com.adamratzman.spotify.models/-paging-object/index.html"><span class="identifier">PagingObject</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-track/index.html"><span class="identifier">SavedTrack</span></a><span class="symbol">&gt;</span><span class="symbol">&gt;</span></code>
12+
(common, js, jvm) <code><span class="keyword">fun </span><span class="identifier">getSavedTracks</span><span class="symbol">(</span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedTracks(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/limit">limit</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedTracks(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/offset">offset</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientLibraryApi$getSavedTracks(kotlin.Int, kotlin.Int, com.adamratzman.spotify.utils.Market)/market">market</span><span class="symbol">:</span>&nbsp;<a href="../../com.adamratzman.spotify.utils/-market/index.html"><span class="identifier">Market</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="../../com.adamratzman.spotify/-spotify-rest-action-paging/index.html"><span class="identifier">SpotifyRestActionPaging</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-track/index.html"><span class="identifier">SavedTrack</span></a><span class="symbol">,</span>&nbsp;<a href="../../com.adamratzman.spotify.models/-paging-object/index.html"><span class="identifier">PagingObject</span></a><span class="symbol">&lt;</span><a href="../../com.adamratzman.spotify.models/-saved-track/index.html"><span class="identifier">SavedTrack</span></a><span class="symbol">&gt;</span><span class="symbol">&gt;</span></code>
1313
<p>Get a list of the songs saved in the current Spotify user’s ‘Your Music’ library.</p>
1414
<p><strong>Requires</strong> the <a href="../../com.adamratzman.spotify/-spotify-scope/-u-s-e-r_-l-i-b-r-a-r-y_-r-e-a-d.html#com.adamratzman.spotify.SpotifyScope.USER_LIBRARY_READ">SpotifyScope.USER_LIBRARY_READ</a> scope</p>
1515
<h3>Parameters</h3>

0 commit comments

Comments
 (0)