Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_highgold
Commits
8eb1f717
Commit
8eb1f717
authored
Jun 03, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.1.2发版
parent
a59bdf71
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
32 deletions
+51
-32
proguard-rules.pro
highgold/app/proguard-rules.pro
+11
-1
DomobVedioAdManager.kt
...rc/main/java/com/mints/highgold/ad/DomobVedioAdManager.kt
+12
-11
VedioAdingManager.java
...rc/main/java/com/mints/highgold/ad/VedioAdingManager.java
+11
-3
MainFragment.java
...ain/java/com/mints/highgold/ui/fragment/MainFragment.java
+17
-17
No files found.
highgold/app/proguard-rules.pro
View file @
8eb1f717
...
@@ -424,4 +424,14 @@
...
@@ -424,4 +424,14 @@
# ===================== 多盟 START ================
-keep class com.dm.sdk.ads.splash.
*
*{
public <methods>;
}
-keep class com.dm.sdk.common.util.AdError{
public <methods>;
}
-keep class com.dm.sdk.ads.DMAdActivity{
public <methods>;
}
# ======================= 多盟 END ================
highgold/app/src/main/java/com/mints/highgold/ad/DomobVedioAdManager.kt
View file @
8eb1f717
...
@@ -7,6 +7,7 @@ import com.dm.rvads.rewardvideo.RewardVideoAd
...
@@ -7,6 +7,7 @@ import com.dm.rvads.rewardvideo.RewardVideoAd
import
com.mints.highgold.MintsApplication
import
com.mints.highgold.MintsApplication
import
com.mints.highgold.common.Constant
import
com.mints.highgold.common.Constant
import
com.mints.highgold.manager.DomobManager
import
com.mints.highgold.manager.DomobManager
import
com.mints.highgold.manager.TrackManager
import
com.mints.highgold.mvp.presenters.DomobVedioAdPresenter
import
com.mints.highgold.mvp.presenters.DomobVedioAdPresenter
import
com.mints.highgold.mvp.views.DomobVedioAdView
import
com.mints.highgold.mvp.views.DomobVedioAdView
import
com.mints.highgold.utils.LogUtil
import
com.mints.highgold.utils.LogUtil
...
@@ -80,13 +81,13 @@ class DomobVedioAdManager private constructor(activity: Activity) :
...
@@ -80,13 +81,13 @@ class DomobVedioAdManager private constructor(activity: Activity) :
}
}
override
fun
onADClick
()
{
override
fun
onADClick
()
{
// TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_DUOMENT
, Constant.EVENT_TYPE_TWO, "", "")
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_DOMOB
,
Constant
.
EVENT_TYPE_TWO
,
""
,
""
)
//
//
if (isClickScreen) {
if
(
isClickScreen
)
{
//
// 防止重复
// 防止重复
// TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_DUOMENT
, Constant.EVENT_TYPE_FOUR, "", "")
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_DOMOB
,
Constant
.
EVENT_TYPE_FOUR
,
""
,
""
)
//
isClickScreen = false
isClickScreen
=
false
//
}
}
if
(
domobVedioAdListener
!=
null
)
{
if
(
domobVedioAdListener
!=
null
)
{
domobVedioAdListener
?.
domobVedioAdDownload
()
domobVedioAdListener
?.
domobVedioAdDownload
()
}
}
...
@@ -102,13 +103,13 @@ class DomobVedioAdManager private constructor(activity: Activity) :
...
@@ -102,13 +103,13 @@ class DomobVedioAdManager private constructor(activity: Activity) :
}
}
override
fun
onADClose
()
{
override
fun
onADClose
()
{
// TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_DUOMENT
, Constant.EVENT_TYPE_THREE, "", "")
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_DOMOB
,
Constant
.
EVENT_TYPE_THREE
,
""
,
""
)
if
(
domobVedioAdListener
!=
null
)
{
if
(
domobVedioAdListener
!=
null
)
{
domobVedioAdListener
?.
domobVedioAdSuccess
()
domobVedioAdListener
?.
domobVedioAdSuccess
()
}
}
//
domobVedioAdPresenter?.reportAddCoinMsg(activity, getAdMapVO())
domobVedioAdPresenter
?.
reportAddCoinMsg
(
activity
,
getAdMapVO
())
LogUtil
.
d
(
TAG
,
"onADClose"
)
LogUtil
.
d
(
TAG
,
"onADClose"
)
}
}
...
@@ -118,7 +119,7 @@ class DomobVedioAdManager private constructor(activity: Activity) :
...
@@ -118,7 +119,7 @@ class DomobVedioAdManager private constructor(activity: Activity) :
}
}
override
fun
onError
(
error
:
AdError
?)
{
override
fun
onError
(
error
:
AdError
?)
{
// TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_CHUANGSHEN
, Constant.EVENT_TYPE_ONE, (error?.errorCode).toString(), error?.errorMsg)
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_DOMOB
,
Constant
.
EVENT_TYPE_ONE
,
(
error
?.
errorCode
).
toString
(),
error
?.
errorMsg
)
if
(
domobVedioAdListener
!=
null
)
{
if
(
domobVedioAdListener
!=
null
)
{
domobVedioAdListener
?.
domobVedioAdFail
()
domobVedioAdListener
?.
domobVedioAdFail
()
...
@@ -129,7 +130,7 @@ class DomobVedioAdManager private constructor(activity: Activity) :
...
@@ -129,7 +130,7 @@ class DomobVedioAdManager private constructor(activity: Activity) :
override
fun
onADShow
()
{
override
fun
onADShow
()
{
LogUtil
.
d
(
TAG
,
"onADShow"
)
LogUtil
.
d
(
TAG
,
"onADShow"
)
// TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_DUOMENT
, Constant.EVENT_TYPE_ZERO, "", "")
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_DOMOB
,
Constant
.
EVENT_TYPE_ZERO
,
""
,
""
)
}
}
fun
setDomobVedioAdListener
(
domobVedioAdListener
:
DomobVedioAdListener
?)
{
fun
setDomobVedioAdListener
(
domobVedioAdListener
:
DomobVedioAdListener
?)
{
...
...
highgold/app/src/main/java/com/mints/highgold/ad/VedioAdingManager.java
View file @
8eb1f717
package
com
.
mints
.
highgold
.
ad
;
package
com
.
mints
.
highgold
.
ad
;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.os.Build
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
com.mints.highgold.MintsApplication
;
import
com.mints.highgold.MintsApplication
;
...
@@ -184,7 +185,7 @@ public class VedioAdingManager {
...
@@ -184,7 +185,7 @@ public class VedioAdingManager {
weight
=
weight
+
ylhWeight
;
weight
=
weight
+
ylhWeight
;
LogUtil
.
d
(
TAG
,
"权重值:ylhWeight:"
+
ylhWeight
);
LogUtil
.
d
(
TAG
,
"权重值:ylhWeight:"
+
ylhWeight
);
}
}
if
(
AppConfig
.
duomentVedioAdCount
>
0
)
{
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
Q
&&
AppConfig
.
duomentVedioAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
domobWeight
,
Constant
.
DUOMENT_VEDIO_AD
));
weightList
.
add
(
new
WeightBean
(
domobWeight
,
Constant
.
DUOMENT_VEDIO_AD
));
weight
=
weight
+
domobWeight
;
weight
=
weight
+
domobWeight
;
LogUtil
.
d
(
TAG
,
"权重值:domobWeight:"
+
domobWeight
);
LogUtil
.
d
(
TAG
,
"权重值:domobWeight:"
+
domobWeight
);
...
@@ -253,11 +254,18 @@ public class VedioAdingManager {
...
@@ -253,11 +254,18 @@ public class VedioAdingManager {
int
mintegralAdCount
=
AppConfig
.
mintegralAdCount
;
int
mintegralAdCount
=
AppConfig
.
mintegralAdCount
;
int
shanhuAdCount
=
AppConfig
.
shanhuAdCount
;
int
shanhuAdCount
=
AppConfig
.
shanhuAdCount
;
int
chuangshenVedioAdCount
=
AppConfig
.
chuangshenVedioAdCount
;
int
chuangshenVedioAdCount
=
AppConfig
.
chuangshenVedioAdCount
;
int
duomentVedioAdCount
=
AppConfig
.
duomentVedioAdCount
;
// android10以下多盟判断可用视频数
boolean
domobFlag
=
true
;
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
Q
)
{
int
duomentVedioAdCount
=
AppConfig
.
duomentVedioAdCount
;
domobFlag
=
duomentVedioAdCount
<=
0
?
true
:
false
;
}
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
csjVedioAdCount
<=
0
&&
hytechVedioAdCount
<=
0
&&
csjVedioAdCount
<=
0
&&
hytechVedioAdCount
<=
0
&&
mintegralAdCount
<=
0
&&
shanhuAdCount
<=
0
&&
mintegralAdCount
<=
0
&&
shanhuAdCount
<=
0
&&
chuangshenVedioAdCount
<=
0
&&
d
uomentVedioAdCount
<=
0
)
{
chuangshenVedioAdCount
<=
0
&&
d
omobFlag
)
{
// showToast("今日视频已看完,请明天再来吧");
// showToast("今日视频已看完,请明天再来吧");
return
true
;
return
true
;
}
}
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/MainFragment.java
View file @
8eb1f717
...
@@ -474,23 +474,23 @@ public class MainFragment extends BaseFragment
...
@@ -474,23 +474,23 @@ public class MainFragment extends BaseFragment
//测试数据
//测试数据
data
.
setVedioplan_csj_vedio_rate
(
0
);
//
data.setVedioplan_csj_vedio_rate(0);
data
.
setVedioplan_lyh_vedio_rate
(
0
);
//
data.setVedioplan_lyh_vedio_rate(0);
data
.
setVedioplan_csj_full_screen_video_rate
(
0
);
//
data.setVedioplan_csj_full_screen_video_rate(0);
data
.
setVedioplan_hytech_vedio_rate
(
0
);
//
data.setVedioplan_hytech_vedio_rate(0);
data
.
setVedioplan_mintegral_vedio_rate
(
0
);
//
data.setVedioplan_mintegral_vedio_rate(0);
data
.
setVedioplan_coral_vedio_rate
(
0
);
//
data.setVedioplan_coral_vedio_rate(0);
data
.
setVedioplan_domob_vedio_rate
(
10
);
//
data.setVedioplan_domob_vedio_rate(10);
data
.
setVedioplan_chuangshen_vedio_rate
(
0
);
//
data.setVedioplan_chuangshen_vedio_rate(0);
//
data
.
setVedioplan_csj_vedio_surplus
(
0
);
//
data.setVedioplan_csj_vedio_surplus(0);
data
.
setVedioplan_lyh_vedio_surplus
(
0
);
//
data.setVedioplan_lyh_vedio_surplus(0);
data
.
setVedioplan_csj_full_screen_video_surplus
(
0
);
//
data.setVedioplan_csj_full_screen_video_surplus(0);
data
.
setVedioplan_hytech_vedio_surplus
(
0
);
//
data.setVedioplan_hytech_vedio_surplus(0);
data
.
setVedioplan_mintegral_vedio_surplus
(
0
);
//
data.setVedioplan_mintegral_vedio_surplus(0);
data
.
setVedioplan_coral_vedio_surplus
(
0
);
//
data.setVedioplan_coral_vedio_surplus(0);
data
.
setVedioplan_domob_vedio_surplus
(
10
);
//
data.setVedioplan_domob_vedio_surplus(10);
data
.
setVedioplan_chuangshen_vedio_surplus
(
0
);
//
data.setVedioplan_chuangshen_vedio_surplus(0);
// 设置随机广告权重
// 设置随机广告权重
if
(
vedioAdingManager
!=
null
)
{
if
(
vedioAdingManager
!=
null
)
{
...
...
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