Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
6d105319
Commit
6d105319
authored
Jan 06, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测评埋点编辑框
parent
31452f8a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
DemoAppLifecycles.java
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.java
+1
-1
config.gradle
config.gradle
+1
-1
YDLCommonPlugin.kt
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
+9
-0
No files found.
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.java
View file @
6d105319
...
@@ -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();
...
...
config.gradle
View file @
6d105319
ext
{
ext
{
kotlin_version
=
"1.3.21"
kotlin_version
=
"1.3.21"
dev_mode
=
fals
e
dev_mode
=
tru
e
ydl_app
=
[
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
appName
:
"心理咨询壹点灵"
,
...
...
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
View file @
6d105319
...
@@ -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
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment