|
1 | 1 | [](https://travis-ci.org/kaaes/spotify-web-api-android)
|
| 2 | +[](https://jitpack.io/#kaaes/spotify-web-api-android) |
2 | 3 |
|
3 | 4 | # Spotify Web API for Android
|
4 | 5 |
|
5 | 6 | This project is a wrapper for the [Spotify Web API](https://developer.spotify.com/web-api/).
|
6 | 7 | It uses [Retrofit](http://square.github.io/retrofit/) to create Java interfaces from API endpoints.
|
7 | 8 |
|
8 |
| -## <a name="building"></a>Building |
9 |
| -This project is built using [Gradle](https://gradle.org/): |
10 |
| - |
11 |
| -1. Clone the repository: `git clone https://github.com/kaaes/spotify-web-api-android.git` |
12 |
| -2. Build: `./gradlew assemble` |
13 |
| -3. Grab the `aar` that can be found in `spotify-api/build/outputs/aar/spotify-web-api-android-0.1.1.aar` and put it in the `libs` folder in your application |
14 |
| - |
15 |
| -## Integration into your project |
16 |
| - |
17 |
| -This project depends on `Retrofit 1.9.0` and `OkHttp 2.2.0`. When you [build it](#building), it creates an `aar` |
18 |
| -that doesn't contain Retrofit and OkHttp files. To make your app work you'll need to include these |
19 |
| -dependencies in your app's `build.gradle` file. |
| 9 | +## Integrating into your project |
20 | 10 |
|
21 |
| -Add following to the `build.gradle` file in your app: |
| 11 | +This library is available in [JitPack.io](https://jitpack.io/) repository. |
| 12 | +To use it make sure that repository's url is added to the `build.gradle` file in your app: |
22 | 13 |
|
23 | 14 | ```groovy
|
24 | 15 | repositories {
|
25 | 16 | mavenCentral()
|
26 |
| - flatDir { |
27 |
| - dirs 'libs' |
28 |
| - } |
| 17 | + maven { url "https://jitpack.io" } |
29 | 18 | }
|
30 | 19 |
|
31 | 20 | dependencies {
|
32 |
| - compile(name:'spotify-web-api-android-0.1.1', ext:'aar') |
33 |
| - compile 'com.squareup.retrofit:retrofit:1.9.0' |
34 |
| - compile 'com.squareup.okhttp:okhttp:2.2.0' |
| 21 | + compile 'com.github.kaaes:spotify-web-api-android:0.2' |
35 | 22 |
|
36 | 23 | // Other dependencies your app might use
|
37 | 24 | }
|
38 | 25 | ```
|
39 | 26 |
|
40 |
| -The `repositories` section tells your application to look for the `spotify-web-api-android-0.1.1.aar` |
41 |
| -in the local repository in the `libs` folder. |
| 27 | +## <a name="building"></a>Building |
| 28 | +This project is built using [Gradle](https://gradle.org/): |
| 29 | + |
| 30 | +1. Clone the repository: `git clone https://github.com/kaaes/spotify-web-api-android.git` |
| 31 | +2. Build: `./gradlew assemble` |
| 32 | +3. Grab the `aar` that can be found in `spotify-api/build/outputs/aar/spotify-web-api-android-0.2.0.aar` |
42 | 33 |
|
43 | 34 | ## Usage
|
44 | 35 |
|
|
0 commit comments