Skip to content

Commit

Permalink
Update README.md with jitpack instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
lizapopova committed Apr 17, 2021
1 parent 4eb102c commit e1c8a9e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sectioned RecyclerView with pinnable (floating/sticky) headers

[![Bintray](https://img.shields.io/bintray/v/cruxlab/SectionedRecyclerView/SectionedRecyclerView?color=bright-green)](https://bintray.com/cruxlab/SectionedRecyclerView/SectionedRecyclerView/1.1.0)
[![Jitpack](https://jitpack.io/v/crux-lab/sectioned-recycler-view.svg)](https://jitpack.io/#crux-lab/sectioned-recycler-view)
[![Nuget](https://img.shields.io/nuget/v/Karamunting.Android.CruxLab.SectionedRecyclerView?color=bright-green)](https://www.nuget.org/packages/Karamunting.Android.CruxLab.SectionedRecyclerView/1.0.3)
[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)

Expand All @@ -23,12 +23,23 @@ You can find demo project code [here](https://github.com/crux-lab/sectioned-recy
## Usage

### Setup
1. Add the JitPack repository to your project's `build.gradle` file:

The Gradle dependency is available via [jCenter](https://bintray.com/cruxlab/SectionedRecyclerView/SectionedRecyclerView). Add this to your module's `build.gradle` file:
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

2. Add the dependency to your module's `build.gradle` file:

```gradle
implementation 'com.cruxlab:sectionedrecyclerview:1.1.0'
implementation 'com.github.crux-lab:sectioned-recycler-view:1.1.0'
```
Note: previously the library was available via jCenter as `com.cruxlab:sectionedrecyclerview:x.y.z`.

### Initialization

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.cruxlab:sectionedrecyclerview:1.1.0'
// implementation project(':sectionedrecyclerview');
// implementation 'com.github.crux-lab:sectioned-recycler-view:1.1.0'
implementation project(':sectionedrecyclerview');
}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}

Expand Down

0 comments on commit e1c8a9e

Please sign in to comment.