Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
606a7d0d
Commit
606a7d0d
authored
May 26, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
5623c54f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
44 deletions
+16
-44
proguard-rules.pro
GoodMoney/app/proguard-rules.pro
+1
-1
CsjGroMoreVideoAdManager.java
...om/mints/goodmoney/ad/video/CsjGroMoreVideoAdManager.java
+13
-43
AboutusActivity.kt
.../java/com/mints/goodmoney/ui/activitys/AboutusActivity.kt
+2
-0
No files found.
GoodMoney/app/proguard-rules.pro
View file @
606a7d0d
...
@@ -808,7 +808,7 @@
...
@@ -808,7 +808,7 @@
-keep public interface com.bytedance.sdk.openadsdk.downloadnew.
*
* {*;}
-keep public interface com.bytedance.sdk.openadsdk.downloadnew.
*
* {*;}
-keep class com.pgl.sys.ces.* {*;}
-keep class com.pgl.sys.ces.* {*;}
//
聚合混淆
#
聚合混淆
-keep class bykvm*.
*
*
-keep class bykvm*.
*
*
-keep class com.bytedance.msdk.adapter.
*
*{ public *; }
-keep class com.bytedance.msdk.adapter.
*
*{ public *; }
-keep class com.bytedance.msdk.api.
*
* {
-keep class com.bytedance.msdk.api.
*
* {
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/CsjGroMoreVideoAdManager.java
View file @
606a7d0d
...
@@ -36,7 +36,7 @@ import java.util.HashMap;
...
@@ -36,7 +36,7 @@ import java.util.HashMap;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
*
穿山甲
激励视频广告
*
GroMore
激励视频广告
*/
*/
public
class
CsjGroMoreVideoAdManager
extends
BaseVideoAd
{
public
class
CsjGroMoreVideoAdManager
extends
BaseVideoAd
{
...
@@ -46,6 +46,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -46,6 +46,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
private
AppPreferences
ps
;
private
AppPreferences
ps
;
private
int
curCoin
;
private
int
curCoin
;
private
String
extraId
;
private
String
extraId
;
private
String
carrierType
;
private
VideoAdStatusListener
videoAdStatusListener
;
private
VideoAdStatusListener
videoAdStatusListener
;
private
TTRewardAd
mttRewardAd
;
private
TTRewardAd
mttRewardAd
;
...
@@ -97,6 +98,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -97,6 +98,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
isClickScreen
=
true
;
isClickScreen
=
true
;
this
.
curCoin
=
curCoin
;
this
.
curCoin
=
curCoin
;
this
.
extraId
=
extraId
;
this
.
extraId
=
extraId
;
this
.
carrierType
=
carrierType
;
/**
/**
* 判断当前是否存在config 配置 ,如果存在直接加载广告 ,如果不存在则注册config加载回调
* 判断当前是否存在config 配置 ,如果存在直接加载广告 ,如果不存在则注册config加载回调
*/
*/
...
@@ -150,7 +152,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -150,7 +152,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
@Override
@Override
public
void
onRewardVideoLoadFail
(
AdError
adError
)
{
public
void
onRewardVideoLoadFail
(
AdError
adError
)
{
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
CSJ
,
Constant
.
EVENT_TYPE_ONE
,
String
.
valueOf
(
adError
.
code
),
adError
.
message
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
GROMORE
,
Constant
.
EVENT_TYPE_ONE
,
String
.
valueOf
(
adError
.
code
),
adError
.
message
);
LogUtil
.
d
(
"vedioAdStatusListener"
,
"onError "
+
String
.
valueOf
(
adError
.
code
)
+
adError
.
message
);
LogUtil
.
d
(
"vedioAdStatusListener"
,
"onError "
+
String
.
valueOf
(
adError
.
code
)
+
adError
.
message
);
...
@@ -171,7 +173,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -171,7 +173,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
//展示广告,并传入广告展示的场景
//展示广告,并传入广告展示的场景
mttRewardAd
.
showRewardAd
(
activity
,
mTTRewardedAdListener
);
mttRewardAd
.
showRewardAd
(
activity
,
mTTRewardedAdListener
);
}
else
{
}
else
{
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
CSJ
,
Constant
.
EVENT_TYPE_ONE
,
"999999"
,
"Cached Fail"
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
GROMORE
,
Constant
.
EVENT_TYPE_ONE
,
"999999"
,
"Cached Fail"
);
if
(
videoAdStatusListener
!=
null
)
{
if
(
videoAdStatusListener
!=
null
)
{
videoAdStatusListener
.
adFail
();
videoAdStatusListener
.
adFail
();
...
@@ -191,7 +193,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -191,7 +193,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
*/
*/
public
void
onRewardedAdShow
()
{
public
void
onRewardedAdShow
()
{
Log
.
d
(
TAG
,
"onRewardedAdShow"
);
Log
.
d
(
TAG
,
"onRewardedAdShow"
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
CSJ
,
Constant
.
EVENT_TYPE_ZERO
,
""
,
""
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
GROMORE
,
Constant
.
EVENT_TYPE_ZERO
,
""
,
""
);
}
}
...
@@ -207,11 +209,11 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -207,11 +209,11 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
TrackManager
.
getInstance
().
reportClickAdEvent
();
TrackManager
.
getInstance
().
reportClickAdEvent
();
}
}
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
CSJ
,
Constant
.
EVENT_TYPE_TWO
,
""
,
""
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
GROMORE
,
Constant
.
EVENT_TYPE_TWO
,
""
,
""
);
if
(
isClickScreen
)
{
if
(
isClickScreen
)
{
// 防止重复
// 防止重复
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
CSJ
,
Constant
.
EVENT_TYPE_FOUR
,
""
,
""
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
GROMORE
,
Constant
.
EVENT_TYPE_FOUR
,
""
,
""
);
isClickScreen
=
false
;
isClickScreen
=
false
;
}
}
if
(
videoAdStatusListener
!=
null
)
{
if
(
videoAdStatusListener
!=
null
)
{
...
@@ -225,7 +227,10 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -225,7 +227,10 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
public
void
onRewardedAdClosed
()
{
public
void
onRewardedAdClosed
()
{
Log
.
d
(
TAG
,
"onRewardedAdClosed"
);
Log
.
d
(
TAG
,
"onRewardedAdClosed"
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CSJ
,
Constant
.
EVENT_TYPE_THREE
,
""
,
""
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_GROMORE
,
Constant
.
EVENT_TYPE_THREE
,
""
,
""
);
TrackManager
.
getInstance
().
reportAddCoinMsg
(
activity
,
getAdMapVO
(
carrierType
,
Constant
.
AD_SOURCE_GROMORE
,
extraId
,
curCoin
));
if
(
videoAdStatusListener
!=
null
)
{
if
(
videoAdStatusListener
!=
null
)
{
videoAdStatusListener
.
adSuccess
();
videoAdStatusListener
.
adSuccess
();
...
@@ -245,7 +250,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -245,7 +250,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
*/
*/
public
void
onVideoError
()
{
public
void
onVideoError
()
{
Log
.
d
(
TAG
,
"onVideoError"
);
Log
.
d
(
TAG
,
"onVideoError"
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
CSJ
,
Constant
.
EVENT_TYPE_ONE
,
"999999"
,
"VideoError"
);
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_
GROMORE
,
Constant
.
EVENT_TYPE_ONE
,
"999999"
,
"VideoError"
);
if
(
videoAdStatusListener
!=
null
)
{
if
(
videoAdStatusListener
!=
null
)
{
videoAdStatusListener
.
adFail
();
videoAdStatusListener
.
adFail
();
...
@@ -277,41 +282,6 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
...
@@ -277,41 +282,6 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
};
};
/**
* 封装广告数据,请求服务器
*
* @param carrierType
* @param tid
* @return
*/
private
HashMap
<
String
,
Object
>
getAdMapVO
(
String
carrierType
,
String
tid
)
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
vo
.
put
(
"carrierType"
,
carrierType
);
vo
.
put
(
"adtype"
,
Constant
.
ADTYPE_VEDIO
);
vo
.
put
(
"tid"
,
tid
);
vo
.
put
(
"adsource"
,
Constant
.
AD_SOURCE_CSJ
);
if
(
ps
==
null
)
{
ps
=
new
AppPreferences
(
activity
);
}
vo
.
put
(
"ip"
,
ps
.
getString
(
Constant
.
CSJ_VEDIO_APPIP
,
""
));
switch
(
carrierType
)
{
case
Constant
.
CARRIER_VERSUS_VIDEO
:
// 每日任务-视频
vo
.
put
(
"coin"
,
curCoin
);
break
;
case
Constant
.
CARRIER_HOMEWATER
:
// 首页喝水汽泡
vo
.
put
(
"waterCoin"
,
curCoin
);
break
;
case
Constant
.
CARRIER_OFFLINE_DOUBLE
:
// 离线收益翻倍
vo
.
put
(
"offline_income"
,
curCoin
);
case
Constant
.
CARRIER_CHALLENGE_TURN
:
// 挑战大转盘
case
Constant
.
CARRIER_CHALLENGE_CARD
:
// 挑战刮刮乐
vo
.
put
(
"turntableKey"
,
extraId
);
break
;
}
return
vo
;
}
public
void
setVideoAdStatusListener
(
VideoAdStatusListener
videoAdStatusListener
)
{
public
void
setVideoAdStatusListener
(
VideoAdStatusListener
videoAdStatusListener
)
{
this
.
videoAdStatusListener
=
videoAdStatusListener
;
this
.
videoAdStatusListener
=
videoAdStatusListener
;
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AboutusActivity.kt
View file @
606a7d0d
...
@@ -9,6 +9,7 @@ import com.bytedance.hume.readapk.HumeSDK
...
@@ -9,6 +9,7 @@ import com.bytedance.hume.readapk.HumeSDK
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.R
import
com.mints.goodmoney.R
import
com.mints.goodmoney.ad.banner.BannerManager
import
com.mints.goodmoney.ad.banner.BannerManager
import
com.mints.goodmoney.ad.video.CsjGroMoreVideoAdManager
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.TtCsjAdManager
import
com.mints.goodmoney.manager.TtCsjAdManager
...
@@ -43,6 +44,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
...
@@ -43,6 +44,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
ToastUtil
.
showLong
(
MintsApplication
.
getContext
(),
"自有渠道:"
+
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
)
+
ToastUtil
.
showLong
(
MintsApplication
.
getContext
(),
"自有渠道:"
+
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
)
+
"\n 广告代码位:"
+
AppConfig
.
user_channel_ad
+
"\n 广告代码位:"
+
AppConfig
.
user_channel_ad
+
"\n 头条渠道:"
+
HumeSDK
.
getChannel
(
context
))
"\n 头条渠道:"
+
HumeSDK
.
getChannel
(
context
))
// CsjGroMoreVideoAdManager.getInstance(AboutusActivity@this).loadAd(AboutusActivity@this,0,"","")
true
true
}
}
...
...
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