diff --git a/README.md b/README.md index 12e8839..225d2f6 100644 --- a/README.md +++ b/README.md @@ -11,19 +11,20 @@ This library can be seen as a wrapper on top of the excellent `android.text.form Obtaining ========= -###Android Studio - 1. Clone the repo - 2. Open build.gradle in the root folder of the cloned project in Android Studio +###Gradle + +Add the following to your build.gradle + + dependencies { + compile 'com.github.curioustechizen.android-ago:library:1.2.0' + } + ###Eclipse+ADT 1. Clone the repo 2. In Eclipse, go to `File` -> `New` -> `Other`. Expand `Android` and select `Android Project from Existing Code` 3. Browse to the `android-ago` sub-folder of the cloned repo and hit `Finish` -###Maven Central -This project is not available on Maven Central yet. Please follow #3 to know when this is done. - - Usage ===== diff --git a/android-ago-sample/build.gradle b/android-ago-sample/build.gradle index bcd98a7..af48b8f 100644 --- a/android-ago-sample/build.gradle +++ b/android-ago-sample/build.gradle @@ -1,3 +1,7 @@ +repositories{ + mavenCentral() +} + apply plugin: 'com.android.application' android { @@ -18,5 +22,6 @@ android { } dependencies { - compile project(":android-ago") + //compile project(":android-ago") + compile 'com.github.curioustechizen.android-ago:library:1.2.0' }