Skip to content

Commit 052c50d

Browse files
committed
set up samples subproject
1 parent 5ddecd6 commit 052c50d

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

samples/build.gradle

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
plugins {
2+
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
3+
}
4+
5+
group 'com.adamratzman'
6+
version '3.0.0'
7+
8+
repositories {
9+
mavenLocal()
10+
mavenCentral()
11+
}
12+
13+
dependencies {
14+
implementation "com.adamratzman:spotify-api-kotlin:3.0.0"
15+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
16+
}
17+
18+
compileKotlin {
19+
kotlinOptions.jvmTarget = "1.8"
20+
}
21+
compileTestKotlin {
22+
kotlinOptions.jvmTarget = "1.8"
23+
}

samples/settings.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
enableFeaturePreview('GRADLE_METADATA')
2+
3+
rootProject.name = 'samples'
4+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package public
2+
3+
import com.adamratzman.spotify.spotifyAppApi
4+
5+
fun main() {
6+
val api = spotifyAppApi {
7+
credentials {
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)