Skip to content

Commit

Permalink
Merge pull request #166 from Omega-R/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
KsenyaBol committed Nov 2, 2023
2 parents 07382b3 + f04e380 commit 608db05
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 7 deletions.
27 changes: 23 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

Properties properties = new Properties()
def localPropertiesPath = 'local.properties'
if (file(localPropertiesPath).exists()) {
properties.load(file(localPropertiesPath).newDataInputStream())
}

gradle.ext {
nexusUrl = properties.getProperty("nexusUrl") ?: ""
nexusUsername = properties.getProperty("nexusUsername")
nexusPassword = properties.getProperty("nexusPassword")
gitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
}

ext.kotlin_version = '1.3.72'
repositories {
jcenter()
maven { url 'https://jitpack.io' }
google()
maven { url gradle.nexusUrl }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
Expand All @@ -19,10 +40,8 @@ buildscript {

allprojects {
repositories {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://maven.google.com" }
google()
}
}
Expand Down
25 changes: 24 additions & 1 deletion omegarecyclerview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.compileSdkVersion
Expand All @@ -17,6 +17,29 @@ android {
}
}


publishing {
publications {
release(MavenPublication) {
groupId 'com.github.Omega-R.OmegaRecyclerView'
artifactId project.name
version project.hasProperty('version') ? project.version : gradle.gitHash()
afterEvaluate {
from components.release
}
}
}
repositories {
maven {
url gradle.nexusUrl
credentials {
username gradle.nexusUsername
password gradle.nexusPassword
}
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:' + rootProject.appcompatVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,10 @@ public void hidePagination() {
}
}

public void resetPagination() {
mPageRequester.reset();
}

public void setHeadersVisibility(boolean visible) {
RecyclerView.Adapter adapter = getAdapter();
if (adapter instanceof HeaderFooterWrapperAdapter) {
Expand Down
24 changes: 23 additions & 1 deletion omegarecyclerview_expandable/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.compileSdkVersion
Expand All @@ -17,6 +17,28 @@ android {
}
}

publishing {
publications {
release(MavenPublication) {
groupId 'com.github.Omega-R.OmegaRecyclerView'
artifactId project.name
version project.hasProperty('version') ? project.version : gradle.gitHash()
afterEvaluate {
from components.release
}
}
}
repositories {
maven {
url gradle.nexusUrl
credentials {
username gradle.nexusUsername
password gradle.nexusPassword
}
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':omegarecyclerview')
Expand Down
24 changes: 23 additions & 1 deletion omegarecyclerview_fastscroll/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.compileSdkVersion
Expand All @@ -17,6 +17,28 @@ android {
}
}

publishing {
publications {
release(MavenPublication) {
groupId 'com.github.Omega-R.OmegaRecyclerView'
artifactId project.name
version project.hasProperty('version') ? project.version : gradle.gitHash()
afterEvaluate {
from components.release
}
}
}
repositories {
maven {
url gradle.nexusUrl
credentials {
username gradle.nexusUsername
password gradle.nexusPassword
}
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':omegarecyclerview')
Expand Down

0 comments on commit 608db05

Please sign in to comment.