Skip to content

Commit 4263e83

Browse files
authored
Merge pull request #14 from searchy2/master
Update Android X
2 parents 5010b36 + b592665 commit 4263e83

File tree

9 files changed

+28
-31
lines changed

9 files changed

+28
-31
lines changed

app/build.gradle

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion '26.0.2'
4+
compileSdkVersion 28
65
defaultConfig {
76
applicationId "iammert.com.expandablelayout"
87
minSdkVersion 14
9-
targetSdkVersion 25
8+
targetSdkVersion 28
109
versionCode 1
1110
versionName "1.0"
12-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
11+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1312
}
1413
buildTypes {
1514
release {
@@ -25,12 +24,11 @@ android {
2524
}
2625

2726
dependencies {
28-
compile fileTree(include: ['*.jar'], dir: 'libs')
29-
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
27+
implementation fileTree(include: ['*.jar'], dir: 'libs')
28+
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha4', {
3029
exclude group: 'com.android.support', module: 'support-annotations'
3130
})
32-
compile 'com.android.support:appcompat-v7:25.+'
33-
testCompile 'junit:junit:4.12'
34-
compile project(':expandablelib')
35-
31+
implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
32+
testImplementation 'junit:junit:4.12'
33+
implementation project(':expandablelib')
3634
}

app/src/androidTest/java/iammert/com/expandablelayout/ExampleInstrumentedTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package iammert.com.expandablelayout;
22

33
import 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

77
import org.junit.Test;
88
import org.junit.runner.RunWith;

app/src/main/java/iammert/com/expandablelayout/MainActivity.java

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

33
import android.os.Bundle;
4-
import android.support.v7.app.AppCompatActivity;
4+
import androidx.appcompat.app.AppCompatActivity;
55
import android.text.Editable;
66
import android.text.TextWatcher;
77
import android.view.View;

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.0.0'
10+
classpath 'com.android.tools.build:gradle:3.2.0-rc01'
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

expandablelib/build.gradle

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
apply plugin: 'com.android.library'
22

3-
43
android {
5-
compileSdkVersion 25
6-
buildToolsVersion '26.0.2'
7-
4+
compileSdkVersion 28
85

96
defaultConfig {
107
minSdkVersion 14
11-
targetSdkVersion 25
8+
targetSdkVersion 28
129
versionCode 1
1310
versionName "1.0"
1411

15-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1613

1714
}
1815
buildTypes {
@@ -24,11 +21,11 @@ android {
2421
}
2522

2623
dependencies {
27-
compile fileTree(dir: 'libs', include: ['*.jar'])
28-
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
24+
implementation fileTree(dir: 'libs', include: ['*.jar'])
25+
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha4', {
2926
exclude group: 'com.android.support', module: 'support-annotations'
3027
})
3128

32-
compile 'com.android.support:support-annotations:25.2.0'
33-
testCompile 'junit:junit:4.12'
29+
implementation 'androidx.annotation:annotation:1.0.0-rc01'
30+
testImplementation 'junit:junit:4.12'
3431
}

expandablelib/src/androidTest/java/iammert/com/expandablelib/ExampleInstrumentedTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package iammert.com.expandablelib;
22

33
import 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

77
import org.junit.Test;
88
import org.junit.runner.RunWith;

expandablelib/src/main/java/iammert/com/expandablelib/ExpandableLayout.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import android.content.Context;
55
import android.content.res.TypedArray;
66
import android.os.Build;
7-
import android.support.annotation.LayoutRes;
8-
import android.support.annotation.NonNull;
9-
import android.support.annotation.Nullable;
7+
import androidx.annotation.LayoutRes;
8+
import androidx.annotation.NonNull;
9+
import androidx.annotation.Nullable;
1010
import android.util.AttributeSet;
1111
import android.view.LayoutInflater;
1212
import android.view.View;

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
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
1214
org.gradle.jvmargs=-Xmx1536m
1315

1416
# When configured, Gradle will run in incubating parallel mode.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Nov 27 19:13:49 EET 2017
1+
#Thu Aug 23 14:26:53 CDT 2018
22
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.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-rc-1-all.zip

0 commit comments

Comments
 (0)