Commit 6d105319 by 严久程

测评埋点编辑框

parent 31452f8a
...@@ -129,7 +129,7 @@ public class DemoAppLifecycles implements IAppLifecycles { ...@@ -129,7 +129,7 @@ public class DemoAppLifecycles implements IAppLifecycles {
UMConfigure.setLogEnabled(BuildConfig.DEBUG); UMConfigure.setLogEnabled(BuildConfig.DEBUG);
//数据埋点初始化 (一定要放在主进程中,因为用到了umeng统计,需要放在umeng初始化后) //数据埋点初始化 (一定要放在主进程中,因为用到了umeng统计,需要放在umeng初始化后)
YdlBuryPointUtil.init(application); YdlBuryPointUtil.init(application,true);
//安全检测 //安全检测
//YDLAppProtector.init(); //YDLAppProtector.init();
......
ext { ext {
kotlin_version = "1.3.21" kotlin_version = "1.3.21"
dev_mode = false dev_mode = true
ydl_app = [ ydl_app = [
appName : "心理咨询壹点灵", appName : "心理咨询壹点灵",
......
...@@ -2,6 +2,7 @@ package com.channel.ydl_flutter_base.plugin ...@@ -2,6 +2,7 @@ package com.channel.ydl_flutter_base.plugin
import android.text.TextUtils import android.text.TextUtils
import com.channel.ydl_flutter_base.base.BaseFlutterFragment import com.channel.ydl_flutter_base.base.BaseFlutterFragment
import com.ydl.burypointlib.BuryPointHelper
import com.ydl.ydlcommon.base.BaseApp import com.ydl.ydlcommon.base.BaseApp
import com.ydl.ydlcommon.data.PlatformDataManager import com.ydl.ydlcommon.data.PlatformDataManager
import com.ydl.ydlcommon.modular.ModularServiceManager import com.ydl.ydlcommon.modular.ModularServiceManager
...@@ -78,6 +79,14 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler { ...@@ -78,6 +79,14 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
val map = methodCall.arguments as HashMap<*, *> val map = methodCall.arguments as HashMap<*, *>
val clickPath = map["path"] as String val clickPath = map["path"] as String
if (!TextUtils.isEmpty(clickPath)) { if (!TextUtils.isEmpty(clickPath)) {
val ownerClass = Class.forName("com.ydl.burypointlib.BuryPointHelper")
val field = ownerClass.getDeclaredField("openEdit")
field.isAccessible = true
val property = field.get(ownerClass)
if (property is Boolean && property) {
BuryPointHelper.showEditDialog(mActivity, clickPath, null)
}
YdlBuryPointUtil.sendClick(clickPath) YdlBuryPointUtil.sendClick(clickPath)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment