diff --git a/qmuidemo/build.gradle b/qmuidemo/build.gradle index f4effe673..4bba2e936 100644 --- a/qmuidemo/build.gradle +++ b/qmuidemo/build.gradle @@ -25,7 +25,7 @@ android { minSdkVersion parent.ext.minSdkVersion targetSdkVersion parent.ext.targetSdkVersion versionCode gitVersion - versionName "1.3.1" + versionName "1.4.0" } buildTypes { debug { 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 55752aabb..5ccc7a960 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java @@ -41,7 +41,8 @@ public class QDUpgradeManager { public static final int VERSION_1_1_12 = 1112; public static final int VERSION_1_2_0 = 120; public static final int VERSION_1_3_1 = 131; - private static final int sCurrentVersion = VERSION_1_3_1; + public static final int VERSION_1_4_0 = 140; + private static final int sCurrentVersion = VERSION_1_4_0; 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 122b2a777..83d4e6fc2 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java @@ -67,7 +67,16 @@ private void appendBlockSpace(Context context, SpannableStringBuilder builder) { public CharSequence getUpgradeWord(final Activity activity) { SpannableStringBuilder text = new SpannableStringBuilder(); - if(mNewVersion == QDUpgradeManager.VERSION_1_3_1){ + if(mNewVersion == QDUpgradeManager.VERSION_1_4_0){ + text.append("1. Updated arch library to 0.5.0. Provide annotation MaybeFirstIn and DefaultFirstFragment.\n"); + text.append("2. Updated lint library to 1.1.0 to Support Android Studio 3.4+.\n"); + text.append("3. Replaced parent theme of QMUI.Compat with Theme.AppCompat.DayNight.\n"); + text.append("4. Fixed issues: "); + final String[] issues = new String[]{ + "636", "642" + }; + handleIssues(activity, text, issues); + }else if(mNewVersion == QDUpgradeManager.VERSION_1_3_1){ text.append("1. "); addNewWidget(activity, text, "QMUIContinuousNestedScrollLayout", QDDataManager.getInstance().getDocUrl(QDContinuousNestedScrollFragment.class));