Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
LuckyFarm
Commits
e4db3f85
Commit
e4db3f85
authored
Nov 20, 2020
by
Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[李俊岐] 完善打卡提现和福利中心
parent
6cfd79f2
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
538 additions
and
559 deletions
+538
-559
GameActivity.kt
app/src/main/java/com/ym/game/GameActivity.kt
+117
-250
ClockInWithdrawActitivy.kt
...main/java/com/ym/game/activity/ClockInWithdrawActitivy.kt
+19
-11
WelfareActivity.kt
app/src/main/java/com/ym/game/activity/WelfareActivity.kt
+15
-7
ClockInWithdrawAdpater.kt
...c/main/java/com/ym/game/adapter/ClockInWithdrawAdpater.kt
+41
-13
PuzzleBottomAdapter.kt
app/src/main/java/com/ym/game/adapter/PuzzleBottomAdapter.kt
+2
-2
SpeedWaterTaskAdapter.kt
...rc/main/java/com/ym/game/adapter/SpeedWaterTaskAdapter.kt
+1
-1
WateringTaskAdpater.kt
app/src/main/java/com/ym/game/adapter/WateringTaskAdpater.kt
+1
-1
BaseApplication.kt
app/src/main/java/com/ym/game/application/BaseApplication.kt
+2
-2
ClockInWithdrawContract.kt
...main/java/com/ym/game/contract/ClockInWithdrawContract.kt
+2
-1
AdCallback.java
app/src/main/java/com/ym/game/listener/AdCallback.java
+0
-8
OnGdtAdListener.kt
app/src/main/java/com/ym/game/listener/OnGdtAdListener.kt
+0
-19
OnRecycleItemClickListener.kt
...n/java/com/ym/game/listener/OnRecycleItemClickListener.kt
+0
-11
ClockInWithdrawPresenter.kt
...in/java/com/ym/game/presenter/ClockInWithdrawPresenter.kt
+5
-4
MainDialog.kt
app/src/main/java/com/ym/game/view/MainDialog.kt
+49
-63
PuzzleDialog.kt
app/src/main/java/com/ym/game/view/PuzzleDialog.kt
+3
-3
SiginDropsPopupwindow.kt
app/src/main/java/com/ym/game/view/SiginDropsPopupwindow.kt
+1
-1
TurntableDialog.kt
app/src/main/java/com/ym/game/view/TurntableDialog.kt
+1
-1
icon_item_dotted_line.png
app/src/main/res/drawable-xhdpi/icon_item_dotted_line.png
+0
-0
icon_welfare_diamond2.png
app/src/main/res/drawable-xhdpi/icon_welfare_diamond2.png
+0
-0
activity_clock_in_withdraw.xml
app/src/main/res/layout/activity_clock_in_withdraw.xml
+12
-12
activity_welfare.xml
app/src/main/res/layout/activity_welfare.xml
+61
-49
item_clock_in_withdraw.xml
app/src/main/res/layout/item_clock_in_withdraw.xml
+12
-10
item_welfare_diamond.xml
app/src/main/res/layout/item_welfare_diamond.xml
+2
-0
item_welfare_task.xml
app/src/main/res/layout/item_welfare_task.xml
+15
-17
build.gradle
library/build.gradle
+1
-1
wannuosili_ad_2.0.0.aar
library/libs/wannuosili_ad_2.0.0.aar
+0
-0
JavaInterface.kt
...ry/src/main/java/com/ym/library/activity/JavaInterface.kt
+2
-1
NewWebActivity.kt
...y/src/main/java/com/ym/library/activity/NewWebActivity.kt
+7
-4
WebActivity.kt
library/src/main/java/com/ym/library/activity/WebActivity.kt
+14
-14
XiaoManActivity.kt
.../src/main/java/com/ym/library/activity/XiaoManActivity.kt
+2
-2
NewWebContract.kt
...n/java/com/ym/library/activity/contract/NewWebContract.kt
+1
-1
NewWebPresenter.kt
...java/com/ym/library/activity/presenter/NewWebPresenter.kt
+1
-1
IAdVideoListener.kt
...src/main/java/com/ym/library/listener/IAdVideoListener.kt
+6
-0
AdStatusEntity.kt
...ary/src/main/java/com/ym/library/module/AdStatusEntity.kt
+1
-0
ClockInWithdrawEntity.kt
.../main/java/com/ym/library/module/ClockInWithdrawEntity.kt
+3
-0
BaseActivity.java
library/src/main/java/com/ym/library/net/BaseActivity.java
+36
-0
IGameApi.kt
library/src/main/java/com/ym/library/net/IGameApi.kt
+7
-1
NetConfig.java
library/src/main/java/com/ym/library/net/NetConfig.java
+1
-0
AdUtils.kt
library/src/main/java/com/ym/library/utils/AdUtils.kt
+71
-0
CenterDialog.kt
library/src/main/java/com/ym/library/utils/CenterDialog.kt
+6
-33
EventUtils.kt
library/src/main/java/com/ym/library/utils/EventUtils.kt
+9
-0
activity_new_web.xml
library/src/main/res/layout/activity_new_web.xml
+1
-1
SettingActivity.kt
...n/java/com/ym/userinfo/module/activity/SettingActivity.kt
+8
-14
No files found.
app/src/main/java/com/ym/game/GameActivity.kt
View file @
e4db3f85
...
@@ -13,6 +13,7 @@ import com.bx.adsdk.AdSdk
...
@@ -13,6 +13,7 @@ import com.bx.adsdk.AdSdk
import
com.game.luckyfarm.UnityPlayerActivity
import
com.game.luckyfarm.UnityPlayerActivity
import
com.umeng.analytics.MobclickAgent
import
com.umeng.analytics.MobclickAgent
import
com.ym.admodule.config.AdManager
import
com.ym.admodule.config.AdManager
import
com.ym.admodule.config.ZXADSizeConfig
import
com.ym.admodule.listener.ZXADVideoListener
import
com.ym.admodule.listener.ZXADVideoListener
import
com.ym.game.activity.WxLoginActivity
import
com.ym.game.activity.WxLoginActivity
import
com.ym.game.listener.IDialogViewCloseCallback
import
com.ym.game.listener.IDialogViewCloseCallback
...
@@ -21,6 +22,7 @@ import com.ym.game.view.*
...
@@ -21,6 +22,7 @@ import com.ym.game.view.*
import
com.ym.modulecommon.AppliContext
import
com.ym.modulecommon.AppliContext
import
com.ym.library.Constant
import
com.ym.library.Constant
import
com.ym.library.down.UpdateVersionManager
import
com.ym.library.down.UpdateVersionManager
import
com.ym.library.listener.IAdVideoListener
import
com.ym.library.module.*
import
com.ym.library.module.*
import
com.ym.library.net.ApiClient
import
com.ym.library.net.ApiClient
import
com.ym.library.net.BaseObserver
import
com.ym.library.net.BaseObserver
...
@@ -85,6 +87,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -85,6 +87,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
openNotif
()
openNotif
()
EventUtils
.
loadNextCacheRewardVideoAd
(
this
)
EventUtils
.
loadNextCacheRewardVideoAd
(
this
)
AdManager
.
loadFeedAdToCache
(
ADConfig
.
AD_IMG_FADE
,
this
,
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
this
).
toFloat
())
-
40
,
280
))
}
}
override
fun
onDestroy
()
{
override
fun
onDestroy
()
{
...
@@ -200,6 +205,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -200,6 +205,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
// JumpUtils.h5Jump("打卡提现", Constant.Param.PunchRecord, false, act)
// JumpUtils.h5Jump("打卡提现", Constant.Param.PunchRecord, false, act)
JumpUtils
.
jumpClockInWithdrawActivity
()
JumpUtils
.
jumpClockInWithdrawActivity
()
}
}
/**
/**
* 拼图红包
* 拼图红包
*/
*/
...
@@ -212,6 +218,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -212,6 +218,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
}
}
})
})
}
}
/**
/**
* 兑换现金
* 兑换现金
*/
*/
...
@@ -266,34 +273,15 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -266,34 +273,15 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
fun
adFlyBox
()
{
fun
adFlyBox
()
{
if
(
flyBoxIsClick
)
{
if
(
flyBoxIsClick
)
{
flyBoxIsClick
=
false
flyBoxIsClick
=
false
AdManager
.
playRewardAd
(
AdUtils
.
playRewardAd
(
this
,
"box_click"
,
object
:
IAdVideoListener
{
ADConfig
.
AD_REWARD_VIDIO
,
override
fun
onAdClose
()
{
"box_click"
,
this
,
object
:
ZXADVideoListener
{
override
fun
onSuccess
()
{
flyBoxIsClick
=
true
}
override
fun
onAdShow
()
{
flyBoxIsClick
=
true
}
override
fun
onAdVideoBarClick
()
{
flyBoxIsClick
=
true
flyBoxIsClick
=
true
getFlyBoxReceive
()
}
}
override
fun
onError
(
errorMsg
:
String
?)
{
override
fun
onError
(
errorMsg
:
String
?)
{
flyBoxIsClick
=
true
flyBoxIsClick
=
true
}
}
override
fun
onAdClose
()
{
flyBoxIsClick
=
true
//看视频上报
getVideoAcceleratorsReceive
();
getFlyBoxReceive
()
}
})
})
}
}
}
}
...
@@ -306,35 +294,15 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -306,35 +294,15 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
fun
adRedPackPlan
()
{
fun
adRedPackPlan
()
{
if
(
flyBoxIsClick2
)
{
if
(
flyBoxIsClick2
)
{
flyBoxIsClick2
=
false
flyBoxIsClick2
=
false
AdManager
.
playRewardAd
(
AdUtils
.
playRewardAd
(
this
,
"bottom_open_red_envelope_click"
,
object
:
IAdVideoListener
{
ADConfig
.
AD_REWARD_VIDIO
,
override
fun
onAdClose
()
{
"bottom_open_red_envelope_click"
,
this
,
object
:
ZXADVideoListener
{
override
fun
onSuccess
()
{
flyBoxIsClick2
=
true
}
override
fun
onAdShow
()
{
flyBoxIsClick2
=
true
}
override
fun
onAdVideoBarClick
()
{
flyBoxIsClick2
=
true
flyBoxIsClick2
=
true
getRedPackPlanReceive
();
}
}
override
fun
onError
(
errorMsg
:
String
?)
{
override
fun
onError
(
errorMsg
:
String
?)
{
flyBoxIsClick2
=
true
flyBoxIsClick2
=
true
}
}
override
fun
onAdClose
()
{
flyBoxIsClick2
=
true
//看视频上报
getVideoAcceleratorsReceive
();
getRedPackPlanReceive
();
}
})
})
}
}
...
@@ -441,25 +409,13 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -441,25 +409,13 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
View
.
OnClickListener
{
View
.
OnClickListener
{
GameEvent
(
"click_receive_redPack_double"
,
"点击六倍领取"
)
GameEvent
(
"click_receive_redPack_double"
,
"点击六倍领取"
)
Log
.
d
(
"wxw"
,
"签到翻倍广告点击"
)
Log
.
d
(
"wxw"
,
"签到翻倍广告点击"
)
AdManager
.
playRewardAd
(
AdUtils
.
playRewardAd
(
this
@GameActivity
,
"receive_redPack_double_click"
,
object
:
IAdVideoListener
{
ADConfig
.
AD_REWARD_VIDIO
,
"receive_redPack_double_click"
,
this
@GameActivity
,
object
:
ZXADVideoListener
{
override
fun
onSuccess
()
{}
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
//看视频上报
getVideoAcceleratorsReceive
();
onRedPackAwardReceive
(
result
.
doubleX
.
multipleSid
)
onRedPackAwardReceive
(
result
.
doubleX
.
multipleSid
)
}
}
override
fun
onAdShow
()
{}
override
fun
onError
(
errorMsg
:
String
?)
{
}
override
fun
onAdVideoBarClick
()
{}
override
fun
onError
(
errorMsg
:
String
?)
{}
})
})
})
})
}
}
...
@@ -486,7 +442,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -486,7 +442,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
MainDialog
.
showgetWaterDrop
(
MainDialog
.
showgetWaterDrop
(
act
,
act
,
4
,
4
,
"
签到
"
,
"
redPack_double
"
,
result
.
rewardContentList
[
0
].
totalRewardNum
,
result
.
rewardContentList
[
0
].
totalRewardNum
,
null
null
)
)
...
@@ -508,15 +464,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -508,15 +464,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
Log
.
d
(
"wxw"
,
"云朵加速"
)
Log
.
d
(
"wxw"
,
"云朵加速"
)
if
(
cloudIsClick
)
{
if
(
cloudIsClick
)
{
cloudIsClick
=
false
cloudIsClick
=
false
AdManager
.
playRewardAd
(
AdUtils
.
playRewardAd
(
this
@GameActivity
,
"cloud_acceleration_click"
,
object
:
IAdVideoListener
{
ADConfig
.
AD_REWARD_VIDIO
,
"cloud_acceleration_click"
,
this
,
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
cloudIsClick
=
true
cloudIsClick
=
true
//看视频上报
getVideoAcceleratorsReceive
();
GameApiClient
.
gameApi
.
getCloudSpeed
()
GameApiClient
.
gameApi
.
getCloudSpeed
()
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
...
@@ -536,22 +486,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -536,22 +486,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
})
})
}
}
override
fun
onAdShow
()
{
cloudIsClick
=
true
}
override
fun
onAdVideoBarClick
()
{
cloudIsClick
=
true
}
override
fun
onError
(
errorMsg
:
String
?)
{
override
fun
onError
(
errorMsg
:
String
?)
{
cloudIsClick
=
true
cloudIsClick
=
true
}
}
override
fun
onSuccess
()
{
cloudIsClick
=
true
}
})
})
}
}
...
@@ -687,33 +624,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -687,33 +624,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
fun
getVideoSeedReceive
(
callback
:
IUnitySendMessageCallback
?,
id
:
Int
)
{
fun
getVideoSeedReceive
(
callback
:
IUnitySendMessageCallback
?,
id
:
Int
)
{
if
(
videoSeedClick
)
{
if
(
videoSeedClick
)
{
videoSeedClick
=
false
videoSeedClick
=
false
AdManager
.
playRewardAd
(
AdUtils
.
playRewardAd
(
this
@GameActivity
,
"receive_seed_click"
,
object
:
IAdVideoListener
{
ADConfig
.
AD_REWARD_VIDIO
,
"receive_seed_click"
,
this
,
object
:
ZXADVideoListener
{
override
fun
onSuccess
()
{
videoSeedClick
=
true
}
override
fun
onAdShow
()
{
videoSeedClick
=
true
}
override
fun
onAdVideoBarClick
()
{
videoSeedClick
=
true
}
override
fun
onError
(
errorMsg
:
String
?)
{
videoSeedClick
=
true
}
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
videoSeedClick
=
true
videoSeedClick
=
true
//看视频上报
getVideoAcceleratorsReceive
();
GameApiClient
.
gameApi
.
getVideoSeedReceive
(
id
)
GameApiClient
.
gameApi
.
getVideoSeedReceive
(
id
)
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
...
@@ -733,6 +646,10 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -733,6 +646,10 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
}
}
})
})
}
}
override
fun
onError
(
errorMsg
:
String
?)
{
videoSeedClick
=
true
}
})
})
}
}
...
@@ -757,31 +674,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -757,31 +674,9 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
fun
getVideoAcceleratorsReceive
(
callback
:
IUnitySendMessageCallback
?,
id
:
Int
)
{
fun
getVideoAcceleratorsReceive
(
callback
:
IUnitySendMessageCallback
?,
id
:
Int
)
{
if
(
videoJiasuClick
)
{
if
(
videoJiasuClick
)
{
videoJiasuClick
=
false
videoJiasuClick
=
false
AdManager
.
playRewardAd
(
AdUtils
.
playRewardAd
(
this
@GameActivity
,
"accelerator_receive_click"
,
object
:
IAdVideoListener
{
ADConfig
.
AD_REWARD_VIDIO
,
"accelerator_receive_click"
,
this
,
object
:
ZXADVideoListener
{
override
fun
onSuccess
()
{
videoJiasuClick
=
true
}
override
fun
onAdShow
()
{
videoJiasuClick
=
true
}
override
fun
onAdVideoBarClick
()
{
videoJiasuClick
=
true
}
override
fun
onError
(
errorMsg
:
String
?)
{
videoJiasuClick
=
true
}
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
videoJiasuClick
=
true
videoJiasuClick
=
true
//看视频上报
getVideoAcceleratorsReceive
();
GameApiClient
.
gameApi
.
getVideoAcceleratorsReceive
(
id
)
GameApiClient
.
gameApi
.
getVideoAcceleratorsReceive
(
id
)
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
...
@@ -804,41 +699,13 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -804,41 +699,13 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
})
})
}
}
})
override
fun
onError
(
errorMsg
:
String
?)
{
}
videoJiasuClick
=
true
// GameApiClient.gameApi.getVideoAcceleratorsReceive(id)
// .compose(RxSchedulers.observableIO2Main())
// .subscribe(object : BaseObserver<StatusEntity>() {
// override fun onSuccess(result: StatusEntity?) {
// Log.d("wxw", "看视频领取加速剂" + Utils.obj2Str(result))
// callback?.onIncrVideoAcceleratorsSuccess(true, Utils.obj2Str(result))
// }
//
// override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
// Log.d("wxw", "看视频领取加速剂 error")
// callback?.onIncrVideoAcceleratorsSuccess(false, errorMsg + "")
// }
// })
}
//看视频领上报
fun
getVideoAcceleratorsReceive
()
{
EventUtils
.
loadNextCacheRewardVideoAd
(
this
)
GameApiClient
.
gameApi
.
adVideoReport
()
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
override
fun
onSuccess
(
result
:
StatusEntity
?)
{
Log
.
d
(
"wxw"
,
"看视频上报 Success"
)
}
override
fun
onFailure
(
e
:
Throwable
?,
code
:
String
?,
errorMsg
:
String
?)
{
Log
.
d
(
"wxw"
,
"看视频上报 error"
)
}
}
})
})
}
}
}
fun
getFlyBoxReceive
()
{
fun
getFlyBoxReceive
()
{
GameApiClient
.
gameApi
.
getopenBox
()
GameApiClient
.
gameApi
.
getopenBox
()
...
...
app/src/main/java/com/ym/game/activity/ClockInWithdrawActitivy.kt
View file @
e4db3f85
package
com.ym.game.activity
package
com.ym.game.activity
import
android.content.DialogInterface
import
android.text.Html
import
android.text.Html
import
android.view.View
import
android.view.View
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.LinearLayoutManager
import
com.bird.cc.id
import
com.ym.ddcy.R
import
com.ym.ddcy.R
import
com.ym.game.adapter.ClockInWithdrawAdpater
import
com.ym.game.adapter.ClockInWithdrawAdpater
import
com.ym.game.contract.ClockInWithdrawContract
import
com.ym.game.contract.ClockInWithdrawContract
import
com.ym.game.presenter.ClockInWithdrawPresenter
import
com.ym.game.presenter.ClockInWithdrawPresenter
import
com.ym.game.view.MainDialog
import
com.ym.library.Constant
import
com.ym.library.Constant
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.module.ClockInWithdrawEntity
import
com.ym.library.module.ClockInWithdrawEntity
import
com.ym.library.module.ExchangeEntity
import
com.ym.library.net.BaseActivity
import
com.ym.library.net.BaseActivity
import
com.ym.library.utils.CenterDialog
import
com.ym.library.utils.CenterDialog
import
kotlinx.android.synthetic.main.activity_clock_in_withdraw.*
import
kotlinx.android.synthetic.main.activity_clock_in_withdraw.*
...
@@ -43,7 +45,11 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
...
@@ -43,7 +45,11 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
recycler_clock_in
?.
adapter
=
mAdapter
recycler_clock_in
?.
adapter
=
mAdapter
}
}
override
fun
onItemClick
(
view
:
View
,
position
:
Int
,
data
:
ClockInWithdrawEntity
.
ClockInItemEntity
)
{
override
fun
onItemClick
(
view
:
View
,
position
:
Int
,
data
:
ClockInWithdrawEntity
.
ClockInItemEntity
)
{
mData
=
data
mData
=
data
if
(
data
.
special
==
1
)
{
if
(
data
.
special
==
1
)
{
mPresenter
?.
getFlyBoxReceive
(
this
)
mPresenter
?.
getFlyBoxReceive
(
this
)
...
@@ -55,10 +61,10 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
...
@@ -55,10 +61,10 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
//任务列表结果
//任务列表结果
override
fun
clockInWithdrawListResult
(
result
:
ClockInWithdrawEntity
?)
{
override
fun
clockInWithdrawListResult
(
result
:
ClockInWithdrawEntity
?)
{
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
Constant
.
videoNum
=
result
?.
videoNum
?:
20
Constant
.
videoNum
=
result
?.
videoNum
?:
20
tv_clock_in_days
?.
text
=
tv_clock_in_days
?.
text
=
Html
.
fromHtml
(
"已连续打卡
<font color=\"#8F2C0F\"><big>${result?.clockNum}</big></font>
天"
)
Html
.
fromHtml
(
"已连续打卡
<font color=\"#8F2C0F\"><big>${result?.clockNum}</big></font>
天"
)
tv_clock_in_info
?.
text
=
"每日观看${result?.videoNum}个视频即可完成打卡"
tv_clock_in_info
?.
text
=
"每日观看${result?.videoNum}个视频即可完成打卡"
mAdapter
?.
clear
()
mAdapter
?.
clear
()
...
@@ -68,16 +74,18 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
...
@@ -68,16 +74,18 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
}
}
//提现结果
//提现结果
override
fun
dowdResult
(
result
:
ClockInWithdraw
Entity
?)
{
override
fun
dowdResult
(
result
:
Exchange
Entity
?)
{
mPresenter
?.
getClockInWithdrawList
()
mPresenter
?.
getClockInWithdrawList
()
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
CenterDialog
.
showgetWaterDrop
(
MainDialog
?.
showWithDraw
(
this
,
this
,
3
,
result
.
status
,
mData
?.
cashStr
?.
toInt
()
!!
,
result
.
title
,
DialogInterface
.
OnCancelListener
{
result
.
reason
,
result
.
buttonText
,
},
result
.
buttonStatus
,
null
,
4
,
null
null
)
)
}
}
...
...
app/src/main/java/com/ym/game/activity/WelfareActivity.kt
View file @
e4db3f85
...
@@ -14,15 +14,13 @@ import com.ym.game.contract.WelfareContract
...
@@ -14,15 +14,13 @@ import com.ym.game.contract.WelfareContract
import
com.ym.game.listener.IDialogViewCloseCallback
import
com.ym.game.listener.IDialogViewCloseCallback
import
com.ym.game.presenter.WelfarePresenter
import
com.ym.game.presenter.WelfarePresenter
import
com.ym.game.view.MainDialog
import
com.ym.game.view.MainDialog
import
com.ym.library.listener.IAdVideoListener
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.module.*
import
com.ym.library.module.*
import
com.ym.library.net.BaseActivity
import
com.ym.library.net.BaseActivity
import
com.ym.library.utils.ADConfig
import
com.ym.library.utils.*
import
com.ym.library.utils.CenterDialog
import
com.ym.library.utils.EventUtils.loadNextCacheRewardVideoAd
import
com.ym.library.utils.EventUtils.loadNextCacheRewardVideoAd
import
com.ym.library.utils.EventUtils.requestReport
import
com.ym.library.utils.EventUtils.requestReport
import
com.ym.library.utils.JumpUtils
import
com.ym.library.utils.Utils
import
kotlinx.android.synthetic.main.activity_welfare.*
import
kotlinx.android.synthetic.main.activity_welfare.*
class
WelfareActivity
:
BaseActivity
(),
WelfareContract
.
View
,
class
WelfareActivity
:
BaseActivity
(),
WelfareContract
.
View
,
...
@@ -97,7 +95,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
...
@@ -97,7 +95,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
mDiamonList
.
clear
()
mDiamonList
.
clear
()
tv_welfare_diamond_conut
?.
text
=
"集齐${result?.max}颗钻石可获得宝箱奖励"
tv_welfare_diamond_conut
?.
text
=
"集齐${result?.max}颗钻石可获得宝箱奖励"
tv_welfare_diamond_progress
?.
text
=
tv_welfare_diamond_progress
?.
text
=
Html
.
fromHtml
(
"
:
<font color=\"#FF5A44\">${result?.coins}</font>/${result?.max}"
)
Html
.
fromHtml
(
"<font color=\"#FF5A44\">${result?.coins}</font>/${result?.max}"
)
var
i
=
0
var
i
=
0
while
(
i
<
7
)
{
while
(
i
<
7
)
{
...
@@ -136,6 +134,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
...
@@ -136,6 +134,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
this
,
this
,
3
,
3
,
mData
?.
coins
?.
toInt
()
!!
,
mData
?.
coins
?.
toInt
()
!!
,
"welfare_task_receive"
,
DialogInterface
.
OnCancelListener
{
DialogInterface
.
OnCancelListener
{
},
},
...
@@ -148,7 +147,6 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
...
@@ -148,7 +147,6 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
override
fun
taskCashResult
(
result
:
List
<
FlyBoxEntity
>?)
{
override
fun
taskCashResult
(
result
:
List
<
FlyBoxEntity
>?)
{
mPresenter
?.
getDiamondList
()
mPresenter
?.
getDiamondList
()
if
(
result
!=
null
&&
result
.
isNotEmpty
())
{
if
(
result
!=
null
&&
result
.
isNotEmpty
())
{
CenterDialog
.
showGuideGetMoney
(
this
,
"0.3"
,
null
)
MainDialog
.
showWelfareOpenBox
(
this
,
result
,
object
:
IDialogViewCloseCallback
{
MainDialog
.
showWelfareOpenBox
(
this
,
result
,
object
:
IDialogViewCloseCallback
{
override
fun
onCloseViewSuccess
(
isSuccess
:
Boolean
)
{
override
fun
onCloseViewSuccess
(
isSuccess
:
Boolean
)
{
...
@@ -158,6 +156,16 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
...
@@ -158,6 +156,16 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
}
}
fun
showAd
(
sId
:
Int
)
{
fun
showAd
(
sId
:
Int
)
{
AdUtils
.
playRewardAd
(
this
,
"welfare_task"
,
object
:
IAdVideoListener
{
override
fun
onAdClose
()
{
mPresenter
?.
getWelfareVideoReport
(
sId
)
}
override
fun
onError
(
errorMsg
:
String
?)
{
}
})
AdManager
.
playRewardAd
(
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
ADConfig
.
AD_REWARD_VIDIO
,
"welfare_task"
,
"welfare_task"
,
...
@@ -167,7 +175,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
...
@@ -167,7 +175,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
override
fun
onAdShow
()
{}
override
fun
onAdShow
()
{}
override
fun
onAdVideoBarClick
()
{}
override
fun
onAdVideoBarClick
()
{}
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
mPresenter
?.
getWelfareVideoReport
(
sId
)
requestReport
()
requestReport
()
loadNextCacheRewardVideoAd
(
this
@WelfareActivity
)
loadNextCacheRewardVideoAd
(
this
@WelfareActivity
)
}
}
...
...
app/src/main/java/com/ym/game/adapter/ClockInWithdrawAdpater.kt
View file @
e4db3f85
...
@@ -10,6 +10,7 @@ import android.view.View
...
@@ -10,6 +10,7 @@ import android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
import
android.widget.*
import
android.widget.*
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
com.bird.cc.it
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.base.BaseRecyclerAdapter
import
com.ym.library.base.BaseRecyclerAdapter
import
com.ym.ddcy.R
import
com.ym.ddcy.R
...
@@ -52,7 +53,7 @@ class ClockInWithdrawAdpater :
...
@@ -52,7 +53,7 @@ class ClockInWithdrawAdpater :
if
(
holder
is
ClockInWithdrawHolder
)
{
if
(
holder
is
ClockInWithdrawHolder
)
{
holder
?.
tvDayNum
.
text
=
"第${data?.needClockNum}天"
holder
?.
tvDayNum
.
text
=
"第${data?.needClockNum}天"
holder
?.
tvMoney
.
text
=
holder
?.
tvMoney
.
text
=
Html
.
fromHtml
(
"
${data?.cashStr}<small><small>元</small></small>
"
)
Html
.
fromHtml
(
"
可提现${data?.cashStr}元
"
)
holder
?.
tvMoneyRedPg
.
text
=
holder
?.
tvMoneyRedPg
.
text
=
Html
.
fromHtml
(
"${data?.cashStr}<small><small>元</small></small>"
)
Html
.
fromHtml
(
"${data?.cashStr}<small><small>元</small></small>"
)
...
@@ -68,15 +69,15 @@ class ClockInWithdrawAdpater :
...
@@ -68,15 +69,15 @@ class ClockInWithdrawAdpater :
//普通任务
//普通任务
holder
?.
tvDayNum
?.
setTextColor
(
Color
.
parseColor
(
"#ED7624"
))
holder
?.
tvDayNum
?.
setTextColor
(
Color
.
parseColor
(
"#ED7624"
))
holder
?.
tvAdNum
.
text
=
holder
?.
tvAdNum
.
text
=
Html
.
fromHtml
(
"<font color=\"#8C856F\"><small>
还差 </small>
</font>${Constant.videoNum}<font color=\"#8C856F\"><small> 个视频完成打卡</small></font>"
)
Html
.
fromHtml
(
"<font color=\"#8C856F\"><small>
差 </small><
</font>${Constant.videoNum}<font color=\"#8C856F\"><small> 个视频完成打卡</small></font>"
)
holder
?.
tvMoney
?.
visibility
=
View
.
GONE
holder
?.
tvMoney
?.
visibility
=
View
.
GONE
if
(
data
?.
currentNum
!=
null
&&
data
?.
targetNum
!=
null
)
{
//
if (data?.currentNum != null && data?.targetNum != null) {
if
(
data
?.
currentNum
!!
>=
data
?.
targetNum
!!
)
{
//
if (data?.currentNum!! >= data?.targetNum!!) {
startAnimator
(
holder
?.
ivRightStatus
)
//
startAnimator(holder?.ivRightStatus)
}
//
}
}
//
}
if
(
data
.
status
==
2
)
{
if
(
data
.
status
==
2
)
{
//当天任务,已完成
//当天任务,已完成
...
@@ -127,13 +128,32 @@ class ClockInWithdrawAdpater :
...
@@ -127,13 +128,32 @@ class ClockInWithdrawAdpater :
holder
?.
ivRedPgStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_red_pg_gray
)
holder
?.
ivRedPgStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_red_pg_gray
)
holder
.
ivRedPgStatus
.
clearAnimation
()
holder
.
ivRedPgStatus
.
clearAnimation
()
holder
?.
ivRightStatus
.
clearAnimation
()
holder
?.
ivRightStatus
.
clearAnimation
()
}
else
if
(
data
?.
status
==
8
)
{
holder
?.
layoutCenter
.
visibility
=
View
.
VISIBLE
holder
?.
ivRightStatus
.
visibility
=
View
.
VISIBLE
holder
?.
layoutProgress
.
visibility
=
View
.
VISIBLE
holder
?.
ivRedPgStatus
.
visibility
=
View
.
GONE
holder
?.
tvComplete
.
visibility
=
View
.
GONE
holder
?.
layoutRedPg
.
visibility
=
View
.
GONE
holder
?.
tvMoneyRedPg
.
visibility
=
View
.
GONE
holder
?.
ivBg
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_bg
)
holder
?.
ivRightStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_red_pg
)
holder
?.
tvProgress
.
text
=
"${data?.currentNum}/${data?.targetNum}"
holder
?.
progressBar
.
max
=
data
?.
targetNum
?:
10
holder
?.
progressBar
.
progress
=
data
?.
currentNum
?:
0
holder
.
ivRedPgStatus
.
clearAnimation
()
startAnimator
(
holder
?.
ivRightStatus
)
}
}
}
}
2
->
{
2
->
{
//提现任务
//提现任务
holder
?.
ivBg
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_yellow_bg
)
holder
?.
ivBg
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_yellow_bg
)
holder
?.
tvAdNum
.
text
=
holder
?.
tvAdNum
.
text
=
Html
.
fromHtml
(
"<font color=\"#8F2C0F\"><small>
还
差 </small></font>${Constant.videoNum}<font color=\"#8F2C0F\"><small> 个视频完成打卡</small></font>"
)
Html
.
fromHtml
(
"<font color=\"#8F2C0F\"><small>差 </small></font>${Constant.videoNum}<font color=\"#8F2C0F\"><small> 个视频完成打卡</small></font>"
)
if
(
data
.
status
==
3
||
data
.
status
==
1
)
{
if
(
data
.
status
==
3
||
data
.
status
==
1
)
{
// 当天任务,未完成打卡
// 当天任务,未完成打卡
...
@@ -181,7 +201,7 @@ class ClockInWithdrawAdpater :
...
@@ -181,7 +201,7 @@ class ClockInWithdrawAdpater :
}
}
3
->
{
3
->
{
holder
?.
tvAdNum
.
text
=
holder
?.
tvAdNum
.
text
=
Html
.
fromHtml
(
"<font color=\"#8F2C0F\"><small>
还
差 </small></font>${Constant.videoNum}<font color=\"#8F2C0F\"><small> 个视频完成打卡</small></font>"
)
Html
.
fromHtml
(
"<font color=\"#8F2C0F\"><small>差 </small></font>${Constant.videoNum}<font color=\"#8F2C0F\"><small> 个视频完成打卡</small></font>"
)
holder
?.
tvDayNum
?.
setTextColor
(
Color
.
parseColor
(
"#ffffff"
))
holder
?.
tvDayNum
?.
setTextColor
(
Color
.
parseColor
(
"#ffffff"
))
holder
?.
ivRedPgStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_phone
)
holder
?.
ivRedPgStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_phone
)
holder
?.
ivBg
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_yellow_bg
)
holder
?.
ivBg
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_yellow_bg
)
...
@@ -202,11 +222,19 @@ class ClockInWithdrawAdpater :
...
@@ -202,11 +222,19 @@ class ClockInWithdrawAdpater :
}
}
holder
?.
itemView
.
setOnClickListener
{
holder
?.
itemView
.
setOnClickListener
{
if
(
data
.
status
==
7
||
data
?.
status
==
5
||
data
?.
status
==
3
||
data
?.
status
==
4
)
{
if
(
data
?.
status
==
3
||
data
?.
status
==
4
)
{
Utils
.
showToast
(
mContext
,
"快去完成打卡吧"
)
if
(
data
?.
special
==
1
)
{
Utils
.
showToast
(
mContext
,
"完成打卡可领取奖励"
)
}
else
if
(
data
?.
special
==
2
)
{
Utils
.
showToast
(
mContext
,
"完成打卡可提现"
)
}
}
else
if
(
data
.
status
==
6
||
data
.
status
==
2
)
{
}
else
if
(
data
.
status
==
6
||
data
.
status
==
2
)
{
Utils
.
showToast
(
mContext
,
"已提现"
)
Utils
.
showToast
(
mContext
,
"已领取"
)
}
else
if
(
data
.
status
==
1
||
data
?.
currentNum
!!
>=
data
?.
targetNum
!!
)
{
}
}
holder
?.
layoutRedPg
.
setOnClickListener
{
if
(
data
.
status
==
1
||
data
?.
status
==
8
||
(
data
?.
currentNum
!=
null
&&
data
?.
targetNum
!=
null
&&
data
?.
currentNum
!!
>=
data
?.
targetNum
!!
))
{
listener
?.
onItemClick
(
it
,
position
,
mList
[
position
])
listener
?.
onItemClick
(
it
,
position
,
mList
[
position
])
}
}
}
}
...
...
app/src/main/java/com/ym/game/adapter/PuzzleBottomAdapter.kt
View file @
e4db3f85
package
com.ym.
piggybank
.adapter
package
com.ym.
game
.adapter
import
android.view.LayoutInflater
import
android.view.LayoutInflater
import
android.view.View
import
android.view.View
...
@@ -6,10 +6,10 @@ import android.view.ViewGroup
...
@@ -6,10 +6,10 @@ import android.view.ViewGroup
import
android.widget.TextView
import
android.widget.TextView
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
com.ym.ddcy.R
import
com.ym.ddcy.R
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.module.PuzzleEntity
import
com.ym.library.module.PuzzleEntity
import
com.ym.modulecommon.AppliContext
import
com.ym.modulecommon.AppliContext
import
com.ym.modulecommon.base.BaseRecyclerAdapter
import
com.ym.modulecommon.base.BaseRecyclerAdapter
import
com.ym.task.module.listener.OnRecycleItemClickListener
class
PuzzleBottomAdapter
:
BaseRecyclerAdapter
<
PuzzleEntity
.
PuzzleData
,
RecyclerView
.
ViewHolder
>
{
class
PuzzleBottomAdapter
:
BaseRecyclerAdapter
<
PuzzleEntity
.
PuzzleData
,
RecyclerView
.
ViewHolder
>
{
...
...
app/src/main/java/com/ym/game/adapter/SpeedWaterTaskAdapter.kt
View file @
e4db3f85
...
@@ -115,7 +115,7 @@ class SpeedWaterTaskAdapter :
...
@@ -115,7 +115,7 @@ class SpeedWaterTaskAdapter :
adType
=
"高额"
adType
=
"高额"
}
}
MainDialog
.
showgetWaterDrop
(
mContext
,
5
,
adType
,
data
.
awardNum
,
null
)
MainDialog
.
showgetWaterDrop
(
mContext
,
5
,
"task_accelerator"
,
data
.
awardNum
,
null
)
}
}
}
}
...
...
app/src/main/java/com/ym/game/adapter/WateringTaskAdpater.kt
View file @
e4db3f85
...
@@ -130,7 +130,7 @@ class WateringTaskAdpater :
...
@@ -130,7 +130,7 @@ class WateringTaskAdpater :
adType
=
"高额"
adType
=
"高额"
}
}
MainDialog
.
showgetWaterDrop
(
mContext
,
4
,
adType
,
data
.
awardNum
,
null
)
MainDialog
.
showgetWaterDrop
(
mContext
,
4
,
"task_coins"
,
data
.
awardNum
,
null
)
}
}
}
}
...
...
app/src/main/java/com/ym/game/application/BaseApplication.kt
View file @
e4db3f85
...
@@ -22,6 +22,7 @@ import com.ym.library.Constant
...
@@ -22,6 +22,7 @@ import com.ym.library.Constant
import
com.ym.modulecommon.AppliContext
import
com.ym.modulecommon.AppliContext
import
com.ym.modulecommon.base.SplashResumeActivity
import
com.ym.modulecommon.base.SplashResumeActivity
import
com.ym.modulecommon.net.NetConfig
import
com.ym.modulecommon.net.NetConfig
import
com.ym.modulecommon.utils.LogUtils
import
java.io.BufferedReader
import
java.io.BufferedReader
import
java.io.FileReader
import
java.io.FileReader
import
java.io.IOException
import
java.io.IOException
...
@@ -55,8 +56,7 @@ class BaseApplication : MultiDexApplication() {
...
@@ -55,8 +56,7 @@ class BaseApplication : MultiDexApplication() {
NetConfig
.
BASE_FEED_URL
=
"http://feedapitest2.zhangxinhulian.com/"
NetConfig
.
BASE_FEED_URL
=
"http://feedapitest2.zhangxinhulian.com/"
// Constant.appLs = "afcbef40e31631d3"//appls
// Constant.appLs = "afcbef40e31631d3"//appls
AdManager
.
init
(
this
,
"afcbef40e31631d3"
)
AdManager
.
init
(
this
,
"afcbef40e31631d3"
)
LogUtils
.
getConfig
().
logSwitch
=
true
UMConfigure
.
setLogEnabled
(
true
)
UMConfigure
.
setLogEnabled
(
true
)
UMConfigure
.
init
(
this
,
"5f9bb48945b2b751a91fb2d5"
,
""
,
UMConfigure
.
DEVICE_TYPE_PHONE
,
""
)
UMConfigure
.
init
(
this
,
"5f9bb48945b2b751a91fb2d5"
,
""
,
UMConfigure
.
DEVICE_TYPE_PHONE
,
""
)
PlatformConfig
.
setWeixin
(
Constant
.
WX_APPID
,
Constant
.
WX_APPKEY
)
PlatformConfig
.
setWeixin
(
Constant
.
WX_APPID
,
Constant
.
WX_APPKEY
)
...
...
app/src/main/java/com/ym/game/contract/ClockInWithdrawContract.kt
View file @
e4db3f85
package
com.ym.game.contract
package
com.ym.game.contract
import
com.ym.library.module.ClockInWithdrawEntity
import
com.ym.library.module.ClockInWithdrawEntity
import
com.ym.library.module.ExchangeEntity
class
ClockInWithdrawContract
{
class
ClockInWithdrawContract
{
interface
View
{
interface
View
{
fun
clockInWithdrawListResult
(
result
:
ClockInWithdrawEntity
?)
fun
clockInWithdrawListResult
(
result
:
ClockInWithdrawEntity
?)
fun
dowdResult
(
result
:
ClockInWithdraw
Entity
?)
fun
dowdResult
(
result
:
Exchange
Entity
?)
}
}
interface
Presenter
{
interface
Presenter
{
...
...
app/src/main/java/com/ym/game/listener/AdCallback.java
deleted
100644 → 0
View file @
6cfd79f2
package
com
.
ym
.
game
.
listener
;
/**
* Created by gaoleichao on 2018/12/3.
*/
public
interface
AdCallback
<
T
>
{
void
onResult
(
int
code
,
T
result
);
}
app/src/main/java/com/ym/game/listener/OnGdtAdListener.kt
deleted
100644 → 0
View file @
6cfd79f2
package
com.ym.task.module.listener
//import com.qq.e.ads.nativ.NativeExpressADView
/**
* Created by gaoleichao on 2019/1/9
*/
interface
OnGdtAdListener
{
// fun onSuc(data: MutableList<NativeExpressADView>?)
fun
onError
()
fun
onAdClick
()
fun
onAdExposure
()
}
\ No newline at end of file
app/src/main/java/com/ym/game/listener/OnRecycleItemClickListener.kt
deleted
100644 → 0
View file @
6cfd79f2
package
com.ym.task.module.listener
/**
* Created by Antonio on 2019/5/8.
*/
import
android.view.View
interface
OnRecycleItemClickListener
<
T
>
{
fun
onItemClick
(
view
:
View
,
position
:
Int
,
data
:
T
)
}
\ No newline at end of file
app/src/main/java/com/ym/game/presenter/ClockInWithdrawPresenter.kt
View file @
e4db3f85
...
@@ -5,6 +5,7 @@ import com.ym.game.contract.ClockInWithdrawContract
...
@@ -5,6 +5,7 @@ import com.ym.game.contract.ClockInWithdrawContract
import
com.ym.game.listener.IDialogViewCloseCallback
import
com.ym.game.listener.IDialogViewCloseCallback
import
com.ym.game.view.MainDialog
import
com.ym.game.view.MainDialog
import
com.ym.library.module.ClockInWithdrawEntity
import
com.ym.library.module.ClockInWithdrawEntity
import
com.ym.library.module.ExchangeEntity
import
com.ym.library.module.FlyBoxEntity
import
com.ym.library.module.FlyBoxEntity
import
com.ym.library.net.BaseObserver
import
com.ym.library.net.BaseObserver
import
com.ym.library.net.GameApiClient
import
com.ym.library.net.GameApiClient
...
@@ -28,7 +29,7 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
...
@@ -28,7 +29,7 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
}
}
override
fun
onFailure
(
e
:
Throwable
?,
code
:
String
?,
errorMsg
:
String
?)
{
override
fun
onFailure
(
e
:
Throwable
?,
code
:
String
?,
errorMsg
:
String
?)
{
mView
?.
dowd
Result
(
null
)
mView
?.
clockInWithdrawList
Result
(
null
)
}
}
})
})
}
}
...
@@ -36,8 +37,8 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
...
@@ -36,8 +37,8 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
override
fun
getDoWd
(
id
:
Int
)
{
override
fun
getDoWd
(
id
:
Int
)
{
GameApiClient
.
gameApi
.
getDoWd
(
id
).
compose
(
GameApiClient
.
gameApi
.
getDoWd
(
id
).
compose
(
RxSchedulers
.
observableIO2Main
()
RxSchedulers
.
observableIO2Main
()
).
subscribe
(
object
:
BaseObserver
<
ClockInWithdraw
Entity
>()
{
).
subscribe
(
object
:
BaseObserver
<
Exchange
Entity
>()
{
override
fun
onSuccess
(
result
:
ClockInWithdraw
Entity
?)
{
override
fun
onSuccess
(
result
:
Exchange
Entity
?)
{
mView
?.
dowdResult
(
result
)
mView
?.
dowdResult
(
result
)
}
}
...
@@ -49,7 +50,7 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
...
@@ -49,7 +50,7 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
fun
getFlyBoxReceive
(
activity
:
Activity
)
{
fun
getFlyBoxReceive
(
activity
:
Activity
)
{
GameApiClient
.
gameApi
.
ge
topenBox
()
GameApiClient
.
gameApi
.
ge
ClockBoxReceive
()
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
FlyBoxEntity
>()
{
.
subscribe
(
object
:
BaseObserver
<
FlyBoxEntity
>()
{
override
fun
onSuccess
(
result
:
FlyBoxEntity
?)
{
override
fun
onSuccess
(
result
:
FlyBoxEntity
?)
{
...
...
app/src/main/java/com/ym/game/view/MainDialog.kt
View file @
e4db3f85
...
@@ -9,6 +9,7 @@ import android.view.MotionEvent
...
@@ -9,6 +9,7 @@ import android.view.MotionEvent
import
android.view.View
import
android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
import
android.widget.*
import
android.widget.*
import
com.bird.cc.it
import
com.bytedance.sdk.openadsdk.TTNativeExpressAd
import
com.bytedance.sdk.openadsdk.TTNativeExpressAd
import
com.qq.e.ads.nativ.NativeExpressADView
import
com.qq.e.ads.nativ.NativeExpressADView
import
com.ym.admodule.config.AdManager
import
com.ym.admodule.config.AdManager
...
@@ -24,7 +25,7 @@ import com.ym.library.utils.*
...
@@ -24,7 +25,7 @@ import com.ym.library.utils.*
object
MainDialog
{
object
MainDialog
{
var
adView
:
Any
?
=
null
var
adView
:
Any
?
=
null
fun
showBottomDialog
(
fun
showBottomDialog
(
layout
:
Int
,
layout
:
Int
,
...
@@ -34,7 +35,7 @@ object MainDialog {
...
@@ -34,7 +35,7 @@ object MainDialog {
gravity
:
Int
gravity
:
Int
):
View
{
):
View
{
adView
=
null
adView
=
null
val
mDialogView
=
View
.
inflate
(
activity
,
layout
,
null
)
val
mDialogView
=
View
.
inflate
(
activity
,
layout
,
null
)
setHeadDialog
.
setContentView
(
mDialogView
)
setHeadDialog
.
setContentView
(
mDialogView
)
...
@@ -73,19 +74,12 @@ object MainDialog {
...
@@ -73,19 +74,12 @@ object MainDialog {
)
)
val
layoutAd
=
mDialogView
?.
findViewById
<
FrameLayout
>(
R
.
id
.
layout_get_drop_ad2
)
val
layoutAd
=
mDialogView
?.
findViewById
<
FrameLayout
>(
R
.
id
.
layout_get_drop_ad2
)
AdManager
.
loadFeedAd
(
AdUtils
.
showFeedAd
(
activity
,
"receive_redPack_double_click"
,
layoutAd
)
ADConfig
.
AD_IMG_FADE
,
activity
,
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
activity
).
toFloat
())
-
56
,
((
Utils
.
px2dip
(
activity
.
windowManager
?.
defaultDisplay
?.
width
!!
.
toFloat
())
-
56
)
*
0.66
).
toInt
()
),
layoutAd
)
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
onDestroy
()
onDestroy
()
EventUtils
.
loadFeedCacheAdToCache
(
activity
)
}
}
})
})
...
@@ -185,15 +179,7 @@ object MainDialog {
...
@@ -185,15 +179,7 @@ object MainDialog {
}
}
}
}
AdUtils
.
showFeedAd
(
context
,
adType
,
layoutAd
)
// shwoAd(adType, context, layoutAd)
AdManager
.
loadFeedAd
(
ADConfig
.
AD_IMG_FADE
,
context
,
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
context
).
toFloat
())
-
56
,
245
),
layoutAd
)
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
btn_get_drop_happy_accept
).
setOnClickListener
{
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
btn_get_drop_happy_accept
).
setOnClickListener
{
mDialog
.
dismiss
()
mDialog
.
dismiss
()
...
@@ -202,9 +188,10 @@ object MainDialog {
...
@@ -202,9 +188,10 @@ object MainDialog {
mDialog
.
dismiss
()
mDialog
.
dismiss
()
}
}
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
onDestroy
()
onDestroy
()
EventUtils
.
loadFeedCacheAdToCache
(
context
)
}
}
})
})
...
@@ -333,19 +320,13 @@ object MainDialog {
...
@@ -333,19 +320,13 @@ object MainDialog {
mDialog
.
dismiss
()
mDialog
.
dismiss
()
mListener
.
onCloseViewSuccess
(
true
)
mListener
.
onCloseViewSuccess
(
true
)
}
}
AdManager
.
loadFeedAd
(
ADConfig
.
AD_IMG_FADE
,
(
context
as
Activity
),
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
context
).
toFloat
())
-
56
,
((
Utils
.
px2dip
(
context
.
windowManager
?.
defaultDisplay
?.
width
!!
.
toFloat
())
-
56
)
*
0.66
).
toInt
()
),
layoutAd
)
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
AdUtils
.
showFeedAd
((
context
as
Activity
),
adType
,
layoutAd
)
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
onDestroy
()
onDestroy
()
EventUtils
.
loadFeedCacheAdToCache
(
context
)
}
}
})
})
...
@@ -412,19 +393,13 @@ object MainDialog {
...
@@ -412,19 +393,13 @@ object MainDialog {
mDialog
.
dismiss
()
mDialog
.
dismiss
()
mListener
.
onCloseViewSuccess
(
true
)
mListener
.
onCloseViewSuccess
(
true
)
}
}
AdManager
.
loadFeedAd
(
ADConfig
.
AD_IMG_FADE
,
(
context
as
Activity
),
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
context
).
toFloat
())
-
56
,
((
Utils
.
px2dip
(
context
.
windowManager
?.
defaultDisplay
?.
width
!!
.
toFloat
())
-
56
)
*
0.66
).
toInt
()
),
layoutAd
)
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
AdUtils
.
showFeedAd
((
context
as
Activity
),
"welfare_openbox"
,
layoutAd
)
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
onDestroy
()
onDestroy
()
EventUtils
.
loadFeedCacheAdToCache
((
context
as
Activity
))
}
}
})
})
...
@@ -441,9 +416,9 @@ object MainDialog {
...
@@ -441,9 +416,9 @@ object MainDialog {
reason
:
String
,
reason
:
String
,
buttonText
:
String
,
buttonText
:
String
,
buttonStatus
:
Int
,
buttonStatus
:
Int
,
id
:
Int
,
id
:
Int
?
,
type
:
Int
,
type
:
Int
?
,
jine
:
Int
jine
:
Int
?
)
{
)
{
if
(
context
==
null
)
{
if
(
context
==
null
)
{
...
@@ -471,6 +446,7 @@ object MainDialog {
...
@@ -471,6 +446,7 @@ object MainDialog {
}
else
if
(
type
==
4
)
{
}
else
if
(
type
==
4
)
{
EventUtils
.
onEvent
(
"show_fuli0.3"
,
"福利0.3"
)
EventUtils
.
onEvent
(
"show_fuli0.3"
,
"福利0.3"
)
}
else
{
}
else
{
if
(
id
!=
null
)
{
when
(
id
)
{
when
(
id
)
{
1
->
{
1
->
{
EventUtils
.
onEvent
(
"show_baicai"
,
"白菜"
+
jine
)
EventUtils
.
onEvent
(
"show_baicai"
,
"白菜"
+
jine
)
...
@@ -487,6 +463,7 @@ object MainDialog {
...
@@ -487,6 +463,7 @@ object MainDialog {
}
}
}
}
}
}
}
2
->
{
2
->
{
imgtitle
.
setImageResource
(
R
.
mipmap
.
img_duihuan_success
)
imgtitle
.
setImageResource
(
R
.
mipmap
.
img_duihuan_success
)
imggoon
.
setImageResource
(
R
.
mipmap
.
img_go_on_make_money
)
imggoon
.
setImageResource
(
R
.
mipmap
.
img_go_on_make_money
)
...
@@ -505,6 +482,10 @@ object MainDialog {
...
@@ -505,6 +482,10 @@ object MainDialog {
imgtitle
.
setImageResource
(
R
.
mipmap
.
img_wenxin_trip
)
imgtitle
.
setImageResource
(
R
.
mipmap
.
img_wenxin_trip
)
imggoon
.
setImageResource
(
R
.
mipmap
.
img_go_zhongcai
)
imggoon
.
setImageResource
(
R
.
mipmap
.
img_go_zhongcai
)
}
}
6
->
{
imgtitle
.
setImageResource
(
R
.
mipmap
.
img_wenxin_trip
)
imggoon
.
setImageResource
(
R
.
mipmap
.
img_go_zhongcai
)
}
}
}
...
@@ -530,7 +511,7 @@ object MainDialog {
...
@@ -530,7 +511,7 @@ object MainDialog {
fun
showActivityDesc
(
activity
:
Activity
)
{
fun
showActivityDesc
(
activity
:
Activity
)
{
if
(
activity
==
null
)
return
if
(
activity
==
null
)
return
val
mDialog
=
Dialog
(
activity
,
R
.
style
.
UpdateVersionCompatDialogTheme
)
val
mDialog
=
Dialog
(
activity
,
R
.
style
.
UpdateVersionCompatDialogTheme
)
val
mDialogView
=
showBottomDialog
(
val
mDialogView
=
showBottomDialog
(
R
.
layout
.
dialog_activity_desc
,
R
.
layout
.
dialog_activity_desc
,
activity
,
activity
,
mDialog
,
mDialog
,
...
@@ -544,11 +525,16 @@ object MainDialog {
...
@@ -544,11 +525,16 @@ object MainDialog {
mDialog
?.
setCancelable
(
false
)
mDialog
?.
setCancelable
(
false
)
mDialog
?.
show
()
mDialog
?.
show
()
}
}
// 获取碎片红包时的弹窗
// 获取碎片红包时的弹窗
fun
showDialoggetPuzzle
(
activity
:
Activity
?,
diffCardsNum
:
Int
,
onClickListener
:
View
.
OnClickListener
){
fun
showDialoggetPuzzle
(
activity
:
Activity
?,
diffCardsNum
:
Int
,
onClickListener
:
View
.
OnClickListener
)
{
if
(
activity
==
null
)
return
if
(
activity
==
null
)
return
val
mDialog
=
Dialog
(
activity
,
R
.
style
.
UpdateVersionCompatDialogTheme
)
val
mDialog
=
Dialog
(
activity
,
R
.
style
.
UpdateVersionCompatDialogTheme
)
val
mDialogView
=
showBottomDialog
(
val
mDialogView
=
showBottomDialog
(
R
.
layout
.
dialog_get_puzzle
,
R
.
layout
.
dialog_get_puzzle
,
activity
,
activity
,
mDialog
,
mDialog
,
...
@@ -591,10 +577,10 @@ object MainDialog {
...
@@ -591,10 +577,10 @@ object MainDialog {
fun
onDestroy
()
{
fun
onDestroy
()
{
if
(
adView
!=
null
)
{
if
(
adView
!=
null
)
{
if
(
adView
is
NativeExpressADView
)
{
if
(
adView
is
NativeExpressADView
)
{
(
adView
as
NativeExpressADView
)
?.
destroy
()
(
adView
as
NativeExpressADView
)
?.
destroy
()
}
else
if
(
adView
is
TTNativeExpressAd
)
{
}
else
if
(
adView
is
TTNativeExpressAd
)
{
(
adView
as
TTNativeExpressAd
)
?.
destroy
()
(
adView
as
TTNativeExpressAd
)
?.
destroy
()
}
}
}
}
...
...
app/src/main/java/com/ym/game/view/PuzzleDialog.kt
View file @
e4db3f85
...
@@ -26,13 +26,13 @@ import com.ym.game.contract.PuzzleContract
...
@@ -26,13 +26,13 @@ import com.ym.game.contract.PuzzleContract
import
com.ym.game.listener.IDialogViewCloseCallback
import
com.ym.game.listener.IDialogViewCloseCallback
import
com.ym.game.presenter.PuzzlePresenter
import
com.ym.game.presenter.PuzzlePresenter
import
com.ym.game.utils.CenterDialog
import
com.ym.game.utils.CenterDialog
import
com.ym.library.listener.OnRecycleItemClickListener
import
com.ym.library.module.PuzzleEntity
import
com.ym.library.module.PuzzleEntity
import
com.ym.library.rxbus.RxBusUtil
import
com.ym.library.rxbus.RxBusUtil
import
com.ym.library.utils.Utils
import
com.ym.library.utils.Utils
import
com.ym.modulecommon.AppliContext
import
com.ym.modulecommon.AppliContext
import
com.ym.
piggybank
.adapter.PuzzleBottomAdapter
import
com.ym.
game
.adapter.PuzzleBottomAdapter
import
com.ym.piggybank.adapter.PuzzleTopAdapter
import
com.ym.piggybank.adapter.PuzzleTopAdapter
import
com.ym.task.module.listener.OnRecycleItemClickListener
object
PuzzleDialog
:
PuzzleContract
.
View
,
OnRecycleItemClickListener
<
PuzzleEntity
.
PuzzleData
>
{
object
PuzzleDialog
:
PuzzleContract
.
View
,
OnRecycleItemClickListener
<
PuzzleEntity
.
PuzzleData
>
{
private
var
context
:
Context
?
=
null
private
var
context
:
Context
?
=
null
...
@@ -140,7 +140,7 @@ object PuzzleDialog : PuzzleContract.View, OnRecycleItemClickListener<PuzzleEnti
...
@@ -140,7 +140,7 @@ object PuzzleDialog : PuzzleContract.View, OnRecycleItemClickListener<PuzzleEnti
rlredbg
?.
setBackgroundResource
(
R
.
color
.
transparent
)
rlredbg
?.
setBackgroundResource
(
R
.
color
.
transparent
)
lottieView
?.
removeAllUpdateListeners
()
lottieView
?.
removeAllUpdateListeners
()
MainDialog
.
showgetWaterDrop
(
context
as
Activity
MainDialog
.
showgetWaterDrop
(
context
as
Activity
,
4
,
""
,
mdata
.
winCoin
,
null
)
,
4
,
"
puzzle
"
,
mdata
.
winCoin
,
null
)
}
}
...
...
app/src/main/java/com/ym/game/view/SiginDropsPopupwindow.kt
View file @
e4db3f85
...
@@ -170,7 +170,7 @@ class SiginDropsPopupwindow : PopupWindow(), WateringRewardContract.View,
...
@@ -170,7 +170,7 @@ class SiginDropsPopupwindow : PopupWindow(), WateringRewardContract.View,
tv_tomAwardNum
?.
text
=
"${data.tomAwardNum}"
tv_tomAwardNum
?.
text
=
"${data.tomAwardNum}"
if
(
data
.
isPop
==
1
)
{
if
(
data
.
isPop
==
1
)
{
//首次签到弹窗
//首次签到弹窗
MainDialog
.
showgetWaterDrop
(
mContext
,
4
,
"
签到
"
,
data
.
awardNum
,
null
)
MainDialog
.
showgetWaterDrop
(
mContext
,
4
,
"
singin
"
,
data
.
awardNum
,
null
)
RxBusUtil
.
getDefault
().
send
(
RxBusConstant
.
RX_MAIN_TURNTABLE_LOTTERYED
)
RxBusUtil
.
getDefault
().
send
(
RxBusConstant
.
RX_MAIN_TURNTABLE_LOTTERYED
)
}
}
}
}
...
...
app/src/main/java/com/ym/game/view/TurntableDialog.kt
View file @
e4db3f85
...
@@ -252,7 +252,7 @@ object TurntableDialog : TurntableUtils(), TurntableContract.View {
...
@@ -252,7 +252,7 @@ object TurntableDialog : TurntableUtils(), TurntableContract.View {
if
(
type
!=
6
)
{
if
(
type
!=
6
)
{
MainDialog
.
showgetWaterDrop
(
MainDialog
.
showgetWaterDrop
(
context
,
type
,
context
,
type
,
"
转盘
"
,
"
lottery
"
,
mLotteryResult
?.
awardNum
?:
0
,
mLotteryResult
?.
awardNum
?:
0
,
mLotteryResult
?.
extJson
mLotteryResult
?.
extJson
)
)
...
...
app/src/main/res/drawable-xhdpi/icon_item_dotted_line.png
View replaced file @
6cfd79f2
View file @
e4db3f85
98 Bytes
|
W:
|
H:
138 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/drawable-xhdpi/icon_welfare_diamond2.png
0 → 100644
View file @
e4db3f85
4.02 KB
app/src/main/res/layout/activity_clock_in_withdraw.xml
View file @
e4db3f85
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
xmlns:tools=
"http://schemas.android.com/tools"
android:background=
"#F7BD7C"
android:background=
"#F7BD7C"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
android:gravity=
"center_vertical"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
44dp
"
android:layout_marginTop=
"33dp"
>
android:layout_marginTop=
"33dp"
>
<ImageView
<ImageView
android:id=
"@+id/iv_clock_in_close"
android:id=
"@+id/iv_clock_in_close"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:paddingLeft=
"12dp"
android:paddingLeft=
"12dp"
android:paddingRight=
"12dp"
android:paddingRight=
"12dp"
android:src=
"@drawable/icon_clock_in_close"
/>
android:src=
"@drawable/icon_clock_in_close"
/>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<com.ym.game.wedget.MediumBoldTextView
<com.ym.game.wedget.MediumBoldTextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_center
Horizontal
=
"true"
android:layout_center
InParent
=
"true"
android:text=
"打卡提现"
android:text=
"打卡提现"
android:textColor=
"#7E320A"
android:textColor=
"#7E320A"
android:textSize=
"20sp"
android:textSize=
"20sp"
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"24dp"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
@@ -47,26 +46,27 @@
...
@@ -47,26 +46,27 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
tools:text=
"已连续打卡 天"
android:textColor=
"#ED7624"
android:textColor=
"#ED7624"
android:textSize=
"26sp"
/>
android:textSize=
"26sp"
android:textStyle=
"bold"
tools:text=
"已连续打卡 天"
/>
<TextView
<TextView
android:id=
"@+id/tv_clock_in_info"
android:id=
"@+id/tv_clock_in_info"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
11
dp"
android:layout_marginTop=
"
4
dp"
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
tools:text=
"每日观看20个视频即可完成打卡"
android:textColor=
"#8F2C0F"
android:textColor=
"#8F2C0F"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
tools:text=
"每日观看20个视频即可完成打卡"
/>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recycler_clock_in"
android:id=
"@+id/recycler_clock_in"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
22
dp"
android:layout_marginTop=
"
9
dp"
android:layout_marginBottom=
"30dp"
/>
android:layout_marginBottom=
"30dp"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/activity_welfare.xml
View file @
e4db3f85
...
@@ -10,22 +10,25 @@
...
@@ -10,22 +10,25 @@
<RelativeLayout
<RelativeLayout
android:id=
"@+id/layout_welfare_title"
android:id=
"@+id/layout_welfare_title"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
64dp
"
android:
layout_marginTop=
"33dp
"
>
android:
background=
"#FF9E35
"
>
<ImageView
<ImageView
android:id=
"@+id/iv_welfare_close"
android:id=
"@+id/iv_welfare_close"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_
centerVertical
=
"true"
android:layout_
alignParentBottom
=
"true"
android:paddingLeft=
"12dp"
android:paddingLeft=
"12dp"
android:paddingRight=
"12dp"
android:paddingRight=
"12dp"
android:paddingBottom=
"12dp"
android:src=
"@drawable/arrow_left"
/>
android:src=
"@drawable/arrow_left"
/>
<com.ym.game.wedget.MediumBoldTextView
<com.ym.game.wedget.MediumBoldTextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:paddingBottom=
"11dp"
android:text=
"福利中心"
android:text=
"福利中心"
android:textColor=
"@color/color_333333"
android:textColor=
"@color/color_333333"
android:textSize=
"20sp"
android:textSize=
"20sp"
...
@@ -33,6 +36,15 @@
...
@@ -33,6 +36,15 @@
</RelativeLayout>
</RelativeLayout>
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/layout_welfare_title"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -40,16 +52,12 @@
...
@@ -40,16 +52,12 @@
android:scaleType=
"fitXY"
android:scaleType=
"fitXY"
android:src=
"@drawable/icon_welfare_bg"
/>
android:src=
"@drawable/icon_welfare_bg"
/>
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/layout_welfare_title"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_cont
ent"
android:layout_height=
"match_par
ent"
android:layout_marginLeft=
"10dp"
android:layout_marginLeft=
"10dp"
android:layout_marginRight=
"10dp"
android:layout_marginRight=
"10dp"
android:layout_marginBottom=
"80dp"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
...
@@ -68,23 +76,26 @@
...
@@ -68,23 +76,26 @@
android:textSize=
"17sp"
/>
android:textSize=
"17sp"
/>
<ImageView
<ImageView
android:layout_width=
"19
dp"
android:layout_width=
"23
dp"
android:layout_height=
"17
dp"
android:layout_height=
"20
dp"
android:layout_marginRight=
"1
dp"
android:layout_marginRight=
"4
dp"
android:src=
"@drawable/icon_welfare_diamond
"
/>
android:src=
"@drawable/icon_welfare_diamond2
"
/>
<TextView
<TextView
android:id=
"@+id/tv_welfare_diamond_progress"
android:id=
"@+id/tv_welfare_diamond_progress"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
": 3/6"
/>
android:includeFontPadding=
"false"
android:text=
"3/6"
android:textColor=
"@color/color_333333"
android:textSize=
"17sp"
/>
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recycler_welfare_diamond_reward"
android:id=
"@+id/recycler_welfare_diamond_reward"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recycler_welfare_task"
android:id=
"@+id/recycler_welfare_task"
...
@@ -94,7 +105,8 @@
...
@@ -94,7 +105,8 @@
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView
>
</RelativeLayout
>
</androidx.core.widget.NestedScrollView>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/item_clock_in_withdraw.xml
View file @
e4db3f85
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
android:layout_marginLeft=
"@dimen/dp_14"
android:layout_marginLeft=
"@dimen/dp_14"
android:text=
"第一天"
android:text=
"第一天"
android:textColor=
"#ED7624"
android:textColor=
"#ED7624"
android:textSize=
"1
6
sp"
/>
android:textSize=
"1
4
sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_clock_in_complete"
android:id=
"@+id/tv_clock_in_complete"
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:text=
"17"
android:text=
"17"
android:textColor=
"#E91119"
android:textColor=
"#E91119"
android:textSize=
"
20
sp"
/>
android:textSize=
"
18
sp"
/>
<com.ym.game.wedget.MediumBoldTextView
<com.ym.game.wedget.MediumBoldTextView
android:id=
"@+id/tv_clock_in_item_money"
android:id=
"@+id/tv_clock_in_item_money"
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:text=
"0.3元"
android:text=
"0.3元"
android:textColor=
"#E91119"
android:textColor=
"#E91119"
android:textSize=
"
22
sp"
android:textSize=
"
18
sp"
android:visibility=
"visible"
/>
android:visibility=
"visible"
/>
<RelativeLayout
<RelativeLayout
...
@@ -93,9 +93,9 @@
...
@@ -93,9 +93,9 @@
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:text=
"3/20"
android:text=
"3/20"
android:textStyle=
"bold"
android:textColor=
"#A43D14"
android:textColor=
"#A43D14"
android:textSize=
"10sp"
/>
android:textSize=
"10sp"
android:textStyle=
"bold"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
...
@@ -140,22 +140,24 @@
...
@@ -140,22 +140,24 @@
<FrameLayout
<FrameLayout
android:id=
"@+id/layout_tip"
android:id=
"@+id/layout_tip"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
21dp
"
android:layout_height=
"
wrap_content
"
android:layout_below=
"@+id/layout_clock_in_item_root"
android:layout_below=
"@+id/layout_clock_in_item_root"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"20dp"
android:layout_marginRight=
"20dp"
android:visibility=
"
gon
e"
>
android:visibility=
"
visibl
e"
>
<com.ym.game.wedget.MediumBoldTextView
<com.ym.game.wedget.MediumBoldTextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:paddingTop=
"3dp"
android:paddingBottom=
"3dp"
android:background=
"@drawable/shape_ffffff_r10"
android:background=
"@drawable/shape_ffffff_r10"
android:gravity=
"center"
android:gravity=
"center"
android:includeFontPadding=
"false"
android:text=
"完成当前打卡,可解锁下一天打卡任务"
android:text=
"完成当前打卡,可解锁下一天打卡任务"
android:textColor=
"#8F2C0F"
android:textColor=
"#8F2C0F"
android:textSize=
"1
5
sp"
/>
android:textSize=
"1
2
sp"
/>
</FrameLayout>
</FrameLayout>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/item_welfare_diamond.xml
View file @
e4db3f85
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
android:id=
"@+id/iv_item_dotted_line"
android:id=
"@+id/iv_item_dotted_line"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"0.5dp"
android:layout_marginRight=
"0.5dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:scaleType=
"fitXY"
android:scaleType=
"fitXY"
android:src=
"@drawable/icon_item_dotted_line"
/>
android:src=
"@drawable/icon_item_dotted_line"
/>
...
...
app/src/main/res/layout/item_welfare_task.xml
View file @
e4db3f85
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
66dp
"
android:layout_marginBottom=
"12dp"
android:layout_marginBottom=
"12dp"
android:background=
"@drawable/shape_fefce2_r8"
android:background=
"@drawable/shape_fefce2_r8"
android:paddingLeft=
"@dimen/dp_14"
>
android:paddingLeft=
"@dimen/dp_14"
>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<
com.ym.game.wedget.MediumBold
TextView
android:id=
"@+id/tv_welfare_item_title"
android:id=
"@+id/tv_welfare_item_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"14dp"
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:text=
"浇水10次"
android:text=
"浇水10次"
android:textColor=
"@color/color_333333"
android:textColor=
"@color/color_333333"
android:textSize=
"18sp"
android:textSize=
"17sp"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/tv_welfare_item_subtitle"
android:id=
"@+id/tv_welfare_item_subtitle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_welfare_item_title"
android:layout_below=
"@+id/tv_welfare_item_title"
android:layout_marginTop=
"
2
dp"
android:layout_marginTop=
"
6
dp"
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:text=
"浏览60秒领取奖励"
android:text=
"浏览60秒领取奖励"
android:textColor=
"#975423"
android:textColor=
"#975423"
android:textSize=
"1
4
sp"
/>
android:textSize=
"1
3
sp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"14dp"
android:layout_marginRight=
"14dp"
android:layout_marginBottom=
"5dp"
android:gravity=
"center_vertical|center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
...
@@ -48,7 +47,6 @@
...
@@ -48,7 +47,6 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"7dp"
android:gravity=
"center"
>
android:gravity=
"center"
>
<ImageView
<ImageView
...
@@ -69,8 +67,8 @@
...
@@ -69,8 +67,8 @@
</LinearLayout>
</LinearLayout>
<RelativeLayout
<RelativeLayout
android:layout_width=
"
wrap_content
"
android:layout_width=
"
86dp
"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
34dp
"
android:layout_marginTop=
"3dp"
>
android:layout_marginTop=
"3dp"
>
<ImageView
<ImageView
...
@@ -81,9 +79,9 @@
...
@@ -81,9 +79,9 @@
<TextView
<TextView
android:id=
"@+id/tv_welfare_item_status"
android:id=
"@+id/tv_welfare_item_status"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
30dp
"
android:
layout_centerInParent=
"true
"
android:
gravity=
"center
"
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:text=
"已领取"
android:text=
"已领取"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
...
...
library/build.gradle
View file @
e4db3f85
...
@@ -67,7 +67,7 @@ dependencies {
...
@@ -67,7 +67,7 @@ dependencies {
api
(
"com.bx:adsdk:1.3.3"
){
api
(
"com.bx:adsdk:1.3.3"
){
exclude
group:
'com.google.code.gson'
exclude
group:
'com.google.code.gson'
}
}
api
'com.ym.admodule:admodule:1.0.2.
2
'
api
'com.ym.admodule:admodule:1.0.2.
7
'
api
'com.airbnb.android:lottie:3.1.0'
api
'com.airbnb.android:lottie:3.1.0'
/* api 'androidx.appcompat:appcompat:1.2.0-alpha02'
/* api 'androidx.appcompat:appcompat:1.2.0-alpha02'
api 'com.android.support:design:28.0.0'
api 'com.android.support:design:28.0.0'
...
...
library/libs/wannuosili_ad_
1.3.1
.aar
→
library/libs/wannuosili_ad_
2.0.0
.aar
View file @
e4db3f85
No preview for this file type
library/src/main/java/com/ym/library/activity/JavaInterface.kt
View file @
e4db3f85
...
@@ -926,6 +926,7 @@ abstract class JavaInterface {
...
@@ -926,6 +926,7 @@ abstract class JavaInterface {
act
,
act
,
type
,
type
,
waterDropCount
,
waterDropCount
,
"web_task"
,
DialogInterface
.
OnCancelListener
{
DialogInterface
.
OnCancelListener
{
mWebView
.
context
.
runOnUiThread
{
mWebView
.
context
.
runOnUiThread
{
mWebView
?.
loadUrl
(
"javascript:onResume()"
)
mWebView
?.
loadUrl
(
"javascript:onResume()"
)
...
@@ -943,7 +944,7 @@ abstract class JavaInterface {
...
@@ -943,7 +944,7 @@ abstract class JavaInterface {
fun
showWithdrawSucces
(
cashStr
:
String
)
{
fun
showWithdrawSucces
(
cashStr
:
String
)
{
mWebView
.
context
.
runOnUiThread
{
mWebView
.
context
.
runOnUiThread
{
if
(
act
!=
null
){
if
(
act
!=
null
){
CenterDialog
.
showGuideGetMoney
(
act
,
cashStr
,
mWebView
)
CenterDialog
.
showGuideGetMoney
(
act
,
"提现成功"
,
cashStr
,
mWebView
)
}
}
}
}
}
}
...
...
library/src/main/java/com/ym/library/activity/NewWebActivity.kt
View file @
e4db3f85
...
@@ -185,11 +185,14 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
...
@@ -185,11 +185,14 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
id_activity_web_bottom_progress
?.
visibility
=
View
.
VISIBLE
id_activity_web_bottom_progress
?.
visibility
=
View
.
VISIBLE
}
}
override
fun
setCurrentNum
(
num
:
Int
,
title
:
String
)
{
override
fun
setCurrentNum
(
award
:
Int
,
num
:
Int
,
title
:
String
)
{
if
(
award
>
0
&&
num
>=
award
)
{
//奖励目标数大于0 且 已看数量大于目标数量,不展示退出挽留弹窗
isAdds
=
true
}
if
(!
title
.
equals
(
""
))
{
if
(!
title
.
equals
(
""
))
{
tv_newweb_title
.
text
=
"${title.split("
")[0]}"
tv_newweb_title
.
text
=
"${title.split("
")[0]}"
}
else
{
}
else
{
tv_newweb_title
.
text
=
"看4篇可得2
000金币
"
tv_newweb_title
.
text
=
"看4篇可得2
钻石
"
}
}
if
(
num
==
0
)
{
if
(
num
==
0
)
{
id_read_round_1
.
setBackgroundResource
(
R
.
drawable
.
shape_c9c9c9_r
)
id_read_round_1
.
setBackgroundResource
(
R
.
drawable
.
shape_c9c9c9_r
)
...
@@ -362,7 +365,7 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
...
@@ -362,7 +365,7 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
if
(
webview
!=
null
)
{
if
(
webview
!=
null
)
{
webview
?.
loadUrl
(
"javascript:onResume()"
)
webview
?.
loadUrl
(
"javascript:onResume()"
)
}
}
EventUtils
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
ReportEntity
(
Constant
.
ReportSessionId
,
"NewWebActivity"
,
"onResume"
)))
//
EventUtils.onEvent("page_status", Utils.obj2Str(ReportEntity(Constant.ReportSessionId, "NewWebActivity", "onResume")))
MobclickAgent
.
onResume
(
this
)
MobclickAgent
.
onResume
(
this
)
}
}
...
@@ -371,7 +374,7 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
...
@@ -371,7 +374,7 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
RxBusUtil
.
getDefault
()
RxBusUtil
.
getDefault
()
.
send
(
RxBusConstant
.
RX_SPEED_WATER_TASK_LIST
)
.
send
(
RxBusConstant
.
RX_SPEED_WATER_TASK_LIST
)
MobclickAgent
.
onPause
(
this
)
MobclickAgent
.
onPause
(
this
)
EventUtils
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
ReportEntity
(
Constant
.
ReportSessionId
,
"NewWebActivity"
,
"onPause"
)))
//
EventUtils.onEvent("page_status", Utils.obj2Str(ReportEntity(Constant.ReportSessionId, "NewWebActivity", "onPause")))
if
(
webview
!=
null
)
{
if
(
webview
!=
null
)
{
// webview?.loadUrl("javascript:onPause()")
// webview?.loadUrl("javascript:onPause()")
}
}
...
...
library/src/main/java/com/ym/library/activity/WebActivity.kt
View file @
e4db3f85
...
@@ -420,13 +420,13 @@ class WebActivity : BaseActivity(), View.OnClickListener {
...
@@ -420,13 +420,13 @@ class WebActivity : BaseActivity(), View.OnClickListener {
if
(
webview
!=
null
)
{
if
(
webview
!=
null
)
{
webview
?.
loadUrl
(
"javascript:onResume()"
)
webview
?.
loadUrl
(
"javascript:onResume()"
)
}
}
EventUtils
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
//
EventUtils.onEvent("page_status", Utils.obj2Str(
ReportEntity
(
//
ReportEntity(
Constant
.
ReportSessionId
,
//
Constant.ReportSessionId,
"WebActivity"
,
//
"WebActivity",
"onResume"
//
"onResume"
)
//
)
))
//
))
MobclickAgent
.
onResume
(
this
)
MobclickAgent
.
onResume
(
this
)
}
}
...
@@ -437,13 +437,13 @@ class WebActivity : BaseActivity(), View.OnClickListener {
...
@@ -437,13 +437,13 @@ class WebActivity : BaseActivity(), View.OnClickListener {
}
}
RxTimerUtil
.
cancel
()
RxTimerUtil
.
cancel
()
status
=
INIT
status
=
INIT
EventUtils
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
//
EventUtils.onEvent("page_status", Utils.obj2Str(
ReportEntity
(
//
ReportEntity(
Constant
.
ReportSessionId
,
//
Constant.ReportSessionId,
"WebActivity"
,
//
"WebActivity",
"onPause"
//
"onPause"
)
//
)
))
//
))
MobclickAgent
.
onPause
(
this
)
MobclickAgent
.
onPause
(
this
)
RxBusUtil
.
getDefault
()
RxBusUtil
.
getDefault
()
.
send
(
RxBusConstant
.
RX_SPEED_WATER_TASK_LIST
)
.
send
(
RxBusConstant
.
RX_SPEED_WATER_TASK_LIST
)
...
...
library/src/main/java/com/ym/library/activity/XiaoManActivity.kt
View file @
e4db3f85
...
@@ -266,13 +266,13 @@ class XiaoManActivity : BaseActivity() {
...
@@ -266,13 +266,13 @@ class XiaoManActivity : BaseActivity() {
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
EventUtils
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
ReportEntity
(
Constant
.
ReportSessionId
,
"XiaoManActivity"
,
"onResume"
)))
//
EventUtils.onEvent("page_status", Utils.obj2Str(ReportEntity(Constant.ReportSessionId, "XiaoManActivity", "onResume")))
MobclickAgent
.
onResume
(
this
)
MobclickAgent
.
onResume
(
this
)
}
}
override
fun
onPause
()
{
override
fun
onPause
()
{
super
.
onPause
()
super
.
onPause
()
EventUtils
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
ReportEntity
(
Constant
.
ReportSessionId
,
"XiaoManActivity"
,
"onPause"
)))
//
EventUtils.onEvent("page_status", Utils.obj2Str(ReportEntity(Constant.ReportSessionId, "XiaoManActivity", "onPause")))
MobclickAgent
.
onPause
(
this
)
MobclickAgent
.
onPause
(
this
)
}
}
...
...
library/src/main/java/com/ym/library/activity/contract/NewWebContract.kt
View file @
e4db3f85
...
@@ -38,7 +38,7 @@ class NewWebContract {
...
@@ -38,7 +38,7 @@ class NewWebContract {
fun
setBottomDesc
(
desc
:
String
)
fun
setBottomDesc
(
desc
:
String
)
fun
setCurrentNum
(
num
:
Int
,
title
:
String
)
fun
setCurrentNum
(
award
:
Int
,
num
:
Int
,
title
:
String
)
fun
setBottomVisibity
(
visibility
:
Int
)
fun
setBottomVisibity
(
visibility
:
Int
)
...
...
library/src/main/java/com/ym/library/activity/presenter/NewWebPresenter.kt
View file @
e4db3f85
...
@@ -187,7 +187,7 @@ class NewWebPresenter : NewWebContract.Presenter {
...
@@ -187,7 +187,7 @@ class NewWebPresenter : NewWebContract.Presenter {
// mView.setBottomProgressVisibity(View.VISIBLE)
// mView.setBottomProgressVisibity(View.VISIBLE)
STATUS
=
INIT
STATUS
=
INIT
}
}
mView
.
setCurrentNum
(
result
.
current_nums
?:
0
,
result
?.
alert
?:
""
)
mView
.
setCurrentNum
(
result
?.
award_limit
?:
0
,
result
.
current_nums
?:
0
,
result
?.
alert
?:
""
)
}
}
if
(
result
.
delay
==
0
)
{
if
(
result
.
delay
==
0
)
{
//加金币
//加金币
...
...
library/src/main/java/com/ym/library/listener/IAdVideoListener.kt
0 → 100644
View file @
e4db3f85
package
com.ym.library.listener
interface
IAdVideoListener
{
fun
onAdClose
()
fun
onError
(
errorMsg
:
String
?)
}
\ No newline at end of file
library/src/main/java/com/ym/library/module/AdStatusEntity.kt
View file @
e4db3f85
...
@@ -14,4 +14,5 @@ class AdStatusEntity {
...
@@ -14,4 +14,5 @@ class AdStatusEntity {
var
time_trigger
:
Int
?
=
0
var
time_trigger
:
Int
?
=
0
var
progressStatus
:
Int
?
=
0
var
progressStatus
:
Int
?
=
0
var
current_nums
:
Int
?
=
0
var
current_nums
:
Int
?
=
0
var
award_limit
:
Int
?
=
0
}
}
\ No newline at end of file
library/src/main/java/com/ym/library/module/ClockInWithdrawEntity.kt
View file @
e4db3f85
...
@@ -6,6 +6,9 @@ class ClockInWithdrawEntity {
...
@@ -6,6 +6,9 @@ class ClockInWithdrawEntity {
var
videoNum
:
Int
?
=
0
var
videoNum
:
Int
?
=
0
var
list
:
List
<
ClockInItemEntity
>?
=
null
var
list
:
List
<
ClockInItemEntity
>?
=
null
var
status
:
Int
?
=
0
var
reason
:
String
=
""
class
ClockInItemEntity
{
class
ClockInItemEntity
{
var
id
:
Int
?
=
0
//提现id
var
id
:
Int
?
=
0
//提现id
var
title
:
String
?
=
""
//打卡标题
var
title
:
String
?
=
""
//打卡标题
...
...
library/src/main/java/com/ym/library/net/BaseActivity.java
View file @
e4db3f85
...
@@ -20,7 +20,12 @@ import androidx.annotation.Nullable;
...
@@ -20,7 +20,12 @@ import androidx.annotation.Nullable;
import
com.gyf.immersionbar.ImmersionBar
;
import
com.gyf.immersionbar.ImmersionBar
;
import
com.gyf.immersionbar.OnNavigationBarListener
;
import
com.gyf.immersionbar.OnNavigationBarListener
;
import
com.trello.rxlifecycle2.components.support.RxAppCompatActivity
;
import
com.trello.rxlifecycle2.components.support.RxAppCompatActivity
;
import
com.umeng.analytics.MobclickAgent
;
import
com.ym.library.Constant
;
import
com.ym.library.module.ReportEntity
;
import
com.ym.library.rxbus.RxBusUtil
;
import
com.ym.library.rxbus.RxBusUtil
;
import
com.ym.library.utils.EventUtils
;
import
com.ym.library.utils.Utils
;
/**
/**
* Created by gaoleichao on 2019/4/17
* Created by gaoleichao on 2019/4/17
...
@@ -30,6 +35,13 @@ public abstract class BaseActivity extends RxAppCompatActivity {
...
@@ -30,6 +35,13 @@ public abstract class BaseActivity extends RxAppCompatActivity {
public
abstract
int
layoutID
();
public
abstract
int
layoutID
();
// public abstract Context context();
// public abstract Context context();
public
Activity
activity
(){
return
this
;
}
public
String
className
()
{
return
activity
().
getClass
().
getSimpleName
();
}
@Override
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
@@ -73,6 +85,30 @@ public abstract class BaseActivity extends RxAppCompatActivity {
...
@@ -73,6 +85,30 @@ public abstract class BaseActivity extends RxAppCompatActivity {
// protected WeakHandler baseHandler;
// protected WeakHandler baseHandler;
protected
boolean
mIsNeedGoneNavigationBar
=
false
;
protected
boolean
mIsNeedGoneNavigationBar
=
false
;
@Override
protected
void
onResume
()
{
super
.
onResume
();
if
(
activity
()
!=
null
)
{
MobclickAgent
.
onResume
(
activity
());
}
if
(
className
()
!=
null
)
{
Log
.
d
(
"BaseActivity"
,
"onResume ="
+
className
());
EventUtils
.
INSTANCE
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
new
ReportEntity
(
Constant
.
ReportSessionId
,
className
(),
"onResume"
)));
}
}
@Override
protected
void
onPause
()
{
super
.
onPause
();
if
(
className
()
!=
null
)
{
Log
.
d
(
"BaseActivity"
,
"onPause ="
+
className
());
EventUtils
.
INSTANCE
.
onEvent
(
"page_status"
,
Utils
.
obj2Str
(
new
ReportEntity
(
Constant
.
ReportSessionId
,
className
(),
"onPause"
)));
}
if
(
activity
()
!=
null
)
{
MobclickAgent
.
onPause
(
activity
());
}
}
/**
/**
* 设置是否隐藏导航栏
* 设置是否隐藏导航栏
...
...
library/src/main/java/com/ym/library/net/IGameApi.kt
View file @
e4db3f85
...
@@ -151,6 +151,12 @@ interface IGameApi {
...
@@ -151,6 +151,12 @@ interface IGameApi {
@POST
(
NetConfig
.
Game
.
URL_GAME_OPEN_BOX
)
@POST
(
NetConfig
.
Game
.
URL_GAME_OPEN_BOX
)
fun
getopenBox
():
Observable
<
Response
<
FlyBoxEntity
>>
fun
getopenBox
():
Observable
<
Response
<
FlyBoxEntity
>>
/**
* 打卡普通打卡任务领取
*/
@POST
(
NetConfig
.
Game
.
URL_CLOCK_BOX_RECEIVE
)
fun
geClockBoxReceive
():
Observable
<
Response
<
FlyBoxEntity
>>
/**
/**
* 底部拆红包奖励
* 底部拆红包奖励
* @param
* @param
...
@@ -263,7 +269,7 @@ interface IGameApi {
...
@@ -263,7 +269,7 @@ interface IGameApi {
//打卡提现
//打卡提现
@POST
(
NetConfig
.
Game
.
URL_GAME_DO_WD
)
@POST
(
NetConfig
.
Game
.
URL_GAME_DO_WD
)
fun
getDoWd
(
@Query
(
"clockId"
)
clockId
:
Int
):
Observable
<
Response
<
ClockInWithdraw
Entity
>>
fun
getDoWd
(
@Query
(
"clockId"
)
clockId
:
Int
):
Observable
<
Response
<
Exchange
Entity
>>
/**
/**
* 任务页列表
* 任务页列表
...
...
library/src/main/java/com/ym/library/net/NetConfig.java
View file @
e4db3f85
...
@@ -268,5 +268,6 @@ public class NetConfig {
...
@@ -268,5 +268,6 @@ public class NetConfig {
public
static
final
String
URL_COLLECT_CARD_ADV_PUT_OR_ADD
=
"app/v1/collect-card/advPutOrAdd"
;
//看广告单个图片获取或者拼图
public
static
final
String
URL_COLLECT_CARD_ADV_PUT_OR_ADD
=
"app/v1/collect-card/advPutOrAdd"
;
//看广告单个图片获取或者拼图
public
static
final
String
URL_COLLECT_CARD_ADD_CARD
=
"app/v1/collect-card/addCard"
;
//收金币获得卡片
public
static
final
String
URL_COLLECT_CARD_ADD_CARD
=
"app/v1/collect-card/addCard"
;
//收金币获得卡片
public
static
final
String
URL_GAME_HOME_WD_LIST
=
"app/v1/game/ddcy/home_wd_list"
;
//首页展示果实列表
public
static
final
String
URL_GAME_HOME_WD_LIST
=
"app/v1/game/ddcy/home_wd_list"
;
//首页展示果实列表
public
static
final
String
URL_CLOCK_BOX_RECEIVE
=
"app/v1/game/ddcy/clock_box_receive"
;
//打卡普通打卡任务领取
}
}
}
}
library/src/main/java/com/ym/library/utils/AdUtils.kt
0 → 100644
View file @
e4db3f85
package
com.ym.library.utils
import
android.app.Activity
import
android.util.Log
import
android.widget.FrameLayout
import
com.ym.admodule.config.AdManager
import
com.ym.admodule.config.ZXADSizeConfig
import
com.ym.admodule.listener.ZXADVideoListener
import
com.ym.library.listener.IAdVideoListener
import
com.ym.library.module.StatusEntity
import
com.ym.library.net.BaseObserver
import
com.ym.library.net.GameApiClient
import
com.ym.library.net.RxSchedulers
import
java.lang.Exception
object
AdUtils
{
fun
playRewardAd
(
activity
:
Activity
,
actionName
:
String
,
listener
:
IAdVideoListener
)
{
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
actionName
,
activity
,
object
:
ZXADVideoListener
{
override
fun
onSuccess
()
{}
override
fun
onAdClose
()
{
listener
?.
onAdClose
()
//预加载
EventUtils
.
loadNextCacheRewardVideoAd
(
activity
)
//看视频上报
getVideoAcceleratorsReceive
();
}
override
fun
onAdShow
()
{}
override
fun
onAdVideoBarClick
()
{}
override
fun
onError
(
errorMsg
:
String
?)
{
listener
?.
onError
(
errorMsg
)
}
})
}
fun
showFeedAd
(
activity
:
Activity
,
actionName
:
String
,
view
:
FrameLayout
)
{
try
{
AdManager
.
showFeedAd
(
ADConfig
.
AD_IMG_FADE
,
actionName
,
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
activity
).
toFloat
())
-
40
,
280
),
activity
,
view
)
}
catch
(
e
:
Exception
)
{}
}
//看视频领上报
fun
getVideoAcceleratorsReceive
()
{
GameApiClient
.
gameApi
.
adVideoReport
()
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
StatusEntity
>()
{
override
fun
onSuccess
(
result
:
StatusEntity
?)
{
Log
.
d
(
"wxw"
,
"看视频上报 Success"
)
}
override
fun
onFailure
(
e
:
Throwable
?,
code
:
String
?,
errorMsg
:
String
?)
{
Log
.
d
(
"wxw"
,
"看视频上报 error"
)
}
})
}
}
\ No newline at end of file
library/src/main/java/com/ym/library/utils/CenterDialog.kt
View file @
e4db3f85
...
@@ -75,7 +75,7 @@ object CenterDialog : BaseDialog() {
...
@@ -75,7 +75,7 @@ object CenterDialog : BaseDialog() {
/**
/**
* 获得微信红包
* 获得微信红包
*/
*/
fun
showGuideGetMoney
(
activity
:
Activity
?,
cashStr
:
String
,
webView
:
WebView
?)
{
fun
showGuideGetMoney
(
activity
:
Activity
?,
title
:
String
,
cashStr
:
String
,
webView
:
WebView
?)
{
if
(
activity
==
null
)
{
if
(
activity
==
null
)
{
return
return
}
}
...
@@ -89,7 +89,9 @@ object CenterDialog : BaseDialog() {
...
@@ -89,7 +89,9 @@ object CenterDialog : BaseDialog() {
Gravity
.
CENTER
Gravity
.
CENTER
)
)
val
tv_money
=
mDialogView
?.
findViewById
<
TextView
>(
R
.
id
.
id_tv_cash_content
)
val
tv_money
=
mDialogView
?.
findViewById
<
TextView
>(
R
.
id
.
id_tv_cash_content
)
val
tvTitle
=
mDialogView
?.
findViewById
<
TextView
>(
R
.
id
.
id_tv_title
)
tv_money
.
text
=
"恭喜您成功兑换${cashStr}元红包,您可以前往微信钱包查看到账情况"
tv_money
.
text
=
"恭喜您成功兑换${cashStr}元红包,您可以前往微信钱包查看到账情况"
tvTitle
.
text
=
title
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_go_on_make_money
).
setOnClickListener
{
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_go_on_make_money
).
setOnClickListener
{
webView
?.
loadUrl
(
"javascript:onResume()"
)
webView
?.
loadUrl
(
"javascript:onResume()"
)
...
@@ -367,6 +369,7 @@ object CenterDialog : BaseDialog() {
...
@@ -367,6 +369,7 @@ object CenterDialog : BaseDialog() {
context
:
Activity
?,
context
:
Activity
?,
type
:
Int
,
type
:
Int
,
rewardCount
:
Int
,
rewardCount
:
Int
,
actionName
:
String
,
listener
:
DialogInterface
.
OnCancelListener
,
listener
:
DialogInterface
.
OnCancelListener
,
mWebView
:
WebView
?
mWebView
:
WebView
?
)
{
)
{
...
@@ -390,38 +393,7 @@ object CenterDialog : BaseDialog() {
...
@@ -390,38 +393,7 @@ object CenterDialog : BaseDialog() {
val
layoutAd
=
mDialogView
?.
findViewById
<
FrameLayout
>(
R
.
id
.
layout_ad
)
val
layoutAd
=
mDialogView
?.
findViewById
<
FrameLayout
>(
R
.
id
.
layout_ad
)
tvGetDropCount
.
text
=
"+${rewardCount}"
tvGetDropCount
.
text
=
"+${rewardCount}"
AdManager
.
loadFeedAd
(
AdUtils
.
showFeedAd
(
context
,
actionName
,
layoutAd
)
ADConfig
.
AD_IMG_FADE
,
(
context
as
Activity
),
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
context
).
toFloat
())
-
56
,
((
Utils
.
px2dip
(
context
.
windowManager
?.
defaultDisplay
?.
width
!!
.
toFloat
())
-
56
)
*
0.66
).
toInt
()
),
layoutAd
)
// ToponManager.loadNative((context as Activity),layoutAd,object : ToponNativeListener {
// override fun onAdImpressed(atAdInf: ATAdInfo) {
// EventUtils.onEvent(
// "ad_show",
// Utils.obj2Str(AdEntity(atAdInf.adNetworkType, AdID.mPlacementId_daily_task_finish_bigimage, "福利中心大图广告"))
// )
// }
//
// override fun onAdClicked(atAdInf: ATAdInfo, view: ATNativeAdView) {
// EventUtils.onEvent(
// "ad_click",
// Utils.obj2Str(AdEntity(atAdInf.adNetworkType, AdID.mPlacementId_daily_task_finish_bigimage, "福利中心大图广告"))
// )
// }
//
// override fun onAdVideoStart() {
// }
//
// override fun onAdVideoEnd() {
// }
//
// },AdID.mPlacementId_Reward_video_luck_farm)
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
btn_get_diamand
).
setOnClickListener
{
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
btn_get_diamand
).
setOnClickListener
{
// mWebView?.loadUrl("javascript:onResume()")
// mWebView?.loadUrl("javascript:onResume()")
...
@@ -434,6 +406,7 @@ object CenterDialog : BaseDialog() {
...
@@ -434,6 +406,7 @@ object CenterDialog : BaseDialog() {
mDialog
?.
setOnCancelListener
{
mDialog
?.
setOnCancelListener
{
listener
.
onCancel
(
it
)
listener
.
onCancel
(
it
)
EventUtils
.
loadFeedCacheAdToCache
(
context
)
}
}
mDialog
?.
setCanceledOnTouchOutside
(
false
)
mDialog
?.
setCanceledOnTouchOutside
(
false
)
...
...
library/src/main/java/com/ym/library/utils/EventUtils.kt
View file @
e4db3f85
...
@@ -5,6 +5,7 @@ import android.app.Activity
...
@@ -5,6 +5,7 @@ import android.app.Activity
import
android.util.Log
import
android.util.Log
import
com.umeng.analytics.MobclickAgent
import
com.umeng.analytics.MobclickAgent
import
com.ym.admodule.config.AdManager
import
com.ym.admodule.config.AdManager
import
com.ym.admodule.config.ZXADSizeConfig
import
com.ym.library.module.NewsEntity
import
com.ym.library.module.NewsEntity
import
com.ym.library.module.StatusEntity
import
com.ym.library.module.StatusEntity
import
com.ym.library.net.*
import
com.ym.library.net.*
...
@@ -319,10 +320,18 @@ object EventUtils {
...
@@ -319,10 +320,18 @@ object EventUtils {
})
})
}
}
//预加载激励
public
fun
loadNextCacheRewardVideoAd
(
activity
:
Activity
)
{
public
fun
loadNextCacheRewardVideoAd
(
activity
:
Activity
)
{
AdManager
.
loadNextCacheRewardVideoAd
(
ADConfig
.
AD_REWARD_VIDIO
,
activity
)
AdManager
.
loadNextCacheRewardVideoAd
(
ADConfig
.
AD_REWARD_VIDIO
,
activity
)
}
}
//预加载信息流
public
fun
loadFeedCacheAdToCache
(
activity
:
Activity
)
{
AdManager
.
loadFeedAdToCache
(
ADConfig
.
AD_IMG_FADE
,
activity
,
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
activity
).
toFloat
())
-
40
,
280
)
)
}
//看视频上报
//看视频上报
public
fun
requestReport
()
{
public
fun
requestReport
()
{
GameApiClient
.
gameApi
.
adVideoReport
()
GameApiClient
.
gameApi
.
adVideoReport
()
...
...
library/src/main/res/layout/activity_new_web.xml
View file @
e4db3f85
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
android:id=
"@+id/tv_newweb_title"
android:id=
"@+id/tv_newweb_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"看4篇可得2
000金币
"
android:text=
"看4篇可得2
钻石
"
android:textColor=
"#ff222222"
android:textColor=
"#ff222222"
android:textSize=
"12sp"
android:textSize=
"12sp"
android:layout_marginBottom=
"8dp"
/>
android:layout_marginBottom=
"8dp"
/>
...
...
userinfo/src/main/java/com/ym/userinfo/module/activity/SettingActivity.kt
View file @
e4db3f85
...
@@ -27,7 +27,7 @@ class SettingActivity : BaseActivity() {
...
@@ -27,7 +27,7 @@ class SettingActivity : BaseActivity() {
StatusBarUtil
.
transportStatus
(
this
,
resources
.
getColor
(
R
.
color
.
transparent
))
StatusBarUtil
.
transportStatus
(
this
,
resources
.
getColor
(
R
.
color
.
transparent
))
}
}
private
var
adView
:
Any
?
=
null
private
var
adView
:
Any
?
=
null
override
fun
init
()
{
override
fun
init
()
{
...
@@ -77,16 +77,7 @@ class SettingActivity : BaseActivity() {
...
@@ -77,16 +77,7 @@ class SettingActivity : BaseActivity() {
updateVersionManager
?.
checkUpdate
(
true
)
updateVersionManager
?.
checkUpdate
(
true
)
}
}
AdManager
.
loadFeedAd
(
AdUtils
.
showFeedAd
(
this
,
"setting"
,
id_ad_frame_view
)
ADConfig
.
AD_IMG_FADE
,
this
,
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
this
).
toFloat
())
-
58
,
((
Utils
.
px2dip
(
windowManager
?.
defaultDisplay
?.
width
!!
.
toFloat
())
-
58
)
*
0.66
).
toInt
()
),
id_ad_frame_view
)
}
}
private
fun
copy
()
{
private
fun
copy
()
{
...
@@ -113,14 +104,17 @@ class SettingActivity : BaseActivity() {
...
@@ -113,14 +104,17 @@ class SettingActivity : BaseActivity() {
override
fun
onPause
()
{
override
fun
onPause
()
{
super
.
onPause
()
super
.
onPause
()
MobclickAgent
.
onPause
(
this
)
MobclickAgent
.
onPause
(
this
)
EventUtils
.
loadFeedCacheAdToCache
(
this
)
}
}
override
fun
onDestroy
()
{
override
fun
onDestroy
()
{
super
.
onDestroy
()
super
.
onDestroy
()
if
(
adView
!=
null
)
{
if
(
adView
!=
null
)
{
if
(
adView
is
NativeExpressADView
)
{
if
(
adView
is
NativeExpressADView
)
{
(
adView
as
NativeExpressADView
)
?.
destroy
()
(
adView
as
NativeExpressADView
)
?.
destroy
()
}
else
if
(
adView
is
TTNativeExpressAd
)
{
}
else
if
(
adView
is
TTNativeExpressAd
)
{
(
adView
as
TTNativeExpressAd
)
?.
destroy
()
(
adView
as
TTNativeExpressAd
)
?.
destroy
()
}
}
}
}
...
...
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