dependencies {
debugImplementation 'com.iqiyi.lens:lens:1.2.3'
releaseImplementation 'com.iqiyi.lens:lens-no-op:1.2.3'
}
LensUtil.buildConfig()
.defaultOpen(false)
// .enableDeviceInfo(true)
// .enableKeyLog(KeyLogConfig.builder().addFilter("Main").setMaxLine(1000))
// .enableFPS(true)
// .enableLaunchTime(true)
// .setHookFrameWorkImpl(new HookFramework())
.enableActivityAnalyzer(true)
.enableNetworkAnalyze(false)
.enableCrashInfo(true)
// .addCustomBlockEntrance(customBlockEntrance, new BlockFactory())
// .addCustomJumpEntrance(customJumpEntrance, new JumpAction())
.initAsPluginMode(Lens.isSDKMode())
.enableViewInfo(true)
.show(Lens.wrapContext(mApplication), UIUtils.getScreenWidth(mApplication) / 5 * 3);