更新版本号至 1.6.6

This commit is contained in:
LittleTurtle2333
2022-06-16 16:26:30 +08:00
parent 693b707922
commit 3cd3b87707
8 changed files with 84 additions and 92 deletions

View File

@@ -12,8 +12,8 @@ android {
applicationId = "com.lt2333.simplicitytools" applicationId = "com.lt2333.simplicitytools"
minSdk = 31 minSdk = 31
targetSdk = 32 targetSdk = 32
versionCode = 66 versionCode = 67
versionName = "1.6.5" versionName = "1.6.6"
} }
buildTypes { buildTypes {
@@ -59,4 +59,5 @@ dependencies {
val appCenterSdkVersion = "4.4.3" val appCenterSdkVersion = "4.4.3"
implementation("com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}") implementation("com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}")
implementation("com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}") implementation("com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}")
implementation("androidx.core:core-splashscreen:1.0.0-rc01")
} }

View File

@@ -300,6 +300,10 @@ class SettingsActivity : MIUIActivity() {
onClickListener = { showFragment("hide_icon") } onClickListener = { showFragment("hide_icon") }
) )
) )
TextWithSwitch(
TextV(resId = R.string.show_wifi_standard),
SwitchV("show_wifi_standard")
)
val customMobileTypeTextBinding = GetDataBinding(object : DefValue { val customMobileTypeTextBinding = GetDataBinding(object : DefValue {
override fun getValue(): Any { override fun getValue(): Any {
return safeSP.getBoolean("custom_mobile_type_text_switch", false) return safeSP.getBoolean("custom_mobile_type_text_switch", false)
@@ -362,10 +366,6 @@ class SettingsActivity : MIUIActivity() {
2 -> view.visibility = if (data as Boolean) View.VISIBLE else View.GONE 2 -> view.visibility = if (data as Boolean) View.VISIBLE else View.GONE
} }
} }
TextWithSwitch(
TextV(resId = R.string.show_wifi_standard),
SwitchV("show_wifi_standard")
)
TextSummaryWithSwitch( TextSummaryWithSwitch(
TextSummaryV( TextSummaryV(
textId = R.string.big_mobile_type_icon textId = R.string.big_mobile_type_icon

View File

@@ -7,8 +7,7 @@ import com.lt2333.simplicitytools.util.xposed.base.HookRegister
object ForceSupportSendApp : HookRegister() { object ForceSupportSendApp : HookRegister() {
override fun init() { override fun init() = hasEnable("force_support_send_app") {
hasEnable("force_support_send_app") {
findMethod("com.xiaomi.mirror.synergy.MiuiSynergySdk") { findMethod("com.xiaomi.mirror.synergy.MiuiSynergySdk") {
name == "isSupportSendApp" name == "isSupportSendApp"
}.hookAfter { }.hookAfter {
@@ -16,5 +15,3 @@ object ForceSupportSendApp : HookRegister() {
} }
} }
} }
}

View File

@@ -17,8 +17,7 @@ import com.lt2333.simplicitytools.view.WeatherView
object RearDisplayWeather : HookRegister() { object RearDisplayWeather : HookRegister() {
override fun init() { override fun init() = hasEnable("rear_show_weather") {
hasEnable("rear_show_weather") {
findMethod("com.xiaomi.misubscreenui.light.aod.view.VerticalClockView") { findMethod("com.xiaomi.misubscreenui.light.aod.view.VerticalClockView") {
name == "onFinishInflate" name == "onFinishInflate"
}.hookAfter { }.hookAfter {
@@ -101,5 +100,3 @@ object RearDisplayWeather : HookRegister() {
} }
} }
} }
}

View File

@@ -29,9 +29,8 @@ object ControlCenterWeather : HookRegister() {
val context = viewGroup.context val context = viewGroup.context
// MIUI编译时间大于 2022-03-12 00:00:00 且为内测版 // MIUI编译时间大于 2022-03-12 00:00:00 且为内测版
if (SystemProperties[context, "ro.build.date.utc"]!!.toInt() >= 1647014400 && !SystemProperties[context, "ro.build.version.incremental"]!!.endsWith( if (SystemProperties[context, "ro.build.date.utc"]!!.toInt() >= 1647014400 &&
"DEV" !SystemProperties[context, "ro.build.version.incremental"]!!.endsWith("XM")
) && !SystemProperties[context, "ro.build.version.incremental"]!!.endsWith("XM")
) { ) {
//获取原组件 //获取原组件
val big_time_ID = val big_time_ID =

View File

@@ -23,5 +23,4 @@ object HideStatusBarNetworkSpeedSecond : HookRegister() {
} }
} }
} }
} }

View File

@@ -29,9 +29,8 @@ object NotificationWeather : HookRegister() {
val context = viewGroup.context val context = viewGroup.context
// MIUI编译时间大于 2022-03-12 00:00:00 且为内测版 // MIUI编译时间大于 2022-03-12 00:00:00 且为内测版
if (SystemProperties[context, "ro.build.date.utc"]!!.toInt() >= 1647014400 && !SystemProperties[context, "ro.build.version.incremental"]!!.endsWith( if (SystemProperties[context, "ro.build.date.utc"]!!.toInt() >= 1647014400 &&
"DEV" !SystemProperties[context, "ro.build.version.incremental"]!!.endsWith("XM")
) && !SystemProperties[context, "ro.build.version.incremental"]!!.endsWith("XM")
) { ) {
//获取原组件 //获取原组件
val big_time_ID = val big_time_ID =