mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 10:45:47 +08:00
Modify normalize the names of some methods
This commit is contained in:
@@ -109,7 +109,7 @@ object YukiHookBridge {
|
||||
* 获取当前 Xposed 模块自身动态 [Resources]
|
||||
* @return [YukiModuleResources] or null
|
||||
*/
|
||||
internal val dynamicModuleAppResources get() = runCatching { YukiModuleResources.createInstance(moduleAppFilePath) }.getOrNull()
|
||||
internal val dynamicModuleAppResources get() = runCatching { YukiModuleResources.wrapper(moduleAppFilePath) }.getOrNull()
|
||||
|
||||
/**
|
||||
* 自动生成的 Xposed 模块构建版本号
|
||||
@@ -391,7 +391,7 @@ object YukiHookBridge {
|
||||
else null
|
||||
resparam != null ->
|
||||
if (isPackageLoaded(resparam.packageName, HookEntryType.RESOURCES).not())
|
||||
assignWrapper(HookEntryType.RESOURCES, resparam.packageName, appResources = YukiResources.createFromXResources(resparam.res))
|
||||
assignWrapper(HookEntryType.RESOURCES, resparam.packageName, appResources = YukiResources.wrapper(resparam.res))
|
||||
else null
|
||||
else -> null
|
||||
}?.also {
|
||||
|
@@ -53,7 +53,7 @@ class YukiModuleResources private constructor(private val baseInstance: XModuleR
|
||||
* @param path Xposed 模块 APK 路径
|
||||
* @return [YukiModuleResources]
|
||||
*/
|
||||
internal fun createInstance(path: String) = YukiModuleResources(XModuleResources.createInstance(path, null))
|
||||
internal fun wrapper(path: String) = YukiModuleResources(XModuleResources.createInstance(path, null))
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -55,7 +55,7 @@ class YukiResources private constructor(private val baseInstance: XResources) :
|
||||
* @param baseInstance [XResources] 实例
|
||||
* @return [YukiResources]
|
||||
*/
|
||||
internal fun createFromXResources(baseInstance: XResources) = YukiResources(baseInstance)
|
||||
internal fun wrapper(baseInstance: XResources) = YukiResources(baseInstance)
|
||||
|
||||
/**
|
||||
* 兼容对接替换 Resources
|
||||
|
Reference in New Issue
Block a user