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
a732f2f9
Commit
a732f2f9
authored
Nov 13, 2020
by
wangxuewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :幸运农场 [实现方案] :1.0.7更换广告依赖方式,加入预加载描述
parent
d0393ced
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
122 deletions
+140
-122
GameActivity.kt
app/src/main/java/com/ym/game/GameActivity.kt
+137
-119
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
build.gradle
library/build.gradle
+1
-1
No files found.
app/src/main/java/com/ym/game/GameActivity.kt
View file @
a732f2f9
...
@@ -233,7 +233,11 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -233,7 +233,11 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
fun
adFlyBox
()
{
fun
adFlyBox
()
{
if
(
flyBoxIsClick
)
{
if
(
flyBoxIsClick
)
{
flyBoxIsClick
=
false
flyBoxIsClick
=
false
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
""
,
act
,
object
:
ZXADVideoListener
{
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
"fly_box_video"
,
act
,
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
loadAdCache
()
loadAdCache
()
flyBoxIsClick
=
true
flyBoxIsClick
=
true
...
@@ -270,7 +274,11 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -270,7 +274,11 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
fun
adRedPackPlan
()
{
fun
adRedPackPlan
()
{
if
(
flyBoxIsClick2
)
{
if
(
flyBoxIsClick2
)
{
flyBoxIsClick2
=
false
flyBoxIsClick2
=
false
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
""
,
act
,
object
:
ZXADVideoListener
{
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
"bottom_open_red_pack_video"
,
act
,
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
loadAdCache
()
loadAdCache
()
flyBoxIsClick2
=
true
flyBoxIsClick2
=
true
...
@@ -367,7 +375,11 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -367,7 +375,11 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
* */
* */
fun
getCloudSpeed
(
callback
:
IUnitySendMessageCallback
?)
{
fun
getCloudSpeed
(
callback
:
IUnitySendMessageCallback
?)
{
Log
.
d
(
"wxw"
,
"云朵加速"
)
Log
.
d
(
"wxw"
,
"云朵加速"
)
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
""
,
act
,
object
:
ZXADVideoListener
{
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
"cloud_speed_video"
,
act
,
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
loadAdCache
()
loadAdCache
()
//看视频上报
//看视频上报
...
@@ -538,7 +550,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -538,7 +550,7 @@ 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
(
ADConfig
.
AD_REWARD_VIDIO
,
""
,
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
"
receive_seed_video
"
,
this
,
object
:
ZXADVideoListener
{
this
,
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
loadAdCache
()
loadAdCache
()
...
@@ -606,7 +618,11 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -606,7 +618,11 @@ 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
(
ADConfig
.
AD_REWARD_VIDIO
,
""
,
this
,
object
:
ZXADVideoListener
{
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
"receive_accelerators_video"
,
this
,
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
loadAdCache
()
loadAdCache
()
videoJiasuClick
=
true
videoJiasuClick
=
true
...
@@ -777,8 +793,10 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
...
@@ -777,8 +793,10 @@ 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
(
ADConfig
.
AD_REWARD_VIDIO
,
""
,
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
act
,
object
:
ZXADVideoListener
{
"six_receive_redPack_video"
,
act
,
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
loadAdCache
()
loadAdCache
()
//看视频上报
//看视频上报
...
...
app/src/main/java/com/ym/game/view/SiginDropsPopupwindow.kt
View file @
a732f2f9
...
@@ -180,7 +180,7 @@ class SiginDropsPopupwindow : PopupWindow(), WateringRewardContract.View,
...
@@ -180,7 +180,7 @@ class SiginDropsPopupwindow : PopupWindow(), WateringRewardContract.View,
// )
// )
AdManager
.
playRewardAd
(
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
ADConfig
.
AD_REWARD_VIDIO
,
""
,
"
receive_coin_task_video
"
,
(
mContext
as
Activity
),
(
mContext
as
Activity
),
object
:
ZXADVideoListener
{
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
...
...
app/src/main/java/com/ym/game/view/TurntableDialog.kt
View file @
a732f2f9
...
@@ -191,7 +191,7 @@ object TurntableDialog : TurntableUtils(), TurntableContract.View {
...
@@ -191,7 +191,7 @@ object TurntableDialog : TurntableUtils(), TurntableContract.View {
// }, AdID.mPlacementId_Reward_video_luck_farm)
// }, AdID.mPlacementId_Reward_video_luck_farm)
AdManager
.
playRewardAd
(
AdManager
.
playRewardAd
(
ADConfig
.
AD_REWARD_VIDIO
,
ADConfig
.
AD_REWARD_VIDIO
,
""
,
"
lucky_turntable_lottery_look_video
"
,
(
context
as
Activity
),
(
context
as
Activity
),
object
:
ZXADVideoListener
{
object
:
ZXADVideoListener
{
override
fun
onAdClose
()
{
override
fun
onAdClose
()
{
...
...
library/build.gradle
View file @
a732f2f9
...
@@ -112,7 +112,7 @@ dependencies {
...
@@ -112,7 +112,7 @@ dependencies {
// exclude group: 'com.mintegral.msdk'
// exclude group: 'com.mintegral.msdk'
// exclude group: 'cn.vlion.inlandsh'
// exclude group: 'cn.vlion.inlandsh'
// }
// }
api
'com.ym.admodule:admodule:1.0.1.
7
'
api
'com.ym.admodule:admodule:1.0.1.
10
'
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'
}
}
...
...
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