From abffc4d853b1941e781ee2ad2fa2316ff796f572 Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Mon, 4 Apr 2022 13:54:42 +0800 Subject: [PATCH] Update version to 2.35 --- README.md | 2 +- app/build.gradle | 2 +- app/src/main/java/com/fankes/miui/notify/const/Const.kt | 2 +- .../java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt | 4 ++-- build.gradle | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dfa94c7..370ec09 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Blank](https://img.shields.io/badge/build-pending-dbab09)](https://github.com/fankes/MIUINativeNotifyIcon) [![Blank](https://img.shields.io/badge/license-AGPL3.0-blue)](https://github.com/fankes/MIUINativeNotifyIcon/blob/master/LICENSE) -[![Blank](https://img.shields.io/badge/version-v2.3-green)](https://github.com/fankes/MIUINativeNotifyIcon/releases) +[![Blank](https://img.shields.io/badge/version-v2.35-green)](https://github.com/fankes/MIUINativeNotifyIcon/releases) [![Blank](https://img.shields.io/github/downloads/fankes/MIUINativeNotifyIcon/total?label=Release)](https://github.com/fankes/MIUINativeNotifyIcon/releases) [![Blank](https://img.shields.io/github/downloads/Xposed-Modules-Repo/com.fankes.miui.notify/total?label=LSPosed%20Repo&logo=Android&style=flat&labelColor=F48FB1&logoColor=ffffff)](https://github.com/Xposed-Modules-Repo/com.fankes.miui.notify/releases) [![Telegram](https://img.shields.io/static/v1?label=Telegram&message=交流讨论&color=0088cc)](https://t.me/XiaofangInternet) diff --git a/app/build.gradle b/app/build.gradle index ec10491..050628e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -38,7 +38,7 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true signingConfig signingConfigs.debug proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } diff --git a/app/src/main/java/com/fankes/miui/notify/const/Const.kt b/app/src/main/java/com/fankes/miui/notify/const/Const.kt index 44b7e7e..624809b 100644 --- a/app/src/main/java/com/fankes/miui/notify/const/Const.kt +++ b/app/src/main/java/com/fankes/miui/notify/const/Const.kt @@ -41,7 +41,7 @@ object Const { const val MODULE_VERSION_CODE = BuildConfig.VERSION_CODE /** 当前模块的版本校验 */ - const val MODULE_VERSION_VERIFY = "${MODULE_VERSION_NAME}_${MODULE_VERSION_CODE}_202203292350" + const val MODULE_VERSION_VERIFY = "${MODULE_VERSION_NAME}_${MODULE_VERSION_CODE}_202204041350" /** 当前模块的版本校验标签 */ const val MODULE_VERSION_VERIFY_TAG = "module_version_verify" diff --git a/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt b/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt index eb83107..d4e744f 100644 --- a/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt +++ b/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt @@ -782,7 +782,7 @@ class SystemUIHooker : YukiBaseHooker() { .get(instance).set(prefs.get(DataConst.HOOK_STATUS_ICON_COUNT) .let { if (it in 0..100) it else 5 }) } - } + }.by { NotificationIconContainerClass.clazz.hasField { name = "MAX_STATIC_ICONS" } } /** 旧版方法 - 新版不存在 */ injectMember { method { @@ -799,7 +799,7 @@ class SystemUIHooker : YukiBaseHooker() { } beforeHook { isShowNotificationIcons = firstArgs() ?: false } }.ignoredNoSuchMemberFailure() - }.by { NotificationIconContainerClass.clazz.hasField { name = "MAX_STATIC_ICONS" } } + } /** 注入原生通知包装纸实例 */ NotificationHeaderViewWrapperClass.hook { /** 修复下拉通知图标自动设置回 APP 图标的方法 */ diff --git a/build.gradle b/build.gradle index af9c03e..483c4fe 100644 --- a/build.gradle +++ b/build.gradle @@ -5,8 +5,8 @@ plugins { } ext { - appVersionName = "2.3" - appVersionCode = 28 + appVersionName = "2.35" + appVersionCode = 29 } task clean(type: Delete) {