diff --git a/arch/build.gradle b/arch/build.gradle index e82a14bd3..ac93ae092 100644 --- a/arch/build.gradle +++ b/arch/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' group = 'com.qmuiteam' -version = "0.4.0" +version = "0.5.0" android { diff --git a/qmui/build.gradle b/qmui/build.gradle index cc06e62df..16ada825a 100644 --- a/qmui/build.gradle +++ b/qmui/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' group = 'com.qmuiteam' -version = "1.2.0" // QMUI 发布到 bintray 的版本号 +version = "1.3.1" // QMUI 发布到 bintray 的版本号 //noinspection GroovyMissingReturnStatement android { diff --git a/qmuidemo/build.gradle b/qmuidemo/build.gradle index d6baaff7a..7f6d34bcf 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.2.0" + versionName "1.3.1" } buildTypes { debug { diff --git a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/fragment/lab/QDContinuousNestedScrollFragment.java b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/fragment/lab/QDContinuousNestedScrollFragment.java index 850f7b829..737389be7 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/fragment/lab/QDContinuousNestedScrollFragment.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/fragment/lab/QDContinuousNestedScrollFragment.java @@ -35,7 +35,8 @@ @Widget(group = Group.Lab, widgetClass = QMUIContinuousNestedScrollLayout.class, - iconRes = R.mipmap.icon_grid_in_progress) + iconRes = R.mipmap.icon_grid_in_progress, + docUrl ="https://github.com/Tencent/QMUI_Android/wiki/QMUIContinuousNestedScrollLayout") public class QDContinuousNestedScrollFragment extends BaseFragment { @BindView(R.id.topbar) 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 654a24de2..55752aabb 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/QDUpgradeManager.java @@ -40,7 +40,8 @@ public class QDUpgradeManager { public static final int VERSION_1_1_11 = 1111; public static final int VERSION_1_1_12 = 1112; public static final int VERSION_1_2_0 = 120; - private static final int sCurrentVersion = VERSION_1_2_0; + public static final int VERSION_1_3_1 = 131; + private static final int sCurrentVersion = VERSION_1_3_1; 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 5d0b75df6..383219633 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/manager/UpgradeTipTask.java @@ -32,6 +32,7 @@ import com.qmuiteam.qmuidemo.QDMainActivity; import com.qmuiteam.qmuidemo.R; import com.qmuiteam.qmuidemo.fragment.components.section.QDSectionLayoutFragment; +import com.qmuiteam.qmuidemo.fragment.lab.QDContinuousNestedScrollFragment; public class UpgradeTipTask implements UpgradeTask { private final int mOldVersion; @@ -66,7 +67,25 @@ private void appendBlockSpace(Context context, SpannableStringBuilder builder) { public CharSequence getUpgradeWord(final Activity activity) { SpannableStringBuilder text = new SpannableStringBuilder(); - if (mNewVersion == QDUpgradeManager.VERSION_1_2_0) { + if(mNewVersion == QDUpgradeManager.VERSION_1_3_1){ + text.append("1. "); + addNewWidget(activity, text, "QMUIContinuousNestedScrollLayout", + QDDataManager.getInstance().getDocUrl(QDContinuousNestedScrollFragment.class)); + text.append("\n"); + text.append("2. "); + addNewWidget(activity, text, "QMUIRadiusImageView2", + QDDataManager.getInstance().getDocUrl(QDContinuousNestedScrollFragment.class)); + text.append("Implemented with QMUILayout.\n"); + text.append("3. Updated arch library to 0.5.0. Fixed issues on new androidx version.\n"); + text.append("4. Features: QMUIQQFaceView supports paragraph space when ellipsize at the end.\n"); + text.append("5. Features: QMUITabSegment supports space weight.\n"); + text.append("6. Features: QMUIPullRefreshLayout added method setRefreshDirectly().\n"); + text.append("7. Fixed issues: "); + final String[] issues = new String[]{ + "562", "563", "563" + }; + handleIssues(activity, text, issues); + } else if (mNewVersion == QDUpgradeManager.VERSION_1_2_0) { text.append("1. "); addNewWidget(activity, text, "QMUIStickySectionLayout", QDDataManager.getInstance().getDocUrl(QDSectionLayoutFragment.class));