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
20f7cb53
Commit
20f7cb53
authored
Mar 02, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add todo
parent
ce65db8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
TestPlugin.kt
m-tests/src/main/java/com/yidianling/tests/home/plugin/TestPlugin.kt
+5
-0
YDLCommonPlugin.kt
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
+8
-0
No files found.
m-tests/src/main/java/com/yidianling/tests/home/plugin/TestPlugin.kt
View file @
20f7cb53
...
...
@@ -34,6 +34,7 @@ class TestPlugin : MethodChannel.MethodCallHandler {
const
val
ADVERT_CLICK
=
"advertClick"
// 实时测评点击
const
val
TEST_LIST_ITEM_CLICK
=
"testListItemClick"
// 测评列表点击
const
val
LOOK_ALL_TEST
=
"lookAllTest"
// 查看全部测评
const
val
IS_HIDE_LEFT_BACK
=
"hideLeftBackLL"
// 是否隐藏标题左侧布局
fun
rigister
(
activity
:
FlutterActivity
)
{
MethodChannel
(
activity
.
flutterView
,
CHANNEL
).
setMethodCallHandler
(
TestPlugin
(
activity
))
...
...
@@ -90,6 +91,10 @@ class TestPlugin : MethodChannel.MethodCallHandler {
TestCategoryListActivity
.
start
(
mActivity
!!
)
}
}
IS_HIDE_LEFT_BACK
->
{
// TODO haorui 是否隐藏标题左侧布局
// result.success(true)
}
}
}
...
...
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
View file @
20f7cb53
...
...
@@ -41,6 +41,7 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
const
val
GETPUBLICPARAMAS
:
String
=
"getPublicParamas"
const
val
ACTION_PUSH_EVENT_TRACKING_TAP
:
String
=
"action_push_event_tracking_tap"
// 点击事件埋点
const
val
ACTION_PUSH_EVENT_TRACKING_PV
:
String
=
"action_push_event_tracking_pv"
//pv埋点
const
val
ACTION_ORIGIN_THEME
:
String
=
"platform_origin_theme"
//马甲包获取应用各个主题色的action
//activity注册
fun
activityRegister
(
activity
:
FlutterActivity
)
{
...
...
@@ -116,6 +117,12 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
YdlBuryPointUtil
.
sendPv
(
pvPath
)
}
}
ACTION_ORIGIN_THEME
->
{
val
mMap
=
mutableMapOf
<
String
,
String
>()
//TODO haorui 添加主题色定义
//mMap["platform_main_theme"] = "#ff0000"
result
.
success
(
mMap
)
}
}
}
}
\ No newline at end of file
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