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
d5433e67
Commit
d5433e67
authored
Oct 26, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一览升级
parent
259f4d8a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
146 additions
and
87 deletions
+146
-87
build.gradle
GoodMoney/app/build.gradle
+2
-2
YlhVedioAdManager.java
...c/main/java/com/mints/goodmoney/ad/YlhVedioAdManager.java
+1
-1
SplashADActivity.kt
...java/com/mints/goodmoney/ui/activitys/SplashADActivity.kt
+3
-3
SplashYlhActivity.kt
...ava/com/mints/goodmoney/ui/activitys/SplashYlhActivity.kt
+1
-1
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+139
-80
No files found.
GoodMoney/app/build.gradle
View file @
d5433e67
...
@@ -196,11 +196,11 @@ dependencies {
...
@@ -196,11 +196,11 @@ dependencies {
// TalkingDada
// TalkingDada
implementation
files
(
'libs/SaaS_AppAnalytics_Android_SDK_V4.0.36.jar'
)
implementation
files
(
'libs/SaaS_AppAnalytics_Android_SDK_V4.0.36.jar'
)
// 一览视频
// 一览视频
implementation
(
"com.yilan.sdk:ui:2.
0.0.4
"
)
{
implementation
(
"com.yilan.sdk:ui:2.
5.0.10
"
)
{
exclude
group:
'com.yilan.sdk'
,
module:
'toutiao'
exclude
group:
'com.yilan.sdk'
,
module:
'toutiao'
exclude
group:
'com.yilan.sdk'
,
module:
'gdt'
exclude
group:
'com.yilan.sdk'
,
module:
'gdt'
}
}
implementation
"com.yilan.sdk:ad:2.
0.0.4
"
implementation
"com.yilan.sdk:ad:2.
5.0.10
"
implementation
(
'com.aliyun.ams:alicloud-android-httpdns:1.2.3@aar'
)
{
implementation
(
'com.aliyun.ams:alicloud-android-httpdns:1.2.3@aar'
)
{
transitive
true
transitive
true
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/YlhVedioAdManager.java
View file @
d5433e67
...
@@ -111,7 +111,7 @@ public class YlhVedioAdManager implements VedioAdManagerView {
...
@@ -111,7 +111,7 @@ public class YlhVedioAdManager implements VedioAdManagerView {
rewardVideoAD
=
null
;
rewardVideoAD
=
null
;
}
}
rewardVideoAD
=
new
RewardVideoAD
(
activity
,
ylhPostId
,
new
RewardVideoADListener
()
{
rewardVideoAD
=
new
RewardVideoAD
(
activity
,
YlhAdManager
.
YLH_AD_APPID
,
ylhPostId
,
new
RewardVideoADListener
()
{
@Override
@Override
public
void
onADLoad
()
{
//广告加载成功,可在此回调后进行广告展示,此时广告过期时间确定,可通过RewardVideoAD.getExpireTimestamp()获取
public
void
onADLoad
()
{
//广告加载成功,可在此回调后进行广告展示,此时广告过期时间确定,可通过RewardVideoAD.getExpireTimestamp()获取
try
{
try
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/SplashADActivity.kt
View file @
d5433e67
...
@@ -71,7 +71,7 @@ class SplashADActivity : BaseActivity(), SplashADListener {
...
@@ -71,7 +71,7 @@ class SplashADActivity : BaseActivity(), SplashADListener {
private
fun
fetchSplashAD
(
activity
:
Activity
,
adContainer
:
ViewGroup
?,
skipContainer
:
View
?,
private
fun
fetchSplashAD
(
activity
:
Activity
,
adContainer
:
ViewGroup
?,
skipContainer
:
View
?,
posId
:
String
,
adListener
:
SplashADListener
,
fetchDelay
:
Int
)
{
posId
:
String
,
adListener
:
SplashADListener
,
fetchDelay
:
Int
)
{
fetchSplashADTime
=
System
.
currentTimeMillis
()
fetchSplashADTime
=
System
.
currentTimeMillis
()
splashAD
=
SplashAD
(
activity
,
skipContainer
,
posId
,
adListener
,
fetchDelay
)
splashAD
=
SplashAD
(
activity
,
skipContainer
,
YlhAdManager
.
YLH_AD_APPID
,
posId
,
adListener
,
fetchDelay
)
splashAD
!!
.
fetchAndShowIn
(
adContainer
)
splashAD
!!
.
fetchAndShowIn
(
adContainer
)
}
}
...
@@ -102,8 +102,8 @@ class SplashADActivity : BaseActivity(), SplashADListener {
...
@@ -102,8 +102,8 @@ class SplashADActivity : BaseActivity(), SplashADListener {
}
}
override
fun
onADLoaded
(
expireTimestamp
:
Long
)
{
override
fun
onADLoaded
(
expireTimestamp
:
Long
)
{
Log
.
i
(
"AD_DEMO"
,
"SplashADFetch expireTimestamp: "
+
expireTimestamp
//
Log.i("AD_DEMO", "SplashADFetch expireTimestamp: " + expireTimestamp
+
", eCPMLevel = "
+
splashAD
!!
.
ecpmLevel
)
//
+ ", eCPMLevel = " + splashAD!!.ecpmLevel)
}
}
override
fun
onADDismissed
()
{
override
fun
onADDismissed
()
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/SplashYlhActivity.kt
View file @
d5433e67
...
@@ -116,7 +116,7 @@ class SplashYlhActivity : BaseActivity(), SplashADListener {
...
@@ -116,7 +116,7 @@ class SplashYlhActivity : BaseActivity(), SplashADListener {
private
fun
fetchSplashAD
(
activity
:
Activity
,
adContainer
:
ViewGroup
?,
skipContainer
:
View
?,
private
fun
fetchSplashAD
(
activity
:
Activity
,
adContainer
:
ViewGroup
?,
skipContainer
:
View
?,
posId
:
String
,
adListener
:
SplashADListener
,
fetchDelay
:
Int
)
{
posId
:
String
,
adListener
:
SplashADListener
,
fetchDelay
:
Int
)
{
fetchSplashADTime
=
System
.
currentTimeMillis
()
fetchSplashADTime
=
System
.
currentTimeMillis
()
splashAD
=
SplashAD
(
activity
,
skipContainer
,
posId
,
adListener
,
fetchDelay
)
splashAD
=
SplashAD
(
activity
,
skipContainer
,
YlhAdManager
.
YLH_AD_APPID
,
posId
,
adListener
,
fetchDelay
)
splashAD
!!
.
fetchAndShowIn
(
adContainer
)
splashAD
!!
.
fetchAndShowIn
(
adContainer
)
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
d5433e67
This diff is collapsed.
Click to expand it.
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