From 72d95a190f2431cb71e1bff69d4ab3e9abc697c5 Mon Sep 17 00:00:00 2001 From: Jieyi Date: Wed, 18 Jul 2018 12:27:08 +0900 Subject: [PATCH] Upgraded: update to androidx. --- README.md | 9 ++ build.gradle | 4 +- gradle.properties | 7 +- gradle/wrapper/gradle-wrapper.properties | 4 +- kotlinknifer/build.gradle | 21 ++-- .../java/com/devrapid/kotlinknifer/Bitmap.kt | 4 +- .../java/com/devrapid/kotlinknifer/Color.kt | 6 +- .../com/devrapid/kotlinknifer/Drawable.kt | 4 +- .../com/devrapid/kotlinknifer/Fragment.kt | 22 ++-- .../java/com/devrapid/kotlinknifer/View.kt | 15 ++- .../WrapContentLinearLayoutManager.kt | 6 +- .../itemdecorator/GridSpacingItemDecorator.kt | 4 +- .../itemdecorator/HorizontalItemDecorator.kt | 4 +- .../itemdecorator/VerticalItemDecorator.kt | 4 +- .../kotlinknifer/support/v4/Fragment.kt | 109 ------------------ kotlinshaver/build.gradle | 6 +- sample/build.gradle | 18 +-- .../java/com/devrapid/utils/MainActivity.kt | 2 +- 18 files changed, 68 insertions(+), 181 deletions(-) delete mode 100644 kotlinknifer/src/main/java/com/devrapid/kotlinknifer/support/v4/Fragment.kt diff --git a/README.md b/README.md index b8b44fb..6e102a7 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,15 @@ implementation('com.devrapid.jieyi:kotlinknifer:1.5.7', { }) ``` +### For Androidx + +```gradle +implementation('com.devrapid.jieyi:kotlinknifer:2.0.0', { + exclude group: 'com.google.code.gson', module: 'gson' + exclude group: 'com.github.bumptech.glide', module: 'glide' +}) +``` + ```gradle implementation('com.devrapid.jieyi:kotlinshaverr:0.2.2', { exclude group: 'io.reactivex.rxjava2', module: 'rxjava' diff --git a/build.gradle b/build.gradle index 8bdcf69..6ec9710 100644 --- a/build.gradle +++ b/build.gradle @@ -1,13 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.2.31' + ext.kotlin_version = '1.2.51' repositories { jcenter() google() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.0' + classpath 'com.android.tools.build:gradle:3.2.0-beta04' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle.properties b/gradle.properties index 3086c68..0c76ed0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,6 +11,9 @@ org.gradle.jvmargs=-Xmx1536m # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true +android.useAndroidX=true +android.enableJetifier=true + #### For JCenter #### ## Project information proj_repo=maven @@ -18,7 +21,7 @@ proj_name=kotlinknifer proj_libname=KotlinKnifer proj_group=com.devrapid.jieyi proj_artifactid=kotlinknifer -proj_version=1.5.7 +proj_version=2.0.0 proj_description=For developing an Android conveniently and rapidly. proj_websiteurl=https://github.com/pokk/KotlinKnifer proj_issuetrackerurl=https://github.com/pokk/KotlinKnifer/issues @@ -36,4 +39,4 @@ developer_email=pokkbaby@gmail.com proj_kotlin_name=kotlinshaver proj_kotlin_libname=KotlinShaver proj_kotlin_artifactid=kotlinshaver -proj_kotlin_version=0.2.2 +proj_kotlin_version=1.0.0 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f63486f..cf10787 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Jan 24 11:07:46 JST 2018 +#Wed Jul 18 12:01:20 JST 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-all.zip diff --git a/kotlinknifer/build.gradle b/kotlinknifer/build.gradle index ac94396..97b7dcc 100644 --- a/kotlinknifer/build.gradle +++ b/kotlinknifer/build.gradle @@ -2,12 +2,11 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 27 - buildToolsVersion '27.0.3' + compileSdkVersion 28 defaultConfig { minSdkVersion 21 - targetSdkVersion 27 + targetSdkVersion 28 } buildTypes { release { @@ -27,15 +26,15 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" // 'compile' can also import to the new project with this. compile 'com.google.code.gson:gson:2.8.2' - compile 'com.github.bumptech.glide:glide:4.6.1' + compile 'com.github.bumptech.glide:glide:4.7.1' // 'implementation' can't import to the new project. - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5' - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-common:0.22.5' - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.22.5' - implementation 'org.jetbrains.anko:anko-commons:0.10.4' - implementation 'com.android.support:appcompat-v7:27.1.0' - implementation 'com.android.support:recyclerview-v7:27.1.0' - implementation 'com.android.support:palette-v7:27.1.0' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.3' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-common:0.23.3' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.23.3' + implementation 'org.jetbrains.anko:anko-commons:0.10.5' + implementation 'androidx.appcompat:appcompat:1.0.0-beta01' + implementation 'androidx.recyclerview:recyclerview:1.0.0-beta01' + implementation 'androidx.palette:palette:1.0.0-beta01' compile project(':kotlinshaver') } diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Bitmap.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Bitmap.kt index 09d79af..602dabd 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Bitmap.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Bitmap.kt @@ -8,7 +8,7 @@ import android.graphics.BitmapFactory import android.graphics.Canvas import android.graphics.drawable.BitmapDrawable import android.graphics.drawable.Drawable -import android.support.annotation.DrawableRes +import androidx.annotation.DrawableRes /** * @author jieyi @@ -49,4 +49,4 @@ fun Bitmap.resizeImageAsRatio(aspectRatio: Double): Bitmap = also { it.width = (aspectRatio * it.height).toInt() else it.height = (it.width / aspectRatio).toInt() -} \ No newline at end of file +} diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Color.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Color.kt index 500e245..42c31fa 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Color.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Color.kt @@ -4,10 +4,10 @@ package com.devrapid.kotlinknifer import android.content.Context import android.graphics.Color -import android.support.annotation.ColorInt -import android.support.annotation.ColorRes -import android.support.v4.content.ContextCompat import android.view.View +import androidx.annotation.ColorInt +import androidx.annotation.ColorRes +import androidx.core.content.ContextCompat /** * diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Drawable.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Drawable.kt index 891d8fc..0847e9b 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Drawable.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Drawable.kt @@ -12,8 +12,8 @@ import android.renderscript.Allocation import android.renderscript.Element import android.renderscript.RenderScript import android.renderscript.ScriptIntrinsicBlur -import android.support.annotation.DrawableRes -import android.support.v7.graphics.Palette +import androidx.annotation.DrawableRes +import androidx.palette.graphics.Palette /** * @author jieyi diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Fragment.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Fragment.kt index 5672ea7..921d7a4 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Fragment.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/Fragment.kt @@ -2,12 +2,10 @@ package com.devrapid.kotlinknifer -import android.annotation.TargetApi -import android.app.Fragment -import android.app.FragmentManager -import android.app.FragmentTransaction -import android.os.Build import android.view.View +import androidx.fragment.app.Fragment +import androidx.fragment.app.FragmentManager +import androidx.fragment.app.FragmentTransaction import java.util.Stack /** @@ -70,21 +68,20 @@ inline fun FragmentManager.popAllFragment(fragmentStack: Stack? = null * Remove a specific [Fragment] from [FragmentManager]'s fragments. * NOTE: Don't mix this function with [popFragment] or [popAllFragment]. * - * @param manager [FragmentManager]. + * @param manager support v4 [FragmentManager]. */ inline fun Fragment.removeFrom(manager: FragmentManager) = manager.transaction { remove(this@removeFrom) } /** * Remove all fragments. */ -@TargetApi(Build.VERSION_CODES.O) inline fun FragmentManager.removeLastFragment() = fragments.lastOrNull()?.removeFrom(this) /** * Add a [Fragment] and hide the current presenting fragment. * NOTE: Don't mix this function with [popFragment] or [popAllFragment]. * - * @param manager [FragmentManager]. + * @param manager support v4 [FragmentManager]. */ inline fun Fragment.appendTo(manager: FragmentManager) = manager.transaction { hide(this@appendTo) @@ -94,7 +91,7 @@ inline fun Fragment.appendTo(manager: FragmentManager) = manager.transaction { /** * Hide a assigned [Fragment]. * - * @param manager [FragmentManager]. + * @param manager support v4 [FragmentManager]. */ inline fun Fragment.hideFrom(manager: FragmentManager) = manager.transaction { hide(this@hideFrom) } @@ -108,9 +105,4 @@ inline fun FragmentManager.transaction(block: FragmentTransaction.() -> Unit) = * Decorator between [beginTransaction] and [commitNow]. */ inline fun FragmentManager.transactionNow(block: FragmentTransaction.() -> Unit) = - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { - beginTransaction().apply(block).commitNow() - } - else { - TODO("VERSION.SDK_INT < N") - } \ No newline at end of file + beginTransaction().apply(block).commitNow() diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt index 6aba646..66f710a 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt @@ -6,17 +6,16 @@ import android.app.Activity import android.content.Context import android.graphics.Rect import android.os.Build -import android.support.annotation.ColorInt -import android.support.annotation.ColorRes -import android.support.v7.app.AlertDialog import android.view.View import android.view.View.GONE import android.view.View.INVISIBLE import android.view.View.VISIBLE -import android.view.ViewGroup import android.view.ViewTreeObserver import android.view.Window import android.view.WindowManager +import androidx.annotation.ColorInt +import androidx.annotation.ColorRes +import androidx.appcompat.app.AlertDialog import com.example.kotlinknifer.R /** @@ -31,11 +30,11 @@ inline fun View.resizeView(width: Int? = null, height: Int? = null) { layoutParams = newLayoutParams } -inline fun View.visiable() { +inline fun View.visible() { visibility = VISIBLE } -inline fun View.invisiable() { +inline fun View.invisible() { visibility = INVISIBLE } @@ -43,7 +42,7 @@ inline fun View.gone() { visibility = GONE } -inline fun View.isVisiable() = VISIBLE == visibility +inline fun View.isVisible() = VISIBLE == visibility fun View.waitForMeasure(func: (v: View, w: Int, h: Int) -> Unit) { if (0 < width && 0 < height) { @@ -115,4 +114,4 @@ internal inline fun Activity.setStatusBarColorBy(block: Window.() -> Unit) { else { TODO("Don't support the sdk version is less than 21 yet.") } -} \ No newline at end of file +} diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/WrapContentLinearLayoutManager.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/WrapContentLinearLayoutManager.kt index 411c20f..b6462c5 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/WrapContentLinearLayoutManager.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/WrapContentLinearLayoutManager.kt @@ -1,9 +1,9 @@ package com.devrapid.kotlinknifer.recyclerview import android.content.Context -import android.support.v7.widget.LinearLayoutManager -import android.support.v7.widget.RecyclerView import android.util.AttributeSet +import androidx.recyclerview.widget.LinearLayoutManager +import androidx.recyclerview.widget.RecyclerView import com.devrapid.kotlinknifer.loge import com.devrapid.kotlinknifer.logw @@ -29,4 +29,4 @@ class WrapContentLinearLayoutManager : LinearLayoutManager { loge(e) } } -} \ No newline at end of file +} diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/GridSpacingItemDecorator.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/GridSpacingItemDecorator.kt index 31320c8..fb6ca35 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/GridSpacingItemDecorator.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/GridSpacingItemDecorator.kt @@ -1,8 +1,8 @@ package com.devrapid.kotlinknifer.recyclerview.itemdecorator import android.graphics.Rect -import android.support.v7.widget.RecyclerView import android.view.View +import androidx.recyclerview.widget.RecyclerView /** * The item decorator for grid type recycler view. @@ -39,4 +39,4 @@ class GridSpacingItemDecorator(private val spanCount: Int, private val spacing: outRect.top = spacing } } -} \ No newline at end of file +} diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/HorizontalItemDecorator.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/HorizontalItemDecorator.kt index c057b52..ecbe7e4 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/HorizontalItemDecorator.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/HorizontalItemDecorator.kt @@ -1,8 +1,8 @@ package com.devrapid.kotlinknifer.recyclerview.itemdecorator import android.graphics.Rect -import android.support.v7.widget.RecyclerView import android.view.View +import androidx.recyclerview.widget.RecyclerView /** * The item decorator for horizontal recycler view. @@ -21,4 +21,4 @@ class HorizontalItemDecorator(private val space: Int) : RecyclerView.ItemDecorat else -> outRect.set(space / 2, space, space / 2, space) } } -} \ No newline at end of file +} diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/VerticalItemDecorator.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/VerticalItemDecorator.kt index 02c0d07..7c6ba78 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/VerticalItemDecorator.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/recyclerview/itemdecorator/VerticalItemDecorator.kt @@ -1,8 +1,8 @@ package com.devrapid.kotlinknifer.recyclerview.itemdecorator import android.graphics.Rect -import android.support.v7.widget.RecyclerView import android.view.View +import androidx.recyclerview.widget.RecyclerView /** * The item decorator for vertical type recycler view. @@ -24,4 +24,4 @@ class VerticalItemDecorator( else -> outRect.set(leftRight, topBottom / 2, leftRight, topBottom / 2) } } -} \ No newline at end of file +} diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/support/v4/Fragment.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/support/v4/Fragment.kt deleted file mode 100644 index 0277567..0000000 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/support/v4/Fragment.kt +++ /dev/null @@ -1,109 +0,0 @@ -@file:Suppress("NOTHING_TO_INLINE") - -package com.devrapid.kotlinknifer.support.v4 - -import android.support.v4.app.Fragment -import android.support.v4.app.FragmentManager -import android.support.v4.app.FragmentTransaction -import android.view.View -import com.devrapid.kotlinknifer.safePop -import java.util.Stack - -/** - * @author jieyi - * @since 2/15/17 - */ -/** - * Adds a [Fragment] to this manager's layout. - * Using the [replace] method, we couldn't obtain the fragments. There a way to get it is that - * obtaining fragment by [findFragmentByTag]. For convenient, I recommend that using a [Stack] - * for keeping fragments. - * - * @param containerViewId The container view to where add the fragment. - * @param fragment The fragment to be added. - * @param needBack Set that it can back to previous fragment. - * @param fragmentStack The stack for keeping the fragments. - * @param sharedElements Shared element objects and ids from layout xml [android:transitionName]. - * - * @return the identifier of this transaction's back stack entry. - */ -fun FragmentManager.addFragment( - containerViewId: Int, - fragment: Fragment, - needBack: Boolean = false, - fragmentStack: Stack? = null, - sharedElements: HashMap = hashMapOf(), - block: ((FragmentTransaction) -> Unit)? = null -) = transaction { - block?.invoke(this) - sharedElements.forEach { value -> addSharedElement(value.key, value.value) } - if (needBack) { - addToBackStack(fragment::class.java.simpleName) - fragmentStack?.push(fragment) - } - replace(containerViewId, fragment, fragment::class.java.simpleName) -} - -/** - * Pop a stack from the back stack. - * - * @param fragmentStack The stack for keeping the fragments. - * - * @return is success to pop a stack. - */ -inline fun FragmentManager.popFragment(fragmentStack: Stack? = null) = run { - fragmentStack?.safePop() - popBackStackImmediate() -} - -/** - * Clear all stacks from the back stack. - * - * @param fragmentStack The stack for keeping the fragments. - */ -inline fun FragmentManager.popAllFragment(fragmentStack: Stack? = null) { - while (true) if (!popFragment(fragmentStack)) break -} - -/** - * Remove a specific [Fragment] from [FragmentManager]'s fragments. - * NOTE: Don't mix this function with [popFragment] or [popAllFragment]. - * - * @param manager support v4 [FragmentManager]. - */ -inline fun Fragment.removeFrom(manager: FragmentManager) = manager.transaction { remove(this@removeFrom) } - -/** - * Remove all fragments. - */ -inline fun FragmentManager.removeLastFragment() = fragments.lastOrNull()?.removeFrom(this) - -/** - * Add a [Fragment] and hide the current presenting fragment. - * NOTE: Don't mix this function with [popFragment] or [popAllFragment]. - * - * @param manager support v4 [FragmentManager]. - */ -inline fun Fragment.appendTo(manager: FragmentManager) = manager.transaction { - hide(this@appendTo) - add(this@appendTo, this@appendTo::class.java.simpleName) -} - -/** - * Hide a assigned [Fragment]. - * - * @param manager support v4 [FragmentManager]. - */ -inline fun Fragment.hideFrom(manager: FragmentManager) = manager.transaction { hide(this@hideFrom) } - -/** - * Decorator between [beginTransaction] and [commit]. - */ -inline fun FragmentManager.transaction(block: FragmentTransaction.() -> Unit) = - beginTransaction().apply(block).commit() - -/** - * Decorator between [beginTransaction] and [commitNow]. - */ -inline fun FragmentManager.transactionNow(block: FragmentTransaction.() -> Unit) = - beginTransaction().apply(block).commitNow() \ No newline at end of file diff --git a/kotlinshaver/build.gradle b/kotlinshaver/build.gradle index 5347279..c655c8e 100644 --- a/kotlinshaver/build.gradle +++ b/kotlinshaver/build.gradle @@ -3,8 +3,8 @@ apply plugin: 'kotlin' dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5' - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-common:0.22.5' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.3' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-common:0.23.3' compile 'io.reactivex.rxjava2:rxkotlin:2.2.0' compile 'io.reactivex.rxjava2:rxjava:2.1.10' @@ -115,4 +115,4 @@ bintray { } } } -} \ No newline at end of file +} diff --git a/sample/build.gradle b/sample/build.gradle index 0950290..4665a06 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -2,15 +2,14 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { - compileSdkVersion 27 - buildToolsVersion "27.0.3" + compileSdkVersion 28 defaultConfig { applicationId "com.devrapid.utils" minSdkVersion 21 - targetSdkVersion 27 + targetSdkVersion 28 versionCode 1 versionName "1.0" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { @@ -21,15 +20,10 @@ android { } dependencies { - compile fileTree(include: ['*.jar'], dir: 'libs') - androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { - exclude group: 'com.android.support', module: 'support-annotations' - }) - implementation 'com.android.support:appcompat-v7:27.1.0' - implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta6' + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation 'androidx.appcompat:appcompat:1.0.0-beta01' + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha1' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation project(':kotlinknifer') // implementation "com.devrapid.jieyi:kotlinknifer:1.4.1" - - testImplementation 'junit:junit:4.12' } diff --git a/sample/src/main/java/com/devrapid/utils/MainActivity.kt b/sample/src/main/java/com/devrapid/utils/MainActivity.kt index 03e09ff..436a208 100644 --- a/sample/src/main/java/com/devrapid/utils/MainActivity.kt +++ b/sample/src/main/java/com/devrapid/utils/MainActivity.kt @@ -1,7 +1,7 @@ package com.devrapid.utils import android.os.Bundle -import android.support.v7.app.AppCompatActivity +import androidx.appcompat.app.AppCompatActivity class MainActivity: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) {