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
57b037d4
Commit
57b037d4
authored
Oct 20, 2020
by
wangxuewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :幸福农场 [实现方案] :修改渠道,换成正式环境
parent
80ea840b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
26 deletions
+25
-26
build.gradle
app/build.gradle
+1
-0
BaseApplication.kt
app/src/main/java/com/ym/game/application/BaseApplication.kt
+1
-1
CenterDialog.kt
library/src/main/java/com/ym/library/utils/CenterDialog.kt
+23
-25
No files found.
app/build.gradle
View file @
57b037d4
...
...
@@ -98,6 +98,7 @@ android {
yyb
{}
sougou
{}
toutiao
{}
hykb
{}
}
productFlavors
.
all
{
...
...
app/src/main/java/com/ym/game/application/BaseApplication.kt
View file @
57b037d4
...
...
@@ -29,7 +29,7 @@ class BaseApplication : MultiDexApplication() {
//第一步初始化 application
AppliContext
.
init
(
this
)
Config
.
init
(
this
)
NetConfig
.
setBase_Url
(
NetConfig
.
Environment
.
DEV
)
// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
NetConfig
.
setBase_Url
(
NetConfig
.
Environment
.
PRODUCT
)
// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
Constant
.
appLs
=
"5ea353dac826a125 "
//appls
// //步行多多 广告id
...
...
library/src/main/java/com/ym/library/utils/CenterDialog.kt
View file @
57b037d4
...
...
@@ -344,10 +344,8 @@ object CenterDialog : BaseDialog() {
Gravity
.
CENTER
)
val
ivGetDropLoght
=
mDialogView
?.
findViewById
<
ImageView
>(
R
.
id
.
iv_get_drop_loght
)
val
ivGetDropBg
=
mDialogView
?.
findViewById
<
ImageView
>(
R
.
id
.
iv_get_drop_bg
)
val
tvGetDropCount
=
mDialogView
?.
findViewById
<
TextView
>(
R
.
id
.
tv_get_drop_count
)
val
layoutAd
=
mDialogView
?.
findViewById
<
FrameLayout
>(
R
.
id
.
layout_get_drop_ad
)
// ivGetDropLoght.animation = AnimationUtils.loadAnimation(context, R.anim.rotate_anim_lib)
...
...
@@ -356,31 +354,31 @@ object CenterDialog : BaseDialog() {
ivGetDropBg
.
setImageResource
(
R
.
drawable
.
icon_main_dialog_popupwater_icon_lib
)
}
else
if
(
type
==
2
)
{
tvGetDropCount
.
text
=
"+${rewardCount}"
ivGetDropBg
.
setImageResource
(
R
.
drawable
.
icon_main_dialog_popupwater_coin_lib
)
//
ivGetDropBg.setImageResource(R.drawable.icon_main_dialog_popupwater_coin_lib)
}
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
)
//
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_drop_happy_accept
).
setOnClickListener
{
mWebView
?.
loadUrl
(
"javascript:onResume()"
)
...
...
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