Skip to content

Commit 5dcb937

Browse files
authored
Merge pull request #205 from adamint/dev
remove birthdate reference + scope
2 parents bdb36e9 + c0f78cb commit 5dcb937

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ plugins {
99
id("io.codearte.nexus-staging") version "0.21.2"
1010
kotlin("multiplatform") version "1.3.72"
1111
kotlin("plugin.serialization") version "1.3.72"
12-
id("com.diffplug.gradle.spotless") version "3.28.1"
12+
id("com.diffplug.gradle.spotless") version "4.4.0"
1313
id("com.moowork.node") version "1.3.1"
1414
id("org.jetbrains.dokka") version "0.10.1"
1515
}
1616

1717
group = "com.adamratzman"
18-
version = "3.1.01"
18+
version = "3.1.02"
1919

2020
java {
2121
withSourcesJar()
@@ -56,9 +56,9 @@ kotlin {
5656

5757
targets {
5858
sourceSets {
59-
val coroutineVersion = "1.3.5"
59+
val coroutineVersion = "1.3.7"
6060
val serializationVersion = "0.20.0"
61-
val spekVersion = "2.0.10"
61+
val spekVersion = "2.0.11"
6262
val ktorVersion = "1.3.2"
6363

6464
val commonMain by getting {

src/commonMain/kotlin/com.adamratzman.spotify/SpotifyScope.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ enum class SpotifyScope(val uri: String) {
102102
*/
103103
USER_READ_PRIVATE("user-read-private"),
104104

105-
/**
106-
* Read access to the user's birthdate.
107-
*
108-
* **Visible to users**: Receive your birthdate.
109-
*/
110-
USER_READ_BIRTHDATE("user-read-birthdate"),
111-
112105
/**
113106
* Read access to user’s email address.
114107
*

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import kotlinx.serialization.Serializable
88
/**
99
* Private information about a Spotify user. Each field may require a specific scope.
1010
*
11-
* @property birthdate The user’s date-of-birth. This field is only available when the current user
12-
* has granted access to the [SpotifyScope.USER_READ_BIRTHDATE] scope.
1311
* @property country The country of the user, as set in the user’s account profile. An ISO 3166-1 alpha-2
1412
* country code. This field is only available when the current user has granted access to the [SpotifyScope.USER_READ_PRIVATE] scope.
1513
* @property displayName The name displayed on the user’s profile. null if not available.
@@ -32,7 +30,6 @@ data class SpotifyUserInformation(
3230
override val id: String,
3331
override val uri: UserUri,
3432

35-
val birthdate: String? = null,
3633
val country: String? = null,
3734
@SerialName("display_name") val displayName: String? = null,
3835
val email: String? = null,

src/commonTest/kotlin/com.adamratzman/spotify/priv/ClientUserApiTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ClientUserApiTest : Spek({
1010
describe("Client profile test") {
1111
val cp = (api as? SpotifyClientApi)?.users
1212
it("valid user") {
13-
cp?.getClientProfile()?.complete()?.birthdate
13+
cp?.getClientProfile()?.complete()?.displayName
1414
}
1515
}
1616
})

0 commit comments

Comments
 (0)