mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 01:35:17 +08:00
更新依赖库以支持 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:
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user