Skip to content

Commit 7a5a793

Browse files
committed
add dokka to path & remove getFollowedUsers
Signed-off-by: Adam Ratzman <adam@adamratzman.com>
1 parent b6a6e29 commit 7a5a793

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

build.gradle

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
buildscript {
22
ext.kotlin_version = '1.3.11'
3+
ext.dokka_version = '0.9.17'
4+
35
repositories { jcenter() }
46

57
dependencies {
68
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
9+
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
710
}
811
}
912

@@ -16,6 +19,7 @@ plugins {
1619
}
1720

1821
apply plugin: 'kotlin'
22+
apply plugin: 'org.jeaddtbrains.dokka'
1923

2024
group 'com.adamratzman'
2125
version '2.1.0'
@@ -52,14 +56,28 @@ dependencies {
5256

5357
}
5458

59+
dokka {
60+
outputFormat = 'gfm'
61+
outputDirectory = 'docs/md'
62+
63+
jdkVersion = 8
64+
includeNonPublic = false
65+
impliedPlatforms = ["JVM"]
66+
67+
linkMapping {
68+
dir = "src/main/kotlin"
69+
url = "https://github.com/adamint/spotify-web-api-kotlin/tree/master/src/main/kotlin"
70+
suffix = "#L"
71+
}
72+
}
73+
5574
spotless {
5675
kotlin {
5776
ktlint()
5877
licenseHeader '/* Created by Adam Ratzman (2018) */' // License header
5978
}
6079
}
6180

62-
6381
test {
6482
systemProperties project.properties.subMap(
6583
["clientId", "clientSecret", "spotifyTokenString", "spotifyRedirectUri"]

src/main/kotlin/com/adamratzman/spotify/endpoints/client/ClientFollowingAPI.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import com.adamratzman.spotify.utils.ArtistURI
1111
import com.adamratzman.spotify.utils.CursorBasedPagingObject
1212
import com.adamratzman.spotify.utils.EndpointBuilder
1313
import com.adamratzman.spotify.utils.PlaylistURI
14-
import com.adamratzman.spotify.utils.SpotifyPublicUser
1514
import com.adamratzman.spotify.utils.UserURI
1615
import com.adamratzman.spotify.utils.encode
1716
import com.adamratzman.spotify.utils.toArray
@@ -120,9 +119,6 @@ class ClientFollowingAPI(api: SpotifyAPI) : FollowingAPI(api) {
120119
})
121120
}
122121

123-
fun getFollowedUsers(): SpotifyRestAction<List<SpotifyPublicUser>> =
124-
throw NotImplementedError("Though Spotify will implement this in the future, it is not currently supported.")
125-
126122
/**
127123
* Add the current user as a follower of another user
128124
*

0 commit comments

Comments
 (0)