From e1c8a9e85fccfe2f500b3d06dfe9e16a2bd19c6e Mon Sep 17 00:00:00 2001 From: Elizabeth Popova Date: Sun, 18 Apr 2021 01:48:33 +0300 Subject: [PATCH] Update README.md with jitpack instructions --- README.md | 17 ++++++++++++++--- app/build.gradle | 4 ++-- build.gradle | 1 + 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5091b6a..0645043 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 diff --git a/app/build.gradle b/app/build.gradle index 07c222f..5784ca3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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'); } diff --git a/build.gradle b/build.gradle index 0eb258d..547e76c 100644 --- a/build.gradle +++ b/build.gradle @@ -19,6 +19,7 @@ allprojects { repositories { google() jcenter() + maven { url 'https://jitpack.io' } } }