Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

ext {
supportLibraryVersion = '26.1.0'
}

allprojects {
repositories {
google()
jcenter()
maven { url "https://maven.google.com" }
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m

# When configured, Gradle will run in incubating parallel mode.
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
15 changes: 7 additions & 8 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ ext {
}

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
compileSdkVersion 28

defaultConfig {
minSdkVersion 16
targetSdkVersion 26
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
Expand All @@ -27,12 +26,12 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: 'libs', include: ['*.jar'])

compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
implementation "androidx.appcompat:appcompat:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.0.0"

compile "com.andkulikov:transitionseverywhere:1.7.6"
implementation "com.andkulikov:transitionseverywhere:1.8.0"
}

apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
package cz.intik.overflowindicator;

import android.support.v7.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView;

/**
* Data observer which notifies {@link OverflowPagerIndicator} of changed data
*
* @author Petr Introvic <introvic.petr@gmail.com>
* created 03.10.2017.
* created 03.10.2017.
*/

class OverflowDataObserver extends RecyclerView.AdapterDataObserver {

private OverflowPagerIndicator mOverflowPagerIndicator;

OverflowDataObserver(OverflowPagerIndicator overflowPagerIndicator) {
mOverflowPagerIndicator = overflowPagerIndicator;
}

@Override
public void onChanged() {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeInserted(int positionStart, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeChanged(int positionStart, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeRemoved(int positionStart, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}
private OverflowPagerIndicator mOverflowPagerIndicator;

OverflowDataObserver(OverflowPagerIndicator overflowPagerIndicator) {
mOverflowPagerIndicator = overflowPagerIndicator;
}

@Override
public void onChanged() {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeInserted(int positionStart, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeChanged(int positionStart, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeRemoved(int positionStart, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}

@Override
public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
mOverflowPagerIndicator.updateIndicatorsCount();
}
}
Loading