From 80608f35aac6ae2ff6cc9a6c1d83eea5a46ebb05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=83=E6=9F=92=E6=9F=92?= Date: Mon, 13 Jan 2025 22:16:04 +0800 Subject: [PATCH] =?UTF-8?q?app=EF=BC=9Aupdate=20version=20to=202.5.156?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle.kts | 2 +- .../main/helper/SupportVersionFragment.java | 20 ++++++++++++++----- .../hyperceiler/utils/devicesdk/SystemSDK.kt | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3892069d7..331c96504 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -97,7 +97,7 @@ android { minSdk = 33 targetSdk = 35 versionCode = getVersionCode() - versionName = "2.5.155" + versionName = "2.5.156" val sdf = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").apply { timeZone = TimeZone.getTimeZone("Asia/Shanghai") diff --git a/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/main/helper/SupportVersionFragment.java b/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/main/helper/SupportVersionFragment.java index f6c454671..dfb83d637 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/main/helper/SupportVersionFragment.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/ui/fragment/main/helper/SupportVersionFragment.java @@ -30,7 +30,7 @@ public class SupportVersionFragment extends SettingsPreferenceFragment { - private static final String mFSupportMiuiVersion = "13.0(130) / 13.1(130) / 13.2(130) / 14.0(140)"; + private static final String mFSupportMiuiVersion = "14.0(140)"; private static final String mFSupportHyperOsVersion = "1.0 / 2.0"; private static final String mFSupportAndroidVersion = "13(T, 33) / 14(U, 34) / 15(V, 35)"; private static final String mNSupportHyperOsVersion = "1.1"; @@ -58,12 +58,22 @@ private String stringBuilder() { .append("\n\n - MIUI ").append(mFSupportMiuiVersion) .append("\n - HyperOS ").append(mFSupportHyperOsVersion) .append("\n - Android ").append(mFSupportAndroidVersion); - if (!(Objects.equals(mNSupportHyperOsVersion, "") && Objects.equals(mNSupportAndroidVersion, ""))) { + + if (!mNSupportHyperOsVersion.isEmpty() || !mNSupportAndroidVersion.isEmpty()) { stringBuilder.append("\n\n").append(getString(R.string.help_support_version_desc_2)); - if (!Objects.equals(mNSupportHyperOsVersion, "")) stringBuilder.append("\n\n - HyperOS ").append(mNSupportHyperOsVersion); - if (!Objects.equals(mNSupportAndroidVersion, "")) stringBuilder.append("\n - Android ").append(mNSupportAndroidVersion); + if (!mNSupportHyperOsVersion.isEmpty()) { + stringBuilder.append("\n\n - HyperOS ").append(mNSupportHyperOsVersion); + } + if (!mNSupportAndroidVersion.isEmpty()) { + stringBuilder.append("\n - Android ").append(mNSupportAndroidVersion); + } } - stringBuilder.append("\n\n").append(isFullSupport() ? getString(R.string.help_support_version_desc_3) : getString(R.string.help_support_version_desc_4)); + + stringBuilder.append("\n\n") + .append(isFullSupport() ? + getString(R.string.help_support_version_desc_3) : + getString(R.string.help_support_version_desc_4)); + return stringBuilder.toString(); } } diff --git a/app/src/main/java/com/sevtinge/hyperceiler/utils/devicesdk/SystemSDK.kt b/app/src/main/java/com/sevtinge/hyperceiler/utils/devicesdk/SystemSDK.kt index 236458fb3..329dc2171 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/utils/devicesdk/SystemSDK.kt +++ b/app/src/main/java/com/sevtinge/hyperceiler/utils/devicesdk/SystemSDK.kt @@ -50,7 +50,7 @@ private val hyperOSSDK: Float by lazy { getProp("ro.mi.os.version.code").toFloatOrNull() ?: 0f } private val mSupportMiuiVersion: List by lazy { - mutableListOf(13.0f, 14.0f, 816.0f, 818.0f) + mutableListOf(14.0f, 816.0f, 818.0f) } private val mSupportHyperOsVersion: List by lazy { mutableListOf(-1.0f, 1.0f, 2.0f)