Skip to content

Commit

Permalink
app:update version to 2.5.156
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Jan 14, 2025
1 parent 55f98cd commit 80608f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private val hyperOSSDK: Float by lazy {
getProp("ro.mi.os.version.code").toFloatOrNull() ?: 0f
}
private val mSupportMiuiVersion: List<Float> by lazy {
mutableListOf(13.0f, 14.0f, 816.0f, 818.0f)
mutableListOf(14.0f, 816.0f, 818.0f)
}
private val mSupportHyperOsVersion: List<Float> by lazy {
mutableListOf(-1.0f, 1.0f, 2.0f)
Expand Down

0 comments on commit 80608f3

Please sign in to comment.