Skip to content

Commit ef65731

Browse files
committed
add attribute bounds
1 parent ba69343 commit ef65731

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repositories {
2929
jcenter()
3030
}
3131
32-
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.05'
32+
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.06'
3333
```
3434

3535
To use the latest snapshot instead, you must add the Jitpack repository as well
@@ -51,7 +51,7 @@ dependencies {
5151
<dependency>
5252
<groupId>com.adamratzman</groupId>
5353
<artifactId>spotify-api-kotlin</artifactId>
54-
<version>2.3.05</version>
54+
<version>2.3.06</version>
5555
</dependency>
5656
5757
<repository>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ apply plugin: 'kotlin'
2222
apply plugin: 'org.jetbrains.dokka'
2323

2424
group 'com.adamratzman'
25-
version '2.3.05'
25+
version '2.3.06'
2626

2727
archivesBaseName = 'spotify-api-kotlin'
2828

src/main/kotlin/com/adamratzman/spotify/Builder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ class SpotifyApiBuilderDsl {
447447
clientSecret,
448448
response.body.toObject(null),
449449
utilities.automaticRefresh,
450-
redirectUri ?: throw IllegalArgumentException("No redirect uri provided"),
450+
redirectUri,
451451
utilities.useCache,
452452
utilities.cacheLimit,
453453
utilities.retryWhenRateLimited,

src/main/kotlin/com/adamratzman/spotify/endpoints/public/BrowseAPI.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ sealed class TuneableTrackAttribute<T : Number>(val attribute: String, val integ
354354
* The key the track is in. Integers map to pitches using standard Pitch Class notation.
355355
* E.g. 0 = C, 1 = C♯/D♭, 2 = D, and so on.
356356
*/
357-
object KEY : TuneableTrackAttribute<Int>("key", true, 0, null)
357+
object KEY : TuneableTrackAttribute<Int>("key", true, 0, 11)
358358

359359
/**
360360
* Detects the presence of an audience in the recording. Higher liveness values represent an increased
@@ -405,8 +405,10 @@ sealed class TuneableTrackAttribute<T : Number>(val attribute: String, val integ
405405
/**
406406
* An estimated overall time signature of a track. The time signature (meter)
407407
* is a notational convention to specify how many beats are in each bar (or measure).
408+
* The time signature ranges from 3 to 7 indicating time signatures of 3/4, to 7/4.
409+
* A value of -1 may indicate no time signature, while a value of 1 indicates a rather complex or changing time signature.
408410
*/
409-
object TIME_SIGNATURE : TuneableTrackAttribute<Int>("time_signature", true, null, null)
411+
object TIME_SIGNATURE : TuneableTrackAttribute<Int>("time_signature", true, -1, 7)
410412

411413
/**
412414
* A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high

0 commit comments

Comments
 (0)