mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-07 19:14:08 +08:00
Merge code
This commit is contained in:
@@ -155,7 +155,7 @@ class YukiHookXposedProcessor : SymbolProcessorProvider {
|
|||||||
}
|
}
|
||||||
if ((modulePackageName.startsWith(".") ||
|
if ((modulePackageName.startsWith(".") ||
|
||||||
modulePackageName.endsWith(".") ||
|
modulePackageName.endsWith(".") ||
|
||||||
!modulePackageName.contains(".") ||
|
modulePackageName.contains(".").not() ||
|
||||||
modulePackageName.contains("..")) &&
|
modulePackageName.contains("..")) &&
|
||||||
modulePackageName.isNotEmpty()
|
modulePackageName.isNotEmpty()
|
||||||
) error(msg = "Invalid Module Package name \"$modulePackageName\"")
|
) error(msg = "Invalid Module Package name \"$modulePackageName\"")
|
||||||
|
@@ -552,7 +552,7 @@ class YukiHookCreater(private val packageParam: PackageParam, private val hookCl
|
|||||||
* @return [Result] 可继续向下监听
|
* @return [Result] 可继续向下监听
|
||||||
*/
|
*/
|
||||||
fun by(initiate: () -> Boolean): Result {
|
fun by(initiate: () -> Boolean): Result {
|
||||||
isDisableMemberRunHook = !(runCatching { initiate() }.getOrNull() ?: false)
|
isDisableMemberRunHook = (runCatching { initiate() }.getOrNull() ?: false).not()
|
||||||
if (isDisableMemberRunHook) ignoredAllFailure()
|
if (isDisableMemberRunHook) ignoredAllFailure()
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
@@ -660,7 +660,7 @@ class YukiHookCreater(private val packageParam: PackageParam, private val hookCl
|
|||||||
* @return [Result] 可继续向下监听
|
* @return [Result] 可继续向下监听
|
||||||
*/
|
*/
|
||||||
fun by(initiate: () -> Boolean): Result {
|
fun by(initiate: () -> Boolean): Result {
|
||||||
isDisableCreaterRunHook = !(runCatching { initiate() }.getOrNull() ?: false)
|
isDisableCreaterRunHook = (runCatching { initiate() }.getOrNull() ?: false).not()
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ object YukiHookXposedBridge {
|
|||||||
*/
|
*/
|
||||||
@YukiGenerateApi
|
@YukiGenerateApi
|
||||||
val isXposedCallbackSetUp
|
val isXposedCallbackSetUp
|
||||||
get() = !isXposedInitialized && packageParamCallback != null
|
get() = isXposedInitialized.not() && packageParamCallback != null
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当前 Hook 的对象是模块自身
|
* 当前 Hook 的对象是模块自身
|
||||||
|
Reference in New Issue
Block a user