diff --git a/app/build.gradle b/app/build.gradle index 00631571..b1cee977 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,11 +22,11 @@ android { } dependencies { - compile 'com.alibaba:fastjson:1.1.55.android' - compile project(':library:WheelPicker') - compile project(':library:FilePicker') - compile project(':library:ColorPicker') - compile project(':library:MultiplePicker') + implementation 'com.alibaba:fastjson:1.1.55.android' + implementation project(':library:WheelPicker') + implementation project(':library:FilePicker') + implementation project(':library:ColorPicker') + implementation project(':library:MultiplePicker') // compile files('libs/AndroidPicker-1.5.6.jar') // compile('cn.qqtheme.framework:WheelPicker:latest.release') { // exclude group: 'com.android.support' diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f522ddca..e29cf991 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -46,8 +46,5 @@ *; } --dontwarn android.support.** --keep class android.support.v4.** { *; } - #不混淆地址选择器的实体类,以便fastjson能正常解析 -keep class cn.qqtheme.framework.entity.** { *;} diff --git a/app/src/main/java/cn/qqtheme/androidpicker/AddressInitTask.java b/app/src/main/java/cn/qqtheme/androidpicker/AddressInitTask.java index c6a92ec7..aeb6d54c 100644 --- a/app/src/main/java/cn/qqtheme/androidpicker/AddressInitTask.java +++ b/app/src/main/java/cn/qqtheme/androidpicker/AddressInitTask.java @@ -3,12 +3,12 @@ import android.app.Activity; import android.app.ProgressDialog; import android.os.AsyncTask; -import android.support.annotation.WorkerThread; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.List; +import androidx.annotation.WorkerThread; import cn.qqtheme.framework.entity.City; import cn.qqtheme.framework.entity.County; import cn.qqtheme.framework.entity.Province; diff --git a/app/src/main/java/cn/qqtheme/androidpicker/BaseActivity.java b/app/src/main/java/cn/qqtheme/androidpicker/BaseActivity.java index 550bf5b1..127c92ab 100644 --- a/app/src/main/java/cn/qqtheme/androidpicker/BaseActivity.java +++ b/app/src/main/java/cn/qqtheme/androidpicker/BaseActivity.java @@ -9,11 +9,6 @@ import android.os.Build; import android.os.Bundle; import android.os.PersistableBundle; -import android.support.annotation.CallSuper; -import android.support.annotation.IdRes; -import android.support.annotation.LayoutRes; -import android.support.annotation.NonNull; -import android.support.v4.app.FragmentActivity; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; @@ -24,6 +19,11 @@ import java.util.ArrayList; import java.util.List; +import androidx.annotation.CallSuper; +import androidx.annotation.IdRes; +import androidx.annotation.LayoutRes; +import androidx.annotation.NonNull; +import androidx.fragment.app.FragmentActivity; import cn.qqtheme.framework.util.LogUtils; /** diff --git a/app/src/main/java/cn/qqtheme/androidpicker/CustomHeaderAndFooterPicker.java b/app/src/main/java/cn/qqtheme/androidpicker/CustomHeaderAndFooterPicker.java index 19ccaebf..10513cf7 100644 --- a/app/src/main/java/cn/qqtheme/androidpicker/CustomHeaderAndFooterPicker.java +++ b/app/src/main/java/cn/qqtheme/androidpicker/CustomHeaderAndFooterPicker.java @@ -4,13 +4,13 @@ import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.app.Activity; -import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.animation.AccelerateInterpolator; import android.widget.Button; import android.widget.TextView; +import androidx.annotation.Nullable; import cn.qqtheme.framework.picker.OptionPicker; import cn.qqtheme.framework.widget.WheelView; diff --git a/app/src/main/java/cn/qqtheme/androidpicker/MainActivity.java b/app/src/main/java/cn/qqtheme/androidpicker/MainActivity.java index 3ae3569b..d5d89328 100644 --- a/app/src/main/java/cn/qqtheme/androidpicker/MainActivity.java +++ b/app/src/main/java/cn/qqtheme/androidpicker/MainActivity.java @@ -3,13 +3,13 @@ import android.content.Intent; import android.graphics.Color; import android.net.Uri; -import android.support.annotation.NonNull; -import android.support.annotation.Nullable; import android.view.Gravity; import android.view.View; import android.widget.TextView; import android.widget.Toast; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import com.alibaba.fastjson.JSON; import java.util.ArrayList; diff --git a/app/src/main/java/cn/qqtheme/androidpicker/StatusBarUtil.java b/app/src/main/java/cn/qqtheme/androidpicker/StatusBarUtil.java index f84350a7..44c1f230 100644 --- a/app/src/main/java/cn/qqtheme/androidpicker/StatusBarUtil.java +++ b/app/src/main/java/cn/qqtheme/androidpicker/StatusBarUtil.java @@ -6,9 +6,6 @@ import android.content.Context; import android.graphics.Color; import android.os.Build; -import android.support.annotation.ColorInt; -import android.support.annotation.IdRes; -import android.support.v4.widget.DrawerLayout; import android.view.View; import android.view.ViewGroup; import android.view.Window; @@ -17,6 +14,9 @@ import java.lang.reflect.Field; +import androidx.annotation.ColorInt; +import androidx.annotation.IdRes; +import androidx.drawerlayout.widget.DrawerLayout; import cn.qqtheme.framework.util.LogUtils; /** diff --git a/build.gradle b/build.gradle index d9161387..b125521c 100644 --- a/build.gradle +++ b/build.gradle @@ -7,9 +7,10 @@ buildscript { url 'https://dl.google.com/dl/android/maven2/' name 'Google' } + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:4.0.0' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' } } @@ -95,8 +96,8 @@ subprojects { } dependencies { - compile "com.android.support:support-v4:${ANDROID_SUPPORT_VERSION}" - compile "com.android.support:support-annotations:${ANDROID_SUPPORT_VERSION}" + implementation "androidx.legacy:legacy-support-v4:1.0.0" + implementation "androidx.annotation:annotation:1.2.0-alpha01" } } diff --git a/gradle.properties b/gradle.properties index 20a4e242..e8e39acd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,19 +9,19 @@ org.gradle.daemon=true org.gradle.configureondemand=true #项目路径含中文需加上此句 -com.android.build.gradle.overridePathCheck=true +android.overridePathCheck=true #支持NDK #android.useDeprecatedNdk=true #下面定义一些常量供gradle脚本使用 -VERSION_NAME=1.5.6 -VERSION_CODE=156 -COMPILE_SDK_VERSION=25 +VERSION_NAME=2.0.0 +VERSION_CODE=200 +COMPILE_SDK_VERSION=28 MIN_SDK_VERSION=14 #安卓6.0开始(API23+),需要动态申请权限 -TARGET_SDK_VERSION=22 -BUILD_TOOL_VERSION=25.0.1 +TARGET_SDK_VERSION=28 +BUILD_TOOL_VERSION=28.0.3 ANDROID_SUPPORT_VERSION=25.0.1 GROUP=cn.qqtheme.framework SITE_URL=http://qqtheme.cn @@ -29,4 +29,8 @@ GIT_URL=https://github.com/gzu-liyujiang/AndroidPicker.git ISSUE_URL=https://github.com/gzu-liyujiang/AndroidPicker/issues DEVELOPER_ID=liyujiang-gzu DEVELOPER_NAME=liyujiang -DEVELOPER_EMAIL=liyujiang_tk@yeah.net \ No newline at end of file +DEVELOPER_EMAIL=liyujiang_tk@yeah.net + +#androidx +android.useAndroidX=true +android.enableJetifier=true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 91c9dac8..404db3df 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,6 @@ -#Sat Jun 24 17:00:52 CST 2017 +#Thu Oct 15 09:40:40 CST 2020 distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip -#distributionUrl=file\:/F:/android/sdk/gradle-3.3-all.zip +zipStoreBase=GRADLE_USER_HOME diff --git a/library/ColorPicker/build.gradle b/library/ColorPicker/build.gradle index 0a6219a8..1721fa5b 100644 --- a/library/ColorPicker/build.gradle +++ b/library/ColorPicker/build.gradle @@ -7,7 +7,7 @@ ext { } dependencies { - compile project(":library:Common") + api project(":library:Common") } android { diff --git a/library/ColorPicker/src/main/java/cn/qqtheme/framework/picker/ColorPicker.java b/library/ColorPicker/src/main/java/cn/qqtheme/framework/picker/ColorPicker.java index 2b21e295..b407afbc 100644 --- a/library/ColorPicker/src/main/java/cn/qqtheme/framework/picker/ColorPicker.java +++ b/library/ColorPicker/src/main/java/cn/qqtheme/framework/picker/ColorPicker.java @@ -3,9 +3,6 @@ import android.app.Activity; import android.graphics.Color; import android.graphics.drawable.Drawable; -import android.support.annotation.ColorInt; -import android.support.annotation.IdRes; -import android.support.annotation.NonNull; import android.view.Gravity; import android.view.View; import android.widget.LinearLayout; @@ -13,6 +10,9 @@ import java.util.Locale; +import androidx.annotation.ColorInt; +import androidx.annotation.IdRes; +import androidx.annotation.NonNull; import cn.qqtheme.framework.icons.ColorPickerIcon; import cn.qqtheme.framework.popup.ConfirmPopup; import cn.qqtheme.framework.util.ConvertUtils; diff --git a/library/ColorPicker/src/main/java/cn/qqtheme/framework/widget/StrokeTextView.java b/library/ColorPicker/src/main/java/cn/qqtheme/framework/widget/StrokeTextView.java index 6cadf401..fcae1cb1 100644 --- a/library/ColorPicker/src/main/java/cn/qqtheme/framework/widget/StrokeTextView.java +++ b/library/ColorPicker/src/main/java/cn/qqtheme/framework/widget/StrokeTextView.java @@ -5,13 +5,13 @@ import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; -import android.support.annotation.ColorInt; import android.text.TextPaint; import android.util.AttributeSet; import android.widget.TextView; import java.lang.reflect.Field; +import androidx.annotation.ColorInt; import cn.qqtheme.framework.util.ConvertUtils; /** diff --git a/library/Common/src/main/java/cn/qqtheme/framework/popup/BasicPopup.java b/library/Common/src/main/java/cn/qqtheme/framework/popup/BasicPopup.java index 8ec0a608..98665613 100644 --- a/library/Common/src/main/java/cn/qqtheme/framework/popup/BasicPopup.java +++ b/library/Common/src/main/java/cn/qqtheme/framework/popup/BasicPopup.java @@ -6,8 +6,6 @@ import android.content.DialogInterface; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; -import android.support.annotation.CallSuper; -import android.support.annotation.StyleRes; import android.util.DisplayMetrics; import android.view.Gravity; import android.view.KeyEvent; @@ -16,6 +14,7 @@ import android.view.Window; import android.widget.FrameLayout; +import androidx.annotation.StyleRes; import cn.qqtheme.framework.util.LogUtils; import cn.qqtheme.framework.util.ScreenUtils; diff --git a/library/Common/src/main/java/cn/qqtheme/framework/popup/ConfirmPopup.java b/library/Common/src/main/java/cn/qqtheme/framework/popup/ConfirmPopup.java index a104aeb9..d8d73cd3 100644 --- a/library/Common/src/main/java/cn/qqtheme/framework/popup/ConfirmPopup.java +++ b/library/Common/src/main/java/cn/qqtheme/framework/popup/ConfirmPopup.java @@ -2,11 +2,6 @@ import android.app.Activity; import android.graphics.Color; -import android.support.annotation.ColorInt; -import android.support.annotation.IntRange; -import android.support.annotation.NonNull; -import android.support.annotation.Nullable; -import android.support.annotation.StringRes; import android.text.TextUtils; import android.view.Gravity; import android.view.View; @@ -15,6 +10,7 @@ import android.widget.RelativeLayout; import android.widget.TextView; +import androidx.annotation.*; import cn.qqtheme.framework.util.ConvertUtils; /** diff --git a/library/Common/src/main/java/cn/qqtheme/framework/util/CompatUtils.java b/library/Common/src/main/java/cn/qqtheme/framework/util/CompatUtils.java index 828e375e..c173939d 100644 --- a/library/Common/src/main/java/cn/qqtheme/framework/util/CompatUtils.java +++ b/library/Common/src/main/java/cn/qqtheme/framework/util/CompatUtils.java @@ -4,8 +4,8 @@ import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Build; -import android.support.annotation.DrawableRes; import android.view.View; +import androidx.annotation.DrawableRes; /** * 兼容旧版&新版 diff --git a/library/Common/src/main/java/cn/qqtheme/framework/util/ConvertUtils.java b/library/Common/src/main/java/cn/qqtheme/framework/util/ConvertUtils.java index b0005ebd..62ebc835 100644 --- a/library/Common/src/main/java/cn/qqtheme/framework/util/ConvertUtils.java +++ b/library/Common/src/main/java/cn/qqtheme/framework/util/ConvertUtils.java @@ -19,12 +19,12 @@ import android.os.Environment; import android.provider.DocumentsContract; import android.provider.MediaStore; -import android.support.annotation.ColorInt; -import android.support.annotation.FloatRange; import android.text.TextUtils; import android.view.View; import android.widget.ListView; import android.widget.ScrollView; +import androidx.annotation.ColorInt; +import androidx.annotation.FloatRange; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; diff --git a/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java b/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java index 8d916b2c..532313b5 100644 --- a/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java +++ b/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java @@ -1,7 +1,7 @@ package cn.qqtheme.framework.util; -import android.support.annotation.IntDef; -import android.support.annotation.NonNull; +import androidx.annotation.IntDef; +import androidx.annotation.NonNull; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/library/FilePicker/build.gradle b/library/FilePicker/build.gradle index 33e04889..eda15d6a 100644 --- a/library/FilePicker/build.gradle +++ b/library/FilePicker/build.gradle @@ -7,5 +7,5 @@ ext { } dependencies { - compile project(":library:Common") + api project(":library:Common") } diff --git a/library/FilePicker/src/main/java/cn/qqtheme/framework/drawable/StateColorDrawable.java b/library/FilePicker/src/main/java/cn/qqtheme/framework/drawable/StateColorDrawable.java index e69b4f9b..86f80a21 100644 --- a/library/FilePicker/src/main/java/cn/qqtheme/framework/drawable/StateColorDrawable.java +++ b/library/FilePicker/src/main/java/cn/qqtheme/framework/drawable/StateColorDrawable.java @@ -2,7 +2,7 @@ import android.graphics.Color; import android.graphics.drawable.ColorDrawable; -import android.support.annotation.ColorInt; +import androidx.annotation.ColorInt; /** * 按下状态与普通状态下显示不同的颜色 diff --git a/library/FilePicker/src/main/java/cn/qqtheme/framework/picker/FilePicker.java b/library/FilePicker/src/main/java/cn/qqtheme/framework/picker/FilePicker.java index 35fe3f10..43f35edb 100644 --- a/library/FilePicker/src/main/java/cn/qqtheme/framework/picker/FilePicker.java +++ b/library/FilePicker/src/main/java/cn/qqtheme/framework/picker/FilePicker.java @@ -4,9 +4,6 @@ import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; -import android.support.annotation.IntDef; -import android.support.annotation.NonNull; -import android.support.annotation.Nullable; import android.view.Gravity; import android.view.View; import android.widget.AdapterView; @@ -17,6 +14,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import androidx.annotation.IntDef; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import cn.qqtheme.framework.adapter.FileAdapter; import cn.qqtheme.framework.adapter.PathAdapter; import cn.qqtheme.framework.entity.FileItem; diff --git a/library/FilePicker/src/main/java/cn/qqtheme/framework/util/FileUtils.java b/library/FilePicker/src/main/java/cn/qqtheme/framework/util/FileUtils.java index ba029e9c..8e65379d 100644 --- a/library/FilePicker/src/main/java/cn/qqtheme/framework/util/FileUtils.java +++ b/library/FilePicker/src/main/java/cn/qqtheme/framework/util/FileUtils.java @@ -1,7 +1,7 @@ package cn.qqtheme.framework.util; -import android.support.annotation.IntDef; import android.webkit.MimeTypeMap; +import androidx.annotation.IntDef; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; diff --git a/library/ImagePicker/build.gradle b/library/ImagePicker/build.gradle index f6893883..bc01238e 100644 --- a/library/ImagePicker/build.gradle +++ b/library/ImagePicker/build.gradle @@ -7,6 +7,6 @@ ext { } dependencies { - compile 'com.squareup.picasso:picasso:latest.release' - compile project(":library:Common") + implementation 'com.squareup.picasso:picasso:latest.release' + implementation project(":library:Common") } diff --git a/library/MultiplePicker/build.gradle b/library/MultiplePicker/build.gradle index e1a94ee0..f40c5cd1 100644 --- a/library/MultiplePicker/build.gradle +++ b/library/MultiplePicker/build.gradle @@ -7,5 +7,5 @@ ext { } dependencies { - compile project(":library:Common") + api project(":library:Common") } diff --git a/library/MultiplePicker/src/main/java/cn/qqtheme/framework/picker/MultiplePicker.java b/library/MultiplePicker/src/main/java/cn/qqtheme/framework/picker/MultiplePicker.java index 659bf97f..f19bbe67 100644 --- a/library/MultiplePicker/src/main/java/cn/qqtheme/framework/picker/MultiplePicker.java +++ b/library/MultiplePicker/src/main/java/cn/qqtheme/framework/picker/MultiplePicker.java @@ -1,7 +1,6 @@ package cn.qqtheme.framework.picker; import android.app.Activity; -import android.support.annotation.NonNull; import android.view.Gravity; import android.widget.CheckBox; import android.widget.LinearLayout; @@ -12,6 +11,7 @@ import java.util.Arrays; import java.util.List; +import androidx.annotation.NonNull; import cn.qqtheme.framework.popup.ConfirmPopup; /** diff --git a/library/WheelPicker/build.gradle b/library/WheelPicker/build.gradle index e7f07b5a..8cb58a27 100644 --- a/library/WheelPicker/build.gradle +++ b/library/WheelPicker/build.gradle @@ -7,5 +7,5 @@ ext { } dependencies { - compile project(":library:Common") + api project(":library:Common") } diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/AddressPicker.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/AddressPicker.java index e75e23d0..1cc47454 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/AddressPicker.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/AddressPicker.java @@ -1,8 +1,6 @@ package cn.qqtheme.framework.picker; import android.app.Activity; -import android.support.annotation.NonNull; -import android.support.annotation.Nullable; import android.view.Gravity; import android.view.View; import android.widget.LinearLayout; @@ -10,6 +8,8 @@ import java.util.ArrayList; import java.util.List; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import cn.qqtheme.framework.entity.City; import cn.qqtheme.framework.entity.County; import cn.qqtheme.framework.entity.Province; diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/CarNumberPicker.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/CarNumberPicker.java index 20390011..25120f10 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/CarNumberPicker.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/CarNumberPicker.java @@ -1,7 +1,7 @@ package cn.qqtheme.framework.picker; import android.app.Activity; -import android.support.annotation.NonNull; +import androidx.annotation.NonNull; import java.util.ArrayList; import java.util.List; diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DateTimePicker.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DateTimePicker.java index f1122e6c..6a7a7eb4 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DateTimePicker.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DateTimePicker.java @@ -1,8 +1,8 @@ package cn.qqtheme.framework.picker; import android.app.Activity; -import android.support.annotation.IntDef; -import android.support.annotation.NonNull; +import androidx.annotation.IntDef; +import androidx.annotation.NonNull; import android.text.TextUtils; import android.view.Gravity; import android.view.View; diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DoublePicker.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DoublePicker.java index 11481008..b64187d8 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DoublePicker.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/DoublePicker.java @@ -1,7 +1,7 @@ package cn.qqtheme.framework.picker; import android.app.Activity; -import android.support.annotation.NonNull; +import androidx.annotation.NonNull; import android.text.TextUtils; import android.view.Gravity; import android.view.View; diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/LinkagePicker.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/LinkagePicker.java index c3fb6f9b..0d5e7953 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/LinkagePicker.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/LinkagePicker.java @@ -1,9 +1,9 @@ package cn.qqtheme.framework.picker; import android.app.Activity; -import android.support.annotation.FloatRange; -import android.support.annotation.NonNull; -import android.support.annotation.Nullable; +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import android.text.TextUtils; import android.view.Gravity; import android.view.View; diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/SinglePicker.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/SinglePicker.java index 921fc6f2..ef1f8065 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/SinglePicker.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/SinglePicker.java @@ -1,7 +1,7 @@ package cn.qqtheme.framework.picker; import android.app.Activity; -import android.support.annotation.NonNull; +import androidx.annotation.NonNull; import android.text.TextUtils; import android.view.Gravity; import android.view.View; diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/WheelPicker.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/WheelPicker.java index 785a0325..a636ce06 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/WheelPicker.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/WheelPicker.java @@ -2,10 +2,10 @@ import android.app.Activity; import android.graphics.Typeface; -import android.support.annotation.ColorInt; -import android.support.annotation.FloatRange; -import android.support.annotation.IntRange; -import android.support.annotation.Nullable; +import androidx.annotation.ColorInt; +import androidx.annotation.FloatRange; +import androidx.annotation.IntRange; +import androidx.annotation.Nullable; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; diff --git a/library/WheelPicker/src/main/java/cn/qqtheme/framework/widget/WheelView.java b/library/WheelPicker/src/main/java/cn/qqtheme/framework/widget/WheelView.java index c9526cc0..1c279ab3 100644 --- a/library/WheelPicker/src/main/java/cn/qqtheme/framework/widget/WheelView.java +++ b/library/WheelPicker/src/main/java/cn/qqtheme/framework/widget/WheelView.java @@ -8,9 +8,6 @@ import android.graphics.Typeface; import android.os.Handler; import android.os.Message; -import android.support.annotation.ColorInt; -import android.support.annotation.FloatRange; -import android.support.annotation.IntRange; import android.text.TextUtils; import android.util.AttributeSet; import android.view.GestureDetector; @@ -29,6 +26,9 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; +import androidx.annotation.ColorInt; +import androidx.annotation.FloatRange; +import androidx.annotation.IntRange; import cn.qqtheme.framework.entity.WheelItem; import cn.qqtheme.framework.util.ConvertUtils; import cn.qqtheme.framework.util.LogUtils; diff --git a/publish.gradle b/publish.gradle index a3e6adad..c252a802 100644 --- a/publish.gradle +++ b/publish.gradle @@ -112,10 +112,6 @@ publishing { } } -afterEvaluate { - publishing.publications.MyPublication.artifact(bundleRelease) -} - bintray { // You should configure "bintray.user" and "bintray.apiKey" in the gradle.properties // that in gradle cache directory (~/.gradle/gradle.properties)