Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
greengrowapps committed Jan 12, 2016
1 parent 5b41ce7 commit 1474815
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,24 @@ Or here we use basic auth to retrieve the closest trends using the Twitter api:

```groovy
dependencies {
compile 'com.greengrowapps:ggarest:0.5'
compile 'com.greengrowapps:ggarest:0.6'
}
```

**2)** Initialize the object in one of your activities' onCreate to start using it:
**2)** Avoid duplicate files copied in APK adding this inside the android tag in your ``build.gradle``:

```groovy
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
```

**3)** Initialize the object in one of your activities' onCreate to start using it:

```java
GgaRest.init(this);
Expand Down

0 comments on commit 1474815

Please sign in to comment.