Skip to content

Commit 1428be2

Browse files
committed
Update README with maven repo info
1 parent 8e7838c commit 1428be2

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

README.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,35 @@
11
[![Build Status](https://travis-ci.org/kaaes/spotify-web-api-android.svg?branch=master)](https://travis-ci.org/kaaes/spotify-web-api-android)
2+
[![Release](https://img.shields.io/github/release/kaaes/spotify-web-api-android.svg?label=maven)](https://jitpack.io/#kaaes/spotify-web-api-android)
23

34
# Spotify Web API for Android
45

56
This project is a wrapper for the [Spotify Web API](https://developer.spotify.com/web-api/).
67
It uses [Retrofit](http://square.github.io/retrofit/) to create Java interfaces from API endpoints.
78

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
2010

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:
2213

2314
```groovy
2415
repositories {
2516
mavenCentral()
26-
flatDir {
27-
dirs 'libs'
28-
}
17+
maven { url "https://jitpack.io" }
2918
}
3019
3120
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'
3522
3623
// Other dependencies your app might use
3724
}
3825
```
3926

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`
4233

4334
## Usage
4435

0 commit comments

Comments
 (0)