File tree Expand file tree Collapse file tree 10 files changed +31
-37
lines changed
src/main/java/cz/intik/overflowindicator
java/cz/intik/overflowpagerindicator Expand file tree Collapse file tree 10 files changed +31
-37
lines changed Original file line number Diff line number Diff line change 1- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31buildscript {
42 repositories {
3+ google()
54 jcenter()
65 }
76 dependencies {
8- classpath ' com.android.tools.build:gradle:2.3.3'
9-
10- // NOTE: Do not place your application dependencies here; they belong
11- // in the individual module build.gradle files
7+ classpath ' com.android.tools.build:gradle:3.2.1'
128 }
139}
1410
15- ext {
16- supportLibraryVersion = ' 26.1.0'
17- }
18-
1911allprojects {
2012 repositories {
13+ google()
2114 jcenter()
22- maven { url " https://maven.google.com" }
2315 }
2416}
2517
Original file line number Diff line number Diff line change 99
1010# Specifies the JVM arguments used for the daemon process.
1111# The setting is particularly useful for tweaking memory settings.
12+ android.enableJetifier =true
13+ android.useAndroidX =true
1214org.gradle.jvmargs =-Xmx1536m
1315
1416# When configured, Gradle will run in incubating parallel mode.
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-3.3 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.10.2 -all.zip
Original file line number Diff line number Diff line change 99}
1010
1111android {
12- compileSdkVersion 26
13- buildToolsVersion " 26.0.1"
12+ compileSdkVersion 28
1413
1514 defaultConfig {
1615 minSdkVersion 16
17- targetSdkVersion 26
16+ targetSdkVersion 28
1817 versionCode 1
1918 versionName " 1.0"
2019 }
@@ -27,12 +26,12 @@ android {
2726}
2827
2928dependencies {
30- compile fileTree(dir : ' libs' , include : [' *.jar' ])
29+ implementation fileTree(dir : ' libs' , include : [' *.jar' ])
3130
32- compile " com.android.support :appcompat-v7: $r ootProject . supportLibraryVersion "
33- compile " com.android.support :recyclerview-v7: $r ootProject . supportLibraryVersion "
31+ implementation " androidx.appcompat :appcompat:1.0.0 "
32+ implementation " androidx.recyclerview :recyclerview:1.0.0 "
3433
35- compile " com.andkulikov:transitionseverywhere:1.7.6 "
34+ implementation " com.andkulikov:transitionseverywhere:1.8.0 "
3635}
3736
3837apply from : ' https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'
Original file line number Diff line number Diff line change 11package cz .intik .overflowindicator ;
22
3- import android . support . v7 .widget .RecyclerView ;
3+ import androidx . recyclerview .widget .RecyclerView ;
44
55/**
66 * Data observer which notifies {@link OverflowPagerIndicator} of changed data
Original file line number Diff line number Diff line change 11package cz .intik .overflowindicator ;
22
33import android .content .Context ;
4- import android . support .annotation .Nullable ;
5- import android . support . v7 .widget .PagerSnapHelper ;
6- import android . support . v7 .widget .RecyclerView ;
4+ import androidx .annotation .Nullable ;
5+ import androidx . recyclerview .widget .PagerSnapHelper ;
6+ import androidx . recyclerview .widget .RecyclerView ;
77import android .util .AttributeSet ;
88import android .util .DisplayMetrics ;
99import android .util .TypedValue ;
Original file line number Diff line number Diff line change 11package cz .intik .overflowindicator ;
22
3- import android . support .annotation .NonNull ;
4- import android . support . v7 .widget .PagerSnapHelper ;
5- import android . support . v7 .widget .RecyclerView ;
3+ import androidx .annotation .NonNull ;
4+ import androidx . recyclerview .widget .PagerSnapHelper ;
5+ import androidx . recyclerview .widget .RecyclerView ;
66
77/**
88 * SnapHelper which allows snapping of pages, customized with notifying of {@link OverflowPagerIndicator}
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22
33android {
4- compileSdkVersion 26
5- buildToolsVersion " 26.0.1 "
4+ compileSdkVersion 28
5+
66 defaultConfig {
77 applicationId " cz.intik.overflowpagerindicator"
88 minSdkVersion 21
9- targetSdkVersion 26
9+ targetSdkVersion 28
1010 versionCode 1
1111 versionName " 1.0"
1212 }
13+
1314 buildTypes {
1415 release {
1516 minifyEnabled false
@@ -19,8 +20,8 @@ android {
1920}
2021
2122dependencies {
22- compile " com.android.support :appcompat-v7: $r ootProject . supportLibraryVersion "
23- compile " com.android.support :recyclerview-v7: $r ootProject . supportLibraryVersion "
23+ implementation " androidx.appcompat :appcompat:1.0.0 "
24+ implementation " androidx.recyclerview :recyclerview:1.0.0 "
2425
25- compile project(path : ' :library' )
26+ implementation project(path : ' :library' )
2627}
Original file line number Diff line number Diff line change 22
33import android .graphics .Color ;
44import android .os .Bundle ;
5- import android . support . v7 .app .AppCompatActivity ;
6- import android . support . v7 .widget .LinearLayoutManager ;
7- import android . support . v7 .widget .RecyclerView ;
5+ import androidx . appcompat .app .AppCompatActivity ;
6+ import androidx . recyclerview .widget .LinearLayoutManager ;
7+ import androidx . recyclerview .widget .RecyclerView ;
88import android .view .ViewGroup ;
99import android .widget .FrameLayout ;
1010
Original file line number Diff line number Diff line change 1313 android:layout_height=" wrap_content"
1414 android:layout_marginTop=" 64dp" >
1515
16- <android .support.v7 .widget.RecyclerView
16+ <androidx .recyclerview .widget.RecyclerView
1717 android:id=" @+id/recycler_view"
1818 android:layout_width=" match_parent"
1919 android:layout_height=" 120dp"
3333 android:layout_height=" wrap_content"
3434 android:layout_marginTop=" 64dp" >
3535
36- <android .support.v7 .widget.RecyclerView
36+ <androidx .recyclerview .widget.RecyclerView
3737 android:id=" @+id/recycler_view_simple"
3838 android:layout_width=" match_parent"
3939 android:layout_height=" 120dp"
You can’t perform that action at this time.
0 commit comments