Skip to content

Commit 4416325

Browse files
authored
Merge pull request #101 from kstanislav/master
added androidX support bumped sdk and tools version
2 parents 0cb8c6f + ff0adf7 commit 4416325

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+77
-75
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.1.4'
10-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'
9+
classpath 'com.android.tools.build:gradle:3.2.1'
10+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
1111
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18-
# org.gradle.parallel=true
18+
# org.gradle.parallel=true
19+
android.enableJetifier=false
20+
android.useAndroidX=true

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

pageindicatorview/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ ext {
2525
}
2626

2727
android {
28-
compileSdkVersion 27
29-
buildToolsVersion '27.0.3'
28+
compileSdkVersion 28
29+
buildToolsVersion '28.0.3'
3030

3131
defaultConfig {
3232
minSdkVersion 14
33-
targetSdkVersion 27
33+
targetSdkVersion 28
3434
versionCode 1
3535
versionName "1.0"
3636

37-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
37+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3838

3939
}
4040
buildTypes {
@@ -49,9 +49,9 @@ dependencies {
4949
repositories {
5050
maven { url "https://maven.google.com" }
5151
}
52-
implementation 'com.android.support:support-annotations:27.1.1'
53-
implementation 'com.android.support:support-compat:27.1.1'
54-
implementation 'com.android.support:support-core-ui:27.1.1'
52+
implementation 'androidx.annotation:annotation:1.0.0'
53+
implementation 'androidx.core:core:1.0.0'
54+
implementation 'androidx.viewpager:viewpager:1.0.0'
5555
}
5656

5757
allprojects {

pageindicatorview/src/main/java/com/rd/IndicatorManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.rd;
22

3-
import android.support.annotation.Nullable;
3+
import androidx.annotation.Nullable;
44
import com.rd.animation.AnimationManager;
55
import com.rd.animation.controller.ValueController;
66
import com.rd.animation.data.Value;

pageindicatorview/src/main/java/com/rd/PageIndicatorView.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
import android.os.Handler;
1010
import android.os.Looper;
1111
import android.os.Parcelable;
12-
import android.support.annotation.NonNull;
13-
import android.support.annotation.Nullable;
14-
import android.support.v4.text.TextUtilsCompat;
15-
import android.support.v4.view.PagerAdapter;
16-
import android.support.v4.view.ViewCompat;
17-
import android.support.v4.view.ViewPager;
12+
import androidx.annotation.NonNull;
13+
import androidx.annotation.Nullable;
14+
import androidx.core.text.TextUtilsCompat;
15+
import androidx.viewpager.widget.PagerAdapter;
16+
import androidx.core.view.ViewCompat;
17+
import androidx.viewpager.widget.ViewPager;
1818
import android.util.AttributeSet;
1919
import android.util.Pair;
2020
import android.view.MotionEvent;

pageindicatorview/src/main/java/com/rd/animation/AnimationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.rd.animation;
22

3-
import android.support.annotation.NonNull;
3+
import androidx.annotation.NonNull;
44
import com.rd.animation.controller.AnimationController;
55
import com.rd.animation.controller.ValueController;
66
import com.rd.draw.data.Indicator;

pageindicatorview/src/main/java/com/rd/animation/controller/AnimationController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.rd.animation.controller;
22

3-
import android.support.annotation.NonNull;
3+
import androidx.annotation.NonNull;
44
import com.rd.animation.type.AnimationType;
55
import com.rd.animation.type.BaseAnimation;
66
import com.rd.draw.data.Indicator;

pageindicatorview/src/main/java/com/rd/animation/controller/ValueController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.rd.animation.controller;
22

3-
import android.support.annotation.NonNull;
4-
import android.support.annotation.Nullable;
3+
import androidx.annotation.NonNull;
4+
import androidx.annotation.Nullable;
55
import com.rd.animation.data.Value;
66
import com.rd.animation.type.*;
77

pageindicatorview/src/main/java/com/rd/animation/data/AnimationValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.rd.animation.data;
22

3-
import android.support.annotation.NonNull;
3+
import androidx.annotation.NonNull;
44
import com.rd.animation.data.type.*;
55

66
public class AnimationValue {

0 commit comments

Comments
 (0)