Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
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
android
android_goodmoney
Commits
7aace0b7
Commit
7aace0b7
authored
Nov 27, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化umeng埋点
parent
39d284f5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
14 deletions
+27
-14
InitAppService.kt
...y/app/src/main/java/com/mints/goodmoney/InitAppService.kt
+0
-3
MintsApplication.java
...p/src/main/java/com/mints/goodmoney/MintsApplication.java
+4
-0
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+20
-11
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+3
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/InitAppService.kt
View file @
7aace0b7
...
@@ -82,9 +82,6 @@ class InitAppService : IntentService("InitializeService") {
...
@@ -82,9 +82,6 @@ class InitAppService : IntentService("InitializeService") {
// 变现猫
// 变现猫
initBxm
(
this
.
application
)
initBxm
(
this
.
application
)
// 猎豹游戏初始化
LiebaoManager
.
getInstance
().
initCmGameSdk
()
}
}
/**
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/MintsApplication.java
View file @
7aace0b7
...
@@ -13,6 +13,7 @@ import androidx.multidex.MultiDexApplication;
...
@@ -13,6 +13,7 @@ import androidx.multidex.MultiDexApplication;
import
com.bun.miitmdid.core.JLibrary
;
import
com.bun.miitmdid.core.JLibrary
;
import
com.component.dly.xzzq_ywsdk.YwSDK
;
import
com.component.dly.xzzq_ywsdk.YwSDK
;
import
com.mints.goodmoney.common.Constant
;
import
com.mints.goodmoney.common.Constant
;
import
com.mints.goodmoney.manager.LiebaoManager
;
import
com.mints.goodmoney.manager.MiitHelper
;
import
com.mints.goodmoney.manager.MiitHelper
;
import
com.mints.goodmoney.manager.TtCsjAdManager
;
import
com.mints.goodmoney.manager.TtCsjAdManager
;
import
com.mints.goodmoney.manager.UserManager
;
import
com.mints.goodmoney.manager.UserManager
;
...
@@ -112,6 +113,9 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -112,6 +113,9 @@ public class MintsApplication extends MultiDexApplication {
// 一览视频
// 一览视频
YlVideoManager
.
INSTANCE
.
init
(
this
);
YlVideoManager
.
INSTANCE
.
init
(
this
);
// 猎豹游戏初始化
LiebaoManager
.
getInstance
().
initCmGameSdk
();
}
}
private
MiitHelper
.
AppIdsUpdater
appIdsUpdater
=
ids
->
OAID
=
ids
;
private
MiitHelper
.
AppIdsUpdater
appIdsUpdater
=
ids
->
OAID
=
ids
;
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
7aace0b7
...
@@ -68,14 +68,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
...
@@ -68,14 +68,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
Utils
.
hideBottomUIMenu
(
this
)
Utils
.
hideBottomUIMenu
(
this
)
// 开启3秒倒计时
// 开启3秒倒计时
startTime
()
startTime
()
pushUmengEvent
()
if
(!
TextUtils
.
isEmpty
(
carrierType
)
&&
curCoin
>
0
)
{
// 埋点上送事件
val
map
=
mutableMapOf
<
String
,
String
>()
map
[
"userId"
]
=
UserManager
.
getInstance
().
userID
map
[
"coin"
]
=
""
+
curCoin
MobclickAgent
.
onEvent
(
this
,
carrierType
,
map
)
}
when
(
carrierType
)
{
when
(
carrierType
)
{
Constant
.
CARRIER_GAME_ONLINE
,
Constant
.
CARRIER_EATMEAL
->
{
Constant
.
CARRIER_GAME_ONLINE
,
Constant
.
CARRIER_EATMEAL
->
{
...
@@ -173,6 +166,19 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
...
@@ -173,6 +166,19 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
}
}
}
}
/**
* 提示umeng事件埋点
*/
private
fun
pushUmengEvent
()
{
if
(!
TextUtils
.
isEmpty
(
carrierType
)
&&
curCoin
>
0
)
{
// 埋点上送事件
val
map
=
mutableMapOf
<
String
,
String
>()
map
[
"userId"
]
=
UserManager
.
getInstance
().
userID
map
[
"coin"
]
=
""
+
curCoin
MobclickAgent
.
onEvent
(
this
,
carrierType
,
map
)
}
}
override
fun
finish
()
{
override
fun
finish
()
{
super
.
finish
()
super
.
finish
()
//关闭窗体动画显示
//关闭窗体动画显示
...
@@ -236,14 +242,17 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
...
@@ -236,14 +242,17 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
R
.
id
.
tvAwardNext
->
{
R
.
id
.
tvAwardNext
->
{
when
(
carrierType
)
{
when
(
carrierType
)
{
// 只有看视频才能领金币
// 只有看视频才能领金币
Constant
.
CARRIER_CHALLENGE_SHAREFRIEND_DOUBLE
,
Constant
.
CARRIER_OFFLINE_DOUBLE
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
,
Constant
.
CARRIER_OFFLINE_DOUBLE
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
,
Constant
.
CARRIER_CHALLENGE_TURN
,
Constant
.
CARRIER_CHALLENGE_CARD
,
Constant
.
CARRIER_CHALLENGE_TURN
,
Constant
.
CARRIER_CHALLENGE_CARD
,
Constant
.
CARRIER_WALK_BUBBLE
,
Constant
.
CARRIER_HOMEVEDIO_DOUBLE
,
Constant
.
CARRIER_WALK_BUBBLE
,
Constant
.
CARRIER_EATMEAL_SUBSIDY
,
Constant
.
CARRIER_SMALLHOMEVEDIO_DOUBLE
,
Constant
.
CARRIER_EATMEAL_SUBSIDY
,
Constant
.
CARRIER_WALK
,
Constant
.
CARRIER_HOMEWATER
->
{
Constant
.
CARRIER_WALK
,
Constant
.
CARRIER_HOMEWATER
->
{
awardVedio
()
awardVedio
()
}
}
Constant
.
CARRIER_CHALLENGE_SHAREFRIEND_DOUBLE
,
Constant
.
CARRIER_HOMEVEDIO_DOUBLE
,
Constant
.
CARRIER_SMALLHOMEVEDIO_DOUBLE
->
{
pushUmengEvent
()
awardVedio
()
}
Constant
.
CARRIER_NEW_VISITOR
->
{
Constant
.
CARRIER_NEW_VISITOR
->
{
readyGoThenKill
(
LoginActivity
::
class
.
java
)
readyGoThenKill
(
LoginActivity
::
class
.
java
)
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
7aace0b7
...
@@ -227,6 +227,9 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -227,6 +227,9 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
private
fun
showPowerDialog
()
{
private
fun
showPowerDialog
()
{
if
(
ps
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
{
if
(
ps
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
{
powerDialog
()
powerDialog
()
}
else
{
// 数美初始化
ShumeiManager
.
getInstance
().
initShumei
()
}
}
}
}
...
...
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