diff --git a/.idea/misc.xml b/.idea/misc.xml index 93713f5..5e73d4b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -5,45 +5,32 @@ - + - - - - - 1.8 - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 94a25f7..35eb1dd 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 6efa8f1..a21d346 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,19 +1,18 @@ apply plugin: 'com.android.library' apply plugin: 'maven' -apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' group = 'com.github.denisviana' android { - compileSdkVersion 27 + compileSdkVersion 28 defaultConfig { - minSdkVersion 21 - targetSdkVersion 27 + minSdkVersion 17 + targetSdkVersion 28 versionCode 1 versionName "1.0" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { @@ -26,9 +25,9 @@ android { dependencies { implementation project(':imagesteps') implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" - implementation 'com.android.support:appcompat-v7:27.0.2' + implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'androidx.appcompat:appcompat:1.0.0-beta01' testImplementation 'junit:junit:4.12' - androidTestImplementation 'com.android.support.test:runner:1.0.1' - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' + androidTestImplementation 'androidx.test:runner:1.1.0-alpha4' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4' } diff --git a/app/src/androidTest/java/io/github/denisviana/imagesteps/ExampleInstrumentedTest.kt b/app/src/androidTest/java/io/github/denisviana/imagesteps/ExampleInstrumentedTest.kt index 6d13739..5c8284e 100644 --- a/app/src/androidTest/java/io/github/denisviana/imagesteps/ExampleInstrumentedTest.kt +++ b/app/src/androidTest/java/io/github/denisviana/imagesteps/ExampleInstrumentedTest.kt @@ -1,7 +1,7 @@ package io.github.denisviana.imagesteps -import android.support.test.InstrumentationRegistry -import android.support.test.runner.AndroidJUnit4 +import androidx.test.InstrumentationRegistry +import androidx.test.runner.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith diff --git a/app/src/main/java/io/github/denisviana/imagesteps/MainActivity.kt b/app/src/main/java/io/github/denisviana/imagesteps/MainActivity.kt index cb9294b..5d19de9 100644 --- a/app/src/main/java/io/github/denisviana/imagesteps/MainActivity.kt +++ b/app/src/main/java/io/github/denisviana/imagesteps/MainActivity.kt @@ -1,7 +1,7 @@ package io.github.denisviana.imagesteps import android.os.Bundle -import android.support.v7.app.AppCompatActivity +import androidx.appcompat.app.AppCompatActivity import kotlinx.android.synthetic.main.main_activity.* /** diff --git a/build.gradle b/build.gradle index 5d25174..17e8c4e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.2.21' - ext.kotlin_version = '1.1.51' + ext.kotlin_version = '1.2.51' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:3.3.0-alpha03' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle.properties b/gradle.properties index aac7c9b..9e6fce1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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. diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 7fea75d..e184570 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sat Feb 17 14:10:02 BRST 2018 +#Thu Jul 26 20:34:38 NZST 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-rc-1-all.zip diff --git a/imagesteps/build.gradle b/imagesteps/build.gradle index 7bfb535..6c47b87 100644 --- a/imagesteps/build.gradle +++ b/imagesteps/build.gradle @@ -2,17 +2,16 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 27 - + compileSdkVersion 28 defaultConfig { - minSdkVersion 21 - targetSdkVersion 27 - versionCode 4 - versionName "1.0.4" + minSdkVersion 17 + targetSdkVersion 28 + versionCode 5 + versionName "1.0.5" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -28,11 +27,11 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'com.android.support:appcompat-v7:27.0.2' + implementation 'androidx.appcompat:appcompat:1.0.0-beta01' testImplementation 'junit:junit:4.12' - androidTestImplementation 'com.android.support.test:runner:1.0.1' - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' - compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" + androidTestImplementation 'androidx.test:runner:1.1.0-alpha4' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4' + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } repositories { mavenCentral() diff --git a/imagesteps/src/androidTest/java/io/github/denisviana/imagestep/ExampleInstrumentedTest.java b/imagesteps/src/androidTest/java/io/github/denisviana/imagestep/ExampleInstrumentedTest.java index 6089c5d..5213741 100644 --- a/imagesteps/src/androidTest/java/io/github/denisviana/imagestep/ExampleInstrumentedTest.java +++ b/imagesteps/src/androidTest/java/io/github/denisviana/imagestep/ExampleInstrumentedTest.java @@ -1,8 +1,8 @@ package io.github.denisviana.imagestep; import android.content.Context; -import android.support.test.InstrumentationRegistry; -import android.support.test.runner.AndroidJUnit4; +import androidx.test.InstrumentationRegistry; +import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/imagesteps/src/main/java/io/github/denisviana/imagestep/ImageSteps.kt b/imagesteps/src/main/java/io/github/denisviana/imagestep/ImageSteps.kt index 89c01e8..14d2305 100644 --- a/imagesteps/src/main/java/io/github/denisviana/imagestep/ImageSteps.kt +++ b/imagesteps/src/main/java/io/github/denisviana/imagestep/ImageSteps.kt @@ -6,8 +6,8 @@ import android.content.Context import android.graphics.Color import android.graphics.drawable.GradientDrawable import android.os.Build -import android.support.annotation.DrawableRes -import android.support.v4.view.ViewPager +import androidx.annotation.DrawableRes +import androidx.viewpager.widget.ViewPager import android.util.AttributeSet import android.view.LayoutInflater import android.view.View