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
6f164e9f
Commit
6f164e9f
authored
Nov 25, 2020
by
jyx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_track' into dev_ad
parents
e5052e39
34ee7d27
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
InitAppService.kt
...y/app/src/main/java/com/mints/goodmoney/InitAppService.kt
+2
-0
Constant.kt
.../app/src/main/java/com/mints/goodmoney/common/Constant.kt
+1
-1
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+23
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/InitAppService.kt
View file @
6f164e9f
...
...
@@ -17,6 +17,7 @@ import com.orhanobut.logger.FormatStrategy
import
com.orhanobut.logger.Logger
import
com.orhanobut.logger.PrettyFormatStrategy
import
com.tendcloud.tenddata.TCAgent
import
com.umeng.analytics.MobclickAgent
import
com.umeng.commonsdk.UMConfigure
/**
...
...
@@ -110,6 +111,7 @@ class InitAppService : IntentService("InitializeService") {
*/
UMConfigure
.
init
(
context
,
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"UMENG_KEY"
),
CommonUtils
.
getAppMetaData
(
context
,
"CHANNEL_NAME"
),
UMConfigure
.
DEVICE_TYPE_PHONE
,
""
)
UMConfigure
.
setLogEnabled
(
true
)
MobclickAgent
.
setPageCollectionMode
(
MobclickAgent
.
PageMode
.
LEGACY_MANUAL
)
}
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/common/Constant.kt
View file @
6f164e9f
...
...
@@ -98,7 +98,7 @@ object Constant {
const
val
CARRIER_EATMEAL_SUBSIDY_NOT
=
"EATMEAL_SUBSIDY_NOT"
//未到时间饭补
const
val
CARRIER_WALK_BUBBLE
=
"WALK_BUBBLE"
//走路汽泡
const
val
CARRIER_NEW_USER
=
"CARRIER_NEW_USER"
//新用户红包
const
val
CARRIER_NEW_VISITOR
=
"CARRIER_NEW_VISITOR"
//游
戏
首次登录
const
val
CARRIER_NEW_VISITOR
=
"CARRIER_NEW_VISITOR"
//游
客
首次登录
const
val
CARRIER_GAME_ONLINE
=
"GAME_ONLINE"
//跳转猎豹
const
val
CARRIER_ZHANGYUE
=
"ZHANGYUE"
//阅读书城
const
val
CARRIER_CHALLENGE_SHAREFRIEND_DOUBLE
=
"CHALLENGE_SHAREFRIEND_DOUBLE"
//邀请好友翻倍
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
6f164e9f
...
...
@@ -7,6 +7,7 @@ import com.mints.goodmoney.R
import
com.mints.goodmoney.ad.video.VedioAdingManager
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.TTPreLoadExpressManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.model.VedioAdingBean
import
com.mints.goodmoney.mvp.presenters.AwardPresenter
import
com.mints.goodmoney.mvp.views.AwardView
...
...
@@ -16,10 +17,12 @@ import com.mints.goodmoney.ui.widgets.countdowntimer.OnCountDownTimerListener
import
com.mints.goodmoney.utils.SoundPoolUtil
import
com.mints.goodmoney.utils.SpanUtils
import
com.mints.goodmoney.utils.Utils
import
com.umeng.analytics.MobclickAgent
import
kotlinx.android.synthetic.main.activity_award.*
import
java.math.BigDecimal
import
java.util.*
/**
* 描述:奖励界面
* 作者:孟崔广
...
...
@@ -99,6 +102,12 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
vo
[
"carrierType"
]
=
carrierType
awardPresenter
.
reportAddCoinMsg
(
vo
)
val
map
=
mutableMapOf
<
String
,
String
>()
map
[
"userId"
]
=
UserManager
.
getInstance
().
userID
map
[
"carrierType"
]
=
carrierType
map
[
"coin"
]
=
""
+
curCoin
MobclickAgent
.
onEvent
(
this
,
"award_share_friend"
,
map
)
tvAwardContent
.
setText
(
curCoin
.
toString
()
+
"金币已到账"
)
tvAwardNext
.
setText
(
"看视频再领${extraId}金币"
)
...
...
@@ -146,6 +155,9 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
tvAwardNext
.
visibility
=
View
.
GONE
tvAwardHint
.
visibility
=
View
.
GONE
}
Constant
.
CARRIER_VERSUS_VIDEO
->
{
tvAwardContent
.
setText
(
curCoin
.
toString
()
+
"金币已到账"
)
}
Constant
.
CARRIER_CHALLENGE_TURN
,
Constant
.
CARRIER_CHALLENGE_CARD
,
Constant
.
CARRIER_WALK_BUBBLE
,
Constant
.
CARRIER_EATMEAL_SUBSIDY
,
Constant
.
CARRIER_WALK
,
Constant
.
CARRIER_HOMEWATER
->
{
...
...
@@ -179,9 +191,19 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
override
fun
onResume
()
{
super
.
onResume
()
MobclickAgent
.
onPageStart
(
this
::
class
.
java
.
simpleName
)
MobclickAgent
.
onResume
(
this
)
awardPresenter
.
getCoinMsg
()
}
override
fun
onPause
()
{
super
.
onPause
()
MobclickAgent
.
onPageEnd
(
this
::
class
.
java
.
simpleName
)
MobclickAgent
.
onPause
(
this
)
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
...
...
@@ -194,7 +216,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
e
.
printStackTrace
()
}
vedioAdingManager
?
.
setVedioAdingListener
(
null
)
vedioAdingManager
.
setVedioAdingListener
(
null
)
vedioAdingManager
.
onDestory
()
awardPresenter
.
detachView
()
...
...
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