Skip to content

Commit 28d2a6b

Browse files
committed
Added Maven dependency instructions.
1 parent 45b7a26 commit 28d2a6b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,24 @@ Setup
2525

2626
The library was built for and tested on Android version 2.3.3(SDK 10) and above. It could be modified to support older versions if required.
2727

28-
To setup import the `/library` project into your Android Studio project and add it as a dependency in your `build.gradle`.
28+
The simplest way to use AndroidStaggeredGrid is to add the library as a gradle aar dependency to your build. See the [CHANGELOG.md](https://github.com/etsy/AndroidStaggeredGrid/blob/master/CHANGELOG.md) for the latest version number.
29+
30+
```
31+
dependencies {
32+
mavenCentral()
33+
compile 'com.etsy.android.grid:library:1.0.0'
34+
}
35+
```
36+
37+
Alternatively import the `/library` project into your Android Studio project and add it as a dependency in your `build.gradle`.
2938

3039
The library is currently configured to be built via Gradle only. It has the following dependencies:
3140

3241
* Android Gradle plugin v0.6.3 - `com.android.tools.build:gradle:0.6.3`
3342
* Android Support Library v19 - `com.android.support:support-v4:19.0.+`
3443

44+
Still use Eclipse/building with Ant? You can still use AndroidStaggeredGrid, it's just a few extra steps (left up to the read).
45+
3546
Usage
3647
=====
3748

0 commit comments

Comments
 (0)