File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
src/main/kotlin/com/adamratzman/spotify Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ repositories {
29
29
jcenter()
30
30
}
31
31
32
- compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.01 '
32
+ compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.02 '
33
33
```
34
34
35
35
To use the latest snapshot instead, you must add the Jitpack repository as well
@@ -51,7 +51,7 @@ dependencies {
51
51
<dependency>
52
52
<groupId>com.adamratzman</groupId>
53
53
<artifactId>spotify-api-kotlin</artifactId>
54
- <version>2.3.01 </version>
54
+ <version>2.3.02 </version>
55
55
</dependency>
56
56
57
57
<repository>
Original file line number Diff line number Diff line change @@ -22,12 +22,10 @@ apply plugin: 'kotlin'
22
22
apply plugin : ' org.jetbrains.dokka'
23
23
24
24
group ' com.adamratzman'
25
- version ' 2.3.01 '
25
+ version ' 2.3.02 '
26
26
27
27
archivesBaseName = ' spotify-api-kotlin'
28
28
29
- sourceCompatibility = 1.8
30
-
31
29
repositories {
32
30
jcenter()
33
31
}
Original file line number Diff line number Diff line change @@ -194,8 +194,7 @@ class SpotifyUserAuthorizationBuilder(
194
194
var tokenString : String? = null ,
195
195
var token : Token ? = null
196
196
) {
197
- fun build () = if (authorizationCode == null && tokenString == null && token == null ) throw IllegalArgumentException (" An authorization method must be supplied" )
198
- else SpotifyUserAuthorization (authorizationCode, tokenString, token)
197
+ fun build () = SpotifyUserAuthorization (authorizationCode, tokenString, token)
199
198
}
200
199
201
200
data class SpotifyUserAuthorization (
You can’t perform that action at this time.
0 commit comments