更新依赖库以支持 kotlin 2.0.0 版本 (#76)

* chore: bump gradle to 8.7

* chore: bump dependencies

* fix(style): 'if' must have both main and 'else' branches when used as an expression.
This commit is contained in:
xihan123
2024-05-31 01:53:07 +08:00
committed by GitHub
parent f5a3f31cc9
commit 04405c5a53
3 changed files with 12 additions and 12 deletions

View File

@@ -461,11 +461,11 @@ object YukiHookAPI {
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
isLoadedFromBaseContext = true
if (HookApiCategoryHelper.hasAvailableHookApi)
(if (baseContext != null)
if (baseContext != null)
if (hooker.isNotEmpty()) {
printSplashInfo()
hooker.forEach { it.assignInstance(packageParam = baseContext.createPackageParam()) }
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true))
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true)
else printNotFoundHookApiError()
}