diff --git a/README.md b/README.md index f6b14e6..5451ca0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ColorOS 通知图标增强 -[![Blank](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/fankes/ColorOSNotifyIcon) +[![Blank](https://img.shields.io/badge/build-pending-dbab09)](https://github.com/fankes/ColorOSNotifyIcon) [![Blank](https://img.shields.io/badge/license-AGPL3.0-blue)](https://github.com/fankes/ColorOSNotifyIcon/blob/master/LICENSE) [![Blank](https://img.shields.io/badge/version-v1.51-green)](https://github.com/fankes/ColorOSNotifyIcon/releases) [![Blank](https://img.shields.io/github/downloads/fankes/ColorOSNotifyIcon/total?label=Release)](https://github.com/fankes/ColorOSNotifyIcon/releases) diff --git a/app/build.gradle b/app/build.gradle index af766fd..36ca5c0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -38,7 +38,7 @@ android { buildTypes { release { - minifyEnabled true + minifyEnabled false signingConfig signingConfigs.debug proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } @@ -72,8 +72,8 @@ tasks.whenTaskAdded { dependencies { compileOnly 'de.robv.android.xposed:api:82' - implementation 'com.highcapable.yukihookapi:api:1.0.69' - ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.69' + implementation 'com.highcapable.yukihookapi:api:1.0.70' + ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.70' implementation 'com.github.tiann:FreeReflection:3.1.0' implementation "com.github.topjohnwu.libsu:core:3.1.2" implementation 'androidx.annotation:annotation:1.3.0' diff --git a/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt b/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt index 27a5e78..916e3b2 100644 --- a/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt +++ b/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt @@ -552,12 +552,12 @@ class SystemUIHooker : YukiBaseHooker() { } } } - /** 修复并替换新版本 ColorOS 原生灰度图标色彩判断*/ + /** 修复并替换新版本 ColorOS 原生灰度图标色彩判断 */ NotificationUtilsClass.hook { injectMember { method { name = "isGrayscaleOplus" - param(ImageViewClass, OplusContrastColorUtilClass.clazz) + param(ImageViewClass, OplusContrastColorUtilClass) } replaceAny { firstArgs()?.let { isGrayscaleIcon(it.context, it.drawable) } } }.ignoredHookingFailure() @@ -567,7 +567,7 @@ class SystemUIHooker : YukiBaseHooker() { injectMember { method { name = "getIconDescriptor" - param(NotificationEntryClass.clazz, BooleanType) + param(NotificationEntryClass, BooleanType) } afterHook { IconBuilderClass.clazz.field { name = "context" } @@ -652,7 +652,7 @@ class SystemUIHooker : YukiBaseHooker() { } /** 记录实例 */ injectMember { - constructor { param(ContextClass, ViewClass, ExpandableNotificationRowClass.clazz) } + constructor { param(ContextClass, ViewClass, ExpandableNotificationRowClass) } afterHook { notificationViewWrappers.add(instance) } } } diff --git a/app/src/main/java/com/fankes/coloros/notify/utils/factory/DialogBuilderFactory.kt b/app/src/main/java/com/fankes/coloros/notify/utils/factory/DialogBuilderFactory.kt index 68d35a7..4e42f6c 100644 --- a/app/src/main/java/com/fankes/coloros/notify/utils/factory/DialogBuilderFactory.kt +++ b/app/src/main/java/com/fankes/coloros/notify/utils/factory/DialogBuilderFactory.kt @@ -39,7 +39,7 @@ import android.widget.TextView import androidx.appcompat.app.AppCompatActivity import androidx.viewbinding.ViewBinding import com.google.android.material.dialog.MaterialAlertDialogBuilder -import com.highcapable.yukihookapi.annotation.DoNotUseField +import com.highcapable.yukihookapi.annotation.CauseProblemsApi import com.highcapable.yukihookapi.hook.factory.method import com.highcapable.yukihookapi.hook.type.android.LayoutInflaterClass @@ -71,7 +71,7 @@ class DialogBuilder(val context: Context, private val isUseBlackTheme: Boolean) private var dialogInstance: Dialog? = null // 对话框实例 - @DoNotUseField + @CauseProblemsApi var customLayoutView: View? = null // 自定义布局 /**