File tree Expand file tree Collapse file tree
androidTest/java/com/github/nikartm/stripedprocessbutton
main/java/com/github/nikartm/stripedprocessbutton
src/main/java/com/github/nikartm/support Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ android {
88 targetSdkVersion 28
99 versionCode 1
1010 versionName " 1.0"
11- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
11+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
1212 }
1313 buildTypes {
1414 release {
@@ -25,11 +25,11 @@ android {
2525dependencies {
2626 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
2727 testImplementation ' junit:junit:4.12'
28- androidTestImplementation ' com.android.support. test:runner:1.0.2 '
29- androidTestImplementation ' com.android.support. test.espresso:espresso-core:3.0.2 '
28+ androidTestImplementation ' androidx. test:runner:1.1.1 '
29+ androidTestImplementation ' androidx. test.espresso:espresso-core:3.1.1 '
3030
31- implementation ' com.android.support :appcompat-v7:28 .0.0 '
32- implementation ' com.android.support.constraint:constraint-layout :1.1.3'
31+ implementation ' androidx.appcompat :appcompat:1 .0.2 '
32+ implementation ' androidx.constraintlayout:constraintlayout :1.1.3'
3333
3434 implementation project(' :support' )
3535}
Original file line number Diff line number Diff line change 11package com .github .nikartm .stripedprocessbutton ;
22
33import android .content .Context ;
4- import android . support .test .InstrumentationRegistry ;
5- import android . support .test .runner .AndroidJUnit4 ;
4+ import androidx .test .InstrumentationRegistry ;
5+ import androidx .test .runner .AndroidJUnit4 ;
66
77import org .junit .Test ;
88import org .junit .runner .RunWith ;
Original file line number Diff line number Diff line change 11package com .github .nikartm .stripedprocessbutton ;
22
33import android .os .Bundle ;
4- import android . support . v7 .app .AppCompatActivity ;
4+ import androidx . appcompat .app .AppCompatActivity ;
55import android .widget .Button ;
66
77import com .github .nikartm .support .StripedProcessButton ;
Original file line number Diff line number Diff line change @@ -11,3 +11,7 @@ org.gradle.jvmargs=-Xmx1536m
1111# This option should only be used with decoupled projects. More details, visit
1212# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1313# org.gradle.parallel=true
14+
15+ # Use AndroidX
16+ android.enableJetifier =true
17+ android.useAndroidX =true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ android {
88 minSdkVersion 21
99 targetSdkVersion 28
1010 versionCode 1
11- versionName " 1.0"
11+ versionName " 1.0.1 "
1212 }
1313
1414 buildTypes {
@@ -34,7 +34,7 @@ publish {
3434 userOrg = ' nikart'
3535 groupId = ' com.github.nikartm'
3636 artifactId = ' process-button'
37- publishVersion = ' 1.0.1 '
37+ publishVersion = android . defaultConfig . versionName
3838 desc = ' Android library. Animated striped button to show loading process.'
3939 licences = [' Apache-2.0' ]
4040 uploadName= ' StripedProcessButton'
@@ -43,6 +43,6 @@ publish {
4343
4444dependencies {
4545 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
46- implementation ' com.android.support :appcompat-v7:28 .0.0 '
46+ implementation ' androidx.appcompat :appcompat:1 .0.2 '
4747 testImplementation ' junit:junit:4.12'
4848}
Original file line number Diff line number Diff line change 1212import android .graphics .RectF ;
1313import android .graphics .Shader ;
1414import android .graphics .drawable .Drawable ;
15- import android . support .annotation .NonNull ;
16- import android . support .annotation .Nullable ;
15+ import androidx .annotation .NonNull ;
16+ import androidx .annotation .Nullable ;
1717
1818/**
1919 * Animated striped drawable
Original file line number Diff line number Diff line change 33import android .content .Context ;
44import android .graphics .Canvas ;
55import android .graphics .drawable .Animatable ;
6- import android . support . v7 .widget .AppCompatButton ;
6+ import androidx . appcompat .widget .AppCompatButton ;
77import android .util .AttributeSet ;
88
99import com .github .nikartm .support .constant .Constants ;
You can’t perform that action at this time.
0 commit comments