Skip to content

Commit

Permalink
Merge branch 'switch-to-jitpack'
Browse files Browse the repository at this point in the history
  • Loading branch information
lizapopova committed Apr 17, 2021
2 parents 9e90bcc + e1c8a9e commit 895c7df
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 91 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');
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -20,6 +19,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}

Expand Down
4 changes: 2 additions & 2 deletions sectionedrecyclerview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.crux-lab'

android {
compileSdkVersion 30
Expand All @@ -21,5 +23,3 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
}

apply from: 'publish.gradle'
83 changes: 0 additions & 83 deletions sectionedrecyclerview/publish.gradle

This file was deleted.

0 comments on commit 895c7df

Please sign in to comment.