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
5eeaf0d6
Commit
5eeaf0d6
authored
Mar 03, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat openinstall 加入启动埋点
parent
0c34839e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
1 deletions
+35
-1
config.gradle
config.gradle
+1
-1
UserBIConstants.kt
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
+1
-0
InputPassWordActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
+9
-0
LoginPresenterImpl.kt
m-user/src/main/java/com/yidianling/user/ui/login/presenter/LoginPresenterImpl.kt
+24
-0
No files found.
config.gradle
View file @
5eeaf0d6
...
@@ -8,7 +8,7 @@ ext {
...
@@ -8,7 +8,7 @@ ext {
"m-confide"
:
"0.0.48.92"
,
"m-confide"
:
"0.0.48.92"
,
"m-consultant"
:
"0.0.59.65"
,
"m-consultant"
:
"0.0.59.65"
,
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.0
4
"
,
"m-user"
:
"0.0.61.0
8
"
,
"m-home"
:
"0.0.22.53"
,
"m-home"
:
"0.0.22.53"
,
"m-im"
:
"0.0.18.35"
,
"m-im"
:
"0.0.18.35"
,
"m-dynamic"
:
"0.0.7.15"
,
"m-dynamic"
:
"0.0.7.15"
,
...
...
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
View file @
5eeaf0d6
...
@@ -30,6 +30,7 @@ class UserBIConstants {
...
@@ -30,6 +30,7 @@ class UserBIConstants {
const
val
POSITION_PHONE_REGISTER_CLICK
=
"phone_register_click"
//手机号密码第一次登录
const
val
POSITION_PHONE_REGISTER_CLICK
=
"phone_register_click"
//手机号密码第一次登录
const
val
POSITION_ALIYUN_REGISTER_CLICK
=
"aliyun_register_click"
//阿里云第一次一键登录
const
val
POSITION_ALIYUN_REGISTER_CLICK
=
"aliyun_register_click"
//阿里云第一次一键登录
const
val
POSITION_CODE_REGISTER_CLICK
=
"code_register_click"
//短信第一次登录
const
val
POSITION_CODE_REGISTER_CLICK
=
"code_register_click"
//短信第一次登录
const
val
POSITION_FIRST_LOAD_AND_OPEN_CLICK
=
"activation_click"
//第一次安装并且第一打开
//随便逛逛点击
//随便逛逛点击
const
val
POSITION_LOOK_AROUND_CLICK
=
"look_around_click"
const
val
POSITION_LOOK_AROUND_CLICK
=
"look_around_click"
//登录主页浏览事件(包含随便逛逛)
//登录主页浏览事件(包含随便逛逛)
...
...
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
View file @
5eeaf0d6
...
@@ -11,6 +11,7 @@ import android.text.method.HideReturnsTransformationMethod
...
@@ -11,6 +11,7 @@ import android.text.method.HideReturnsTransformationMethod
import
android.text.method.PasswordTransformationMethod
import
android.text.method.PasswordTransformationMethod
import
android.view.View
import
android.view.View
import
android.view.animation.AnimationUtils
import
android.view.animation.AnimationUtils
import
com.fm.openinstall.OpenInstall
import
com.ydl.ydlcommon.base.BaseMvpActivity
import
com.ydl.ydlcommon.base.BaseMvpActivity
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.StatusBarUtils
...
@@ -150,6 +151,14 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
...
@@ -150,6 +151,14 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
UserBIConstants
.
POSITION_PHONE_REGISTER_CLICK
,
UserBIConstants
.
POSITION_PHONE_REGISTER_CLICK
,
25
25
)
)
ActionCountUtils
.
baiduCount
(
UserBIConstants
.
APP_REGISTER_PAGE
,
UserBIConstants
.
POSITION_PHONE_REGISTER_CLICK
,
25
,
OneKeyLoginHelp
.
openInstallKey
)
// 用户注册成功后调用
OpenInstall
.
reportRegister
();
}
}
...
...
m-user/src/main/java/com/yidianling/user/ui/login/presenter/LoginPresenterImpl.kt
View file @
5eeaf0d6
...
@@ -3,6 +3,7 @@ package com.yidianling.user.ui.login.presenter
...
@@ -3,6 +3,7 @@ package com.yidianling.user.ui.login.presenter
import
android.annotation.SuppressLint
import
android.annotation.SuppressLint
import
android.app.Activity
import
android.app.Activity
import
android.text.TextUtils
import
android.text.TextUtils
import
com.fm.openinstall.OpenInstall
import
com.umeng.socialize.bean.SHARE_MEDIA
import
com.umeng.socialize.bean.SHARE_MEDIA
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.router.YdlCommonOut
import
com.ydl.ydlcommon.router.YdlCommonOut
...
@@ -18,6 +19,7 @@ import com.yidianling.user.http.UserHttpImpl
...
@@ -18,6 +19,7 @@ import com.yidianling.user.http.UserHttpImpl
import
com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.http.request.CheckAliAuthParam
import
com.yidianling.user.http.request.CheckAliAuthParam
import
com.yidianling.user.http.request.PhoneLoginAutoParam
import
com.yidianling.user.http.request.PhoneLoginAutoParam
import
com.yidianling.user.ui.login.OneKeyLoginHelp
import
com.yidianling.user.ui.login.contract.ILoginContract
import
com.yidianling.user.ui.login.contract.ILoginContract
import
com.yidianling.user.ui.login.model.LoginModelImpl
import
com.yidianling.user.ui.login.model.LoginModelImpl
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.android.schedulers.AndroidSchedulers
...
@@ -194,6 +196,17 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
...
@@ -194,6 +196,17 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
StatusUtils
.
isFirstLogin
=
true
StatusUtils
.
isFirstLogin
=
true
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_QQ_REGISTER_CLICK
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_QQ_REGISTER_CLICK
)
ActionCountUtils
.
baiduCount
(
it
.
data
.
uid
,
UserBIConstants
.
APP_REGISTER_PAGE
,
UserBIConstants
.
POSITION_QQ_REGISTER_CLICK
,
""
,
""
,
25
,
OneKeyLoginHelp
.
openInstallKey
)
// 用户注册成功后调用
OpenInstall
.
reportRegister
();
}
else
{
}
else
{
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
data
.
uid
!!
,
sign1
)
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
data
.
uid
!!
,
sign1
)
}
}
...
@@ -201,6 +214,17 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
...
@@ -201,6 +214,17 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
StatusUtils
.
isFirstLogin
=
true
StatusUtils
.
isFirstLogin
=
true
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_WX_REGISTER_CLICK
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_WX_REGISTER_CLICK
)
ActionCountUtils
.
baiduCount
(
it
.
data
.
uid
,
UserBIConstants
.
APP_REGISTER_PAGE
,
UserBIConstants
.
POSITION_WX_REGISTER_CLICK
,
""
,
""
,
25
,
OneKeyLoginHelp
.
openInstallKey
)
// 用户注册成功后调用
OpenInstall
.
reportRegister
();
}
else
{
}
else
{
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
data
.
uid
!!
,
sign1
)
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
data
.
uid
!!
,
sign1
)
}
}
...
...
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