Skip to content

Commit 065f578

Browse files
authored
Merge pull request #112 from adamint/dev
Introduce a better way to create and read TuneableTrackAttributes
2 parents 0cb0f85 + d247a60 commit 065f578

File tree

183 files changed

+11641
-1633
lines changed

Some content is hidden

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

183 files changed

+11641
-1633
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repositories {
2828
jcenter()
2929
}
3030
31-
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.03'
31+
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.3.06'
3232
```
3333

3434
To use the latest snapshot instead, you must add the Jitpack repository as well
@@ -50,7 +50,7 @@ dependencies {
5050
<dependency>
5151
<groupId>com.adamratzman</groupId>
5252
<artifactId>spotify-api-kotlin</artifactId>
53-
<version>2.3.03</version>
53+
<version>2.3.06</version>
5454
</dependency>
5555
5656
<repository>

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
buildscript {
22
ext.kotlin_version = '1.3.41'
33
ext.dokka_version = '0.9.17'
4+
ext.junit_version = '5.5.1'
45

56
repositories { jcenter() }
67

@@ -10,9 +11,8 @@ buildscript {
1011
}
1112
}
1213

13-
1414
plugins {
15-
id "com.diffplug.gradle.spotless" version "3.23.1"
15+
id "com.diffplug.gradle.spotless" version "3.24.0"
1616
id "base"
1717
id "io.codearte.nexus-staging" version "0.21.0"
1818
id "com.bmuschko.nexus" version "2.3.1"
@@ -22,7 +22,7 @@ apply plugin: 'kotlin'
2222
apply plugin: 'org.jetbrains.dokka'
2323

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

2727
archivesBaseName = 'spotify-api-kotlin'
2828

@@ -37,7 +37,7 @@ dependencies {
3737
compile "com.squareup.moshi:moshi:1.8.0"
3838
compile "com.squareup.moshi:moshi-kotlin:1.8.0"
3939

40-
compile group: 'com.google.http-client', name: 'google-http-client', version: '1.30.2'
40+
compile "com.google.http-client:google-http-client:1.31.0"
4141

4242
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
4343
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -51,9 +51,9 @@ dependencies {
5151
exclude group: 'org.jetbrains.kotlin'
5252
}
5353

54-
testCompile('org.junit.jupiter:junit-jupiter-api:5.4.2')
55-
testCompile(group: 'org.json', name: 'json', version: '20180130')
56-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.2'
54+
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
55+
testCompile "org.json:json:20180130"
56+
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
5757
}
5858

5959
dokka {

docs/allclasses-frame.html

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_211) on Fri May 10 09:58:58 EDT 2019 -->
5+
<!-- Generated by javadoc (1.8.0_221) on Sun Aug 11 13:38:39 EDT 2019 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>All Classes</title>
8-
<meta name="date" content="2019-05-10">
8+
<meta name="date" content="2019-08-11">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<script type="text/javascript" src="script.js"></script>
1111
</head>
@@ -32,6 +32,7 @@ <h1 class="bar">All&nbsp;Classes</h1>
3232
<li><a href="com/adamratzman/spotify/models/BadRequestException.html" title="class in com.adamratzman.spotify.models" target="classFrame">BadRequestException</a></li>
3333
<li><a href="com/adamratzman/spotify/endpoints/public/BrowseAPI.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">BrowseAPI</a></li>
3434
<li><a href="com/adamratzman/spotify/BuilderKt.html" title="class in com.adamratzman.spotify" target="classFrame">BuilderKt</a></li>
35+
<li><a href="com/adamratzman/spotify/http/CacheState.html" title="class in com.adamratzman.spotify.http" target="classFrame">CacheState</a></li>
3536
<li><a href="com/adamratzman/spotify/endpoints/client/ClientFollowingAPI.html" title="class in com.adamratzman.spotify.endpoints.client" target="classFrame">ClientFollowingAPI</a></li>
3637
<li><a href="com/adamratzman/spotify/endpoints/client/ClientLibraryAPI.html" title="class in com.adamratzman.spotify.endpoints.client" target="classFrame">ClientLibraryAPI</a></li>
3738
<li><a href="com/adamratzman/spotify/endpoints/client/ClientPersonalizationAPI.html" title="class in com.adamratzman.spotify.endpoints.client" target="classFrame">ClientPersonalizationAPI</a></li>
@@ -60,12 +61,13 @@ <h1 class="bar">All&nbsp;Classes</h1>
6061
<li><a href="com/adamratzman/spotify/models/FeaturedPlaylists.html" title="class in com.adamratzman.spotify.models" target="classFrame">FeaturedPlaylists</a></li>
6162
<li><a href="com/adamratzman/spotify/models/Followers.html" title="class in com.adamratzman.spotify.models" target="classFrame">Followers</a></li>
6263
<li><a href="com/adamratzman/spotify/endpoints/public/FollowingAPI.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">FollowingAPI</a></li>
64+
<li><a href="com/adamratzman/spotify/http/HttpHeader.html" title="class in com.adamratzman.spotify.http" target="classFrame">HttpHeader</a></li>
65+
<li><a href="com/adamratzman/spotify/http/HttpRequestMethod.html" title="enum in com.adamratzman.spotify.http" target="classFrame">HttpRequestMethod</a></li>
6366
<li><a href="com/adamratzman/spotify/models/Identifiable.html" title="class in com.adamratzman.spotify.models" target="classFrame">Identifiable</a></li>
6467
<li><a href="com/adamratzman/spotify/models/IdentifiableNullable.html" title="class in com.adamratzman.spotify.models" target="classFrame">IdentifiableNullable</a></li>
6568
<li><a href="com/adamratzman/spotify/endpoints/client/LibraryType.html" title="enum in com.adamratzman.spotify.endpoints.client" target="classFrame">LibraryType</a></li>
6669
<li><a href="com/adamratzman/spotify/models/LinkedTrack.html" title="class in com.adamratzman.spotify.models" target="classFrame">LinkedTrack</a></li>
6770
<li><a href="com/adamratzman/spotify/models/LocalTrackURI.html" title="class in com.adamratzman.spotify.models" target="classFrame">LocalTrackURI</a></li>
68-
<li><a href="com/adamratzman/spotify/utils/MiscUtilsKt.html" title="class in com.adamratzman.spotify.utils" target="classFrame">MiscUtilsKt</a></li>
6971
<li><a href="com/adamratzman/spotify/models/NeedsApi.html" title="class in com.adamratzman.spotify.models" target="classFrame">NeedsApi</a></li>
7072
<li><a href="com/adamratzman/spotify/models/PagingObject.html" title="class in com.adamratzman.spotify.models" target="classFrame">PagingObject</a></li>
7173
<li><a href="com/adamratzman/spotify/models/PagingObjectsKt.html" title="class in com.adamratzman.spotify.models" target="classFrame">PagingObjectsKt</a></li>
@@ -99,6 +101,8 @@ <h1 class="bar">All&nbsp;Classes</h1>
99101
<li><a href="com/adamratzman/spotify/SpotifyApiBuilderDsl.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyApiBuilderDsl</a></li>
100102
<li><a href="com/adamratzman/spotify/SpotifyAPIKt.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyAPIKt</a></li>
101103
<li><a href="com/adamratzman/spotify/SpotifyAppAPI.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyAppAPI</a></li>
104+
<li><a href="com/adamratzman/spotify/models/SpotifyAuthenticationException.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyAuthenticationException</a></li>
105+
<li><a href="com/adamratzman/spotify/http/SpotifyCache.html" title="class in com.adamratzman.spotify.http" target="classFrame">SpotifyCache</a></li>
102106
<li><a href="com/adamratzman/spotify/models/SpotifyCategory.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyCategory</a></li>
103107
<li><a href="com/adamratzman/spotify/SpotifyClientAPI.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyClientAPI</a></li>
104108
<li><a href="com/adamratzman/spotify/models/SpotifyCopyright.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyCopyright</a></li>
@@ -109,22 +113,46 @@ <h1 class="bar">All&nbsp;Classes</h1>
109113
<li><a href="com/adamratzman/spotify/models/SpotifyImage.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyImage</a></li>
110114
<li><a href="com/adamratzman/spotify/SpotifyLogger.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyLogger</a></li>
111115
<li><a href="com/adamratzman/spotify/models/SpotifyPublicUser.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyPublicUser</a></li>
116+
<li><a href="com/adamratzman/spotify/models/SpotifyRatelimitedException.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyRatelimitedException</a></li>
117+
<li><a href="com/adamratzman/spotify/http/SpotifyRequest.html" title="class in com.adamratzman.spotify.http" target="classFrame">SpotifyRequest</a></li>
112118
<li><a href="com/adamratzman/spotify/SpotifyRestAction.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyRestAction</a></li>
113119
<li><a href="com/adamratzman/spotify/SpotifyRestActionPaging.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyRestActionPaging</a></li>
114120
<li><a href="com/adamratzman/spotify/SpotifyScope.html" title="enum in com.adamratzman.spotify" target="classFrame">SpotifyScope</a></li>
115121
<li><a href="com/adamratzman/spotify/endpoints/client/SpotifyTrackPositions.html" title="class in com.adamratzman.spotify.endpoints.client" target="classFrame">SpotifyTrackPositions</a></li>
116122
<li><a href="com/adamratzman/spotify/models/SpotifyUri.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyUri</a></li>
117123
<li><a href="com/adamratzman/spotify/models/SpotifyUriException.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyUriException</a></li>
118124
<li><a href="com/adamratzman/spotify/models/SpotifyUrisKt.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyUrisKt</a></li>
125+
<li><a href="com/adamratzman/spotify/SpotifyUserAuthorization.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyUserAuthorization</a></li>
119126
<li><a href="com/adamratzman/spotify/SpotifyUserAuthorizationBuilder.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyUserAuthorizationBuilder</a></li>
120127
<li><a href="com/adamratzman/spotify/models/SpotifyUserInformation.html" title="class in com.adamratzman.spotify.models" target="classFrame">SpotifyUserInformation</a></li>
128+
<li><a href="com/adamratzman/spotify/SpotifyUtilities.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyUtilities</a></li>
129+
<li><a href="com/adamratzman/spotify/SpotifyUtilitiesBuilder.html" title="class in com.adamratzman.spotify" target="classFrame">SpotifyUtilitiesBuilder</a></li>
121130
<li><a href="com/adamratzman/spotify/models/TimeInterval.html" title="class in com.adamratzman.spotify.models" target="classFrame">TimeInterval</a></li>
122131
<li><a href="com/adamratzman/spotify/models/Token.html" title="class in com.adamratzman.spotify.models" target="classFrame">Token</a></li>
132+
<li><a href="com/adamratzman/spotify/models/TokenValidityResponse.html" title="class in com.adamratzman.spotify.models" target="classFrame">TokenValidityResponse</a></li>
123133
<li><a href="com/adamratzman/spotify/models/Track.html" title="class in com.adamratzman.spotify.models" target="classFrame">Track</a></li>
124134
<li><a href="com/adamratzman/spotify/models/TrackAnalysis.html" title="class in com.adamratzman.spotify.models" target="classFrame">TrackAnalysis</a></li>
135+
<li><a href="com/adamratzman/spotify/endpoints/public/TrackAttribute.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TrackAttribute</a></li>
136+
<li><a href="com/adamratzman/spotify/endpoints/public/TrackAttribute.Companion.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TrackAttribute.Companion</a></li>
125137
<li><a href="com/adamratzman/spotify/endpoints/public/TracksAPI.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TracksAPI</a></li>
126138
<li><a href="com/adamratzman/spotify/models/TrackURI.html" title="class in com.adamratzman.spotify.models" target="classFrame">TrackURI</a></li>
127-
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.html" title="enum in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute</a></li>
139+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute</a></li>
140+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.ACOUSTICNESS.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.ACOUSTICNESS</a></li>
141+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.Companion.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.Companion</a></li>
142+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.DANCEABILITY.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.DANCEABILITY</a></li>
143+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.DURATION_IN_MILLISECONDS.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.DURATION_IN_MILLISECONDS</a></li>
144+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.ENERGY.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.ENERGY</a></li>
145+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.INSTRUMENTALNESS.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.INSTRUMENTALNESS</a></li>
146+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.KEY.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.KEY</a></li>
147+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.LIVENESS.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.LIVENESS</a></li>
148+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.LOUDNESS.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.LOUDNESS</a></li>
149+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.MODE.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.MODE</a></li>
150+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.POPULARITY.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.POPULARITY</a></li>
151+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.SPEECHINESS.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.SPEECHINESS</a></li>
152+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.TEMPO.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.TEMPO</a></li>
153+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.TIME_SIGNATURE.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.TIME_SIGNATURE</a></li>
154+
<li><a href="com/adamratzman/spotify/endpoints/public/TuneableTrackAttribute.VALENCE.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">TuneableTrackAttribute.VALENCE</a></li>
155+
<li><a href="com/adamratzman/spotify/models/UnNullableException.html" title="class in com.adamratzman.spotify.models" target="classFrame">UnNullableException</a></li>
128156
<li><a href="com/adamratzman/spotify/endpoints/public/UserAPI.html" title="class in com.adamratzman.spotify.endpoints.public" target="classFrame">UserAPI</a></li>
129157
<li><a href="com/adamratzman/spotify/models/UserURI.html" title="class in com.adamratzman.spotify.models" target="classFrame">UserURI</a></li>
130158
<li><a href="com/adamratzman/spotify/models/VideoThumbnail.html" title="class in com.adamratzman.spotify.models" target="classFrame">VideoThumbnail</a></li>

0 commit comments

Comments
 (0)