Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Rohloff committed Apr 7, 2016
1 parent 99f9095 commit f8b0298
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions README.md
Expand Up @@ -8,19 +8,39 @@ The code is based on [this][7] and [this][8].

## Setup Instructions

Set up the project dependencies. To use this library in your project, follow these steps:
### (1) Using gradle

* Add the JitPack repository to your root build.gradle at the end of repositories:

```gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
* In your application's main module (usually called "app"), edit your build.gradle to add a new dependency:
```gradle
dependencies {
compile 'com.github.rhlff:NestedScrollWebView:v1.0.2'
}
```

### (2) Using git submodule

* In the root of your application's project add the library as a git submodule:
```shell
git submodule add https://github.com/rhlff/NestedScrollWebView
```
* In the root of your application's project edit the file "settings.gradle" and add the following lines:
```shell
```gradle
include ':NestedScrollWebView:lib'
project(':NestedScrollWebView').projectDir = new File('/NestedScrollWebView')
```
* In your application's main module (usually called "app"), edit your build.gradle to add a new dependency:
```shell
```gradle
dependencies {
...
compile project(':NestedScrollWebView:lib')
Expand Down

0 comments on commit f8b0298

Please sign in to comment.