feat: update demo

This commit is contained in:
2023-09-28 00:53:00 +08:00
parent fe2f5c802e
commit fd84b22532
2 changed files with 11 additions and 11 deletions

View File

@@ -27,13 +27,13 @@
*/
package com.highcapable.yukihookapi.demo_module.application
import com.highcapable.yukihookapi.hook.log.loggerD
import com.highcapable.yukihookapi.hook.log.YLog
import com.highcapable.yukihookapi.hook.xposed.application.ModuleApplication
class DemoApplication : ModuleApplication() {
override fun onCreate() {
super.onCreate()
loggerD(msg = "I am running in module space")
YLog.debug("I am running in module space")
}
}

View File

@@ -31,7 +31,7 @@ import android.app.Activity;
import android.os.Bundle;
import com.highcapable.yukihookapi.YukiHookAPI;
import com.highcapable.yukihookapi.hook.log.YukiHookLogger;
import com.highcapable.yukihookapi.hook.log.YLog;
import com.highcapable.yukihookapi.hook.xposed.bridge.event.YukiXposedEvent;
import com.highcapable.yukihookapi.hook.xposed.proxy.IYukiHookXposedInit;
@@ -53,14 +53,14 @@ public class HookEntry implements IYukiHookXposedInit {
@Override
public void onInit() {
YukiHookAPI.Configs config = YukiHookAPI.Configs.INSTANCE;
YukiHookLogger.Configs.INSTANCE.setTag("YukiHookAPI-Demo");
YukiHookLogger.Configs.INSTANCE.setEnable(true);
YukiHookLogger.Configs.INSTANCE.setRecord(false);
YukiHookLogger.Configs.INSTANCE.elements(
YukiHookLogger.Configs.TAG,
YukiHookLogger.Configs.PRIORITY,
YukiHookLogger.Configs.PACKAGE_NAME,
YukiHookLogger.Configs.USER_ID
YLog.Configs.INSTANCE.setTag("YukiHookAPI-Demo");
YLog.Configs.INSTANCE.setEnable(true);
YLog.Configs.INSTANCE.setRecord(false);
YLog.Configs.INSTANCE.elements(
YLog.Configs.TAG,
YLog.Configs.PRIORITY,
YLog.Configs.PACKAGE_NAME,
YLog.Configs.USER_ID
);
config.setDebug(true);
config.setEnableModuleAppResourcesCache(true);