From ecdfab80f1fdf1b7374945626e8c0fa7fddb45c9 Mon Sep 17 00:00:00 2001 From: cgspine Date: Tue, 8 Dec 2020 00:25:34 +0800 Subject: [PATCH] release to 2.0.0-alpha11 --- gradle.properties | 6 +++--- .../com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java | 3 ++- .../com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java | 9 +++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index 79327701b..5855971e5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,10 +22,10 @@ android.useAndroidX=true android.enableJetifier=true GROUP=com.qmuiteam -QMUI_VERSION=2.0.0-alpha10 -QMUI_ARCH_VERSION=2.0.0-alpha10 +QMUI_VERSION=2.0.0-alpha11 +QMUI_ARCH_VERSION=2.0.0-alpha11 QMUI_LINT_VERSION = 1.1.0 QMUI_SKIN_MAKER_VERSION = 0.0.1 -QMUI_TYPE_VERSION = 0.0.1 +QMUI_TYPE_VERSION = 0.0.3 POM_GIT_URL=https://github.com/Tencent/QMUI_Android/ POM_SITE_URL=https://qmuiteam.com/android \ No newline at end of file diff --git a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java index 79b99c055..348e6abed 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java @@ -52,7 +52,8 @@ public class QDUpgradeManager { public static final int VERSION_2_0_0_alpha8 = -2008; public static final int VERSION_2_0_0_alpha9 = -2009; public static final int VERSION_2_0_0_alpha10 = -2010; - private static final int sCurrentVersion = VERSION_2_0_0_alpha10; + public static final int VERSION_2_0_0_alpha11 = -2011; + private static final int sCurrentVersion = VERSION_2_0_0_alpha11; private static QDUpgradeManager sQDUpgradeManager = null; private UpgradeTipTask mUpgradeTipTask; diff --git a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java index 83c19af40..ab0e26f13 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java @@ -19,11 +19,12 @@ import android.app.Activity; import android.content.Context; import android.content.Intent; -import androidx.core.content.ContextCompat; import android.text.SpannableStringBuilder; import android.text.Spanned; import android.view.View; +import androidx.core.content.ContextCompat; + import com.qmuiteam.qmui.skin.QMUISkinManager; import com.qmuiteam.qmui.span.QMUIBlockSpaceSpan; import com.qmuiteam.qmui.span.QMUITouchableSpan; @@ -70,7 +71,11 @@ private void appendBlockSpace(Context context, SpannableStringBuilder builder) { public CharSequence getUpgradeWord(final Activity activity) { SpannableStringBuilder text = new SpannableStringBuilder(); - if(mNewVersion == QDUpgradeManager.VERSION_2_0_0_alpha10){ + if(mNewVersion == QDUpgradeManager.VERSION_2_0_0_alpha11){ + text.append("1. Feature: Added a new widget: QMUINavFragment.\n"); + text.append("2. Remove LazyLifecycle, use maxLifecycle for replacement.\n"); + text.append("3. Some bug fixes.\n"); + }else if(mNewVersion == QDUpgradeManager.VERSION_2_0_0_alpha10){ text.append("1. Feature: Added a new widget: QMUISchemeHandler.\n"); text.append("2. Feature: Supported to remove section title if only one section in QMUIStickSectionAdapter.\n"); text.append("3. Feature: Supported to add a QMUISkinApplyListener to View.\n");