From ba2d7f3ebfd049fa68a208cbb8a77385dea157ba Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Sun, 14 Aug 2022 00:56:37 +0800 Subject: [PATCH] Fix yLogger function misspell --- .../yukihookapi/hook/core/YukiMemberHookCreater.kt | 4 ++-- .../yukihookapi/hook/core/YukiResourcesHookCreater.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreater.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreater.kt index 11646eb9..990a8386 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreater.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreater.kt @@ -37,9 +37,9 @@ import com.highcapable.yukihookapi.hook.core.finder.FieldFinder import com.highcapable.yukihookapi.hook.core.finder.MethodFinder import com.highcapable.yukihookapi.hook.core.finder.base.BaseFinder import com.highcapable.yukihookapi.hook.factory.* -import com.highcapable.yukihookapi.hook.log.loggerW import com.highcapable.yukihookapi.hook.log.yLoggerE import com.highcapable.yukihookapi.hook.log.yLoggerI +import com.highcapable.yukihookapi.hook.log.yLoggerW import com.highcapable.yukihookapi.hook.param.HookParam import com.highcapable.yukihookapi.hook.param.PackageParam import com.highcapable.yukihookapi.hook.param.type.HookEntryType @@ -131,7 +131,7 @@ class YukiMemberHookCreater(@PublishedApi internal val packageParam: PackagePara YukiHookBridge.hasXposedBridge.not() -> Result() /** 过滤 [HookEntryType.ZYGOTE] 与 [HookEntryType.PACKAGE] 或 [HookParam.isCallbackCalled] 已被执行 */ packageParam.wrapper?.type == HookEntryType.RESOURCES && HookParam.isCallbackCalled.not() -> Result() - preHookMembers.isEmpty() -> Result().also { loggerW(msg = "Hook Members is empty in [${hookClass.name}], hook aborted") } + preHookMembers.isEmpty() -> Result().also { yLoggerW(msg = "Hook Members is empty in [${hookClass.name}], hook aborted") } else -> Result().await { when { isDisableCreaterRunHook.not() && hookClass.instance != null -> runCatching { diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreater.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreater.kt index 6ebbb4be..2b155749 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreater.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreater.kt @@ -32,9 +32,9 @@ package com.highcapable.yukihookapi.hook.core import android.content.res.Resources import com.highcapable.yukihookapi.YukiHookAPI import com.highcapable.yukihookapi.hook.bean.HookResources -import com.highcapable.yukihookapi.hook.log.loggerW import com.highcapable.yukihookapi.hook.log.yLoggerE import com.highcapable.yukihookapi.hook.log.yLoggerI +import com.highcapable.yukihookapi.hook.log.yLoggerW import com.highcapable.yukihookapi.hook.param.PackageParam import com.highcapable.yukihookapi.hook.param.type.HookEntryType import com.highcapable.yukihookapi.hook.xposed.bridge.YukiHookBridge @@ -67,7 +67,7 @@ class YukiResourcesHookCreater(@PublishedApi internal val packageParam: PackageP if (YukiHookBridge.hasXposedBridge.not()) return /** 过滤 [HookEntryType.ZYGOTE] 与 [HookEntryType.RESOURCES] */ if (packageParam.wrapper?.type == HookEntryType.PACKAGE) return - if (preHookResources.isEmpty()) return loggerW(msg = "Hook Resources is empty, hook aborted") + if (preHookResources.isEmpty()) return yLoggerW(msg = "Hook Resources is empty, hook aborted") preHookResources.forEach { (_, r) -> r.hook() } }