Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold_pro
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_pro
Commits
368c543e
Commit
368c543e
authored
Mar 09, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码合并
parent
8c7ded89
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
24 deletions
+23
-24
KsPreLoadExpressManager.kt
...com/mints/goldspace/ad/express/KsPreLoadExpressManager.kt
+1
-0
KsVideoAdManager.kt
...ain/java/com/mints/goldspace/ad/video/KsVideoAdManager.kt
+4
-2
VideoAdingManager.java
.../java/com/mints/goldspace/ad/video/VideoAdingManager.java
+16
-16
KsManager.kt
app/src/main/java/com/mints/goldspace/manager/KsManager.kt
+0
-4
local.properties
local.properties
+2
-2
No files found.
app/src/main/java/com/mints/goldspace/ad/express/KsPreLoadExpressManager.kt
View file @
368c543e
...
...
@@ -17,6 +17,7 @@ import com.mints.goldspace.manager.KsManager
import
com.mints.goldspace.utils.LogUtil
import
java.util.*
import
com.mints.goldspace.R
import
com.mints.library.utils.json.JsonUtil
/**
* 快手预加载信息流
...
...
app/src/main/java/com/mints/goldspace/ad/video/KsVideoAdManager.kt
View file @
368c543e
...
...
@@ -12,6 +12,7 @@ import com.mints.goldspace.common.Constant
import
com.mints.goldspace.manager.KsManager
import
com.mints.goldspace.manager.TrackManager
import
com.mints.goldspace.utils.LogUtil
import
com.mints.goldspace.utils.ToastUtil
private
val
TAG
=
KsVideoAdManager
::
class
.
java
.
simpleName
...
...
@@ -46,7 +47,8 @@ class KsVideoAdManager private constructor() :
override
fun
onError
(
p0
:
Int
,
p1
:
String
?)
{
videoAdStatusListener
?.
adFail
()
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_KS
,
Constant
.
EVENT_TYPE_ONE
,
p0
.
toString
(),
p1
)
ToastUtil
.
showLong
(
activity
,
"快手 onError: code->${p0.toString()} msg->${p1}"
)
LogUtil
.
d
(
p1
)
}
override
fun
onRewardVideoAdLoad
(
p0
:
MutableList
<
KsRewardVideoAd
>?)
{
...
...
@@ -83,7 +85,7 @@ class KsVideoAdManager private constructor() :
override
fun
onVideoPlayError
(
p0
:
Int
,
p1
:
Int
)
{
// ToastUtil.show(activity, "快手激励视频⼴告播放出错")
// ToastUtil.showLong(activity,"快手 onVideoPlayError: code->${p0} msg->${p1}")
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_KS
,
Constant
.
EVENT_TYPE_ONE
,
(
p0
).
toString
(),
(
p1
).
toString
())
videoAdStatusListener
?.
adFail
()
...
...
app/src/main/java/com/mints/goldspace/ad/video/VideoAdingManager.java
View file @
368c543e
...
...
@@ -213,10 +213,10 @@ public class VideoAdingManager {
nextAdType
=
Constant
.
YLH_VEDIO_AD
;
}
else
if
(
AppConfig
.
csjFullVedioAdCount
>
0
)
{
nextAdType
=
Constant
.
CSJ_FULL_AD
;
}
else
if
(
AppConfig
.
shVideoAdCount
>
0
)
{
nextAdType
=
Constant
.
SH_VEDIO_AD
;
}
else
if
(
AppConfig
.
ksVideoAdCount
>
0
)
{
nextAdType
=
Constant
.
KS_VEDIO_AD
;
}
else
if
(
AppConfig
.
shVideoAdCount
>
0
)
{
nextAdType
=
Constant
.
SH_VEDIO_AD
;
}
else
{
nextAdType
=
Constant
.
FL_VEDIO_AD
;
}
...
...
@@ -282,27 +282,27 @@ public class VideoAdingManager {
if
(
AppConfig
.
csjFullVedioAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
csjFullVideoWeight
,
Constant
.
CSJ_FULL_AD
));
weight
=
weight
+
csjFullVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:csjFullV
edi
oWeight:"
+
csjFullVideoWeight
);
LogUtil
.
d
(
TAG
,
"权重值:csjFullV
ide
oWeight:"
+
csjFullVideoWeight
);
}
if
(
AppConfig
.
flVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
flVideoWeight
,
Constant
.
FL_VEDIO_AD
));
weight
=
weight
+
flVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:flVideoWeight:"
+
flVideoWeight
);
}
if
(
AppConfig
.
wnVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
wnWeight
,
Constant
.
SDHZ_VEDIO_AD
));
weight
=
weight
+
wnWeight
;
LogUtil
.
d
(
TAG
,
"权重值:sdhzWeight:"
+
wnWeight
);
if
(
AppConfig
.
ksVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
ksVideoWeight
,
Constant
.
KS_VEDIO_AD
));
weight
=
weight
+
ksVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:ksWeight:"
+
ksVideoWeight
);
}
if
(
AppConfig
.
shVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
shVideoWeight
,
Constant
.
SH_VEDIO_AD
));
weight
=
weight
+
shVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:shWeight:"
+
shVideoWeight
);
}
if
(
AppConfig
.
ksVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
ksVideoWeight
,
Constant
.
KS_VEDIO_AD
));
weight
=
weight
+
ksVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:ksWeight:"
+
ksVideoWeight
);
if
(
AppConfig
.
wnVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
wnWeight
,
Constant
.
SDHZ_VEDIO_AD
));
weight
=
weight
+
wnWeight
;
LogUtil
.
d
(
TAG
,
"权重值:sdhzWeight:"
+
wnWeight
);
}
if
(
AppConfig
.
flVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
flVideoWeight
,
Constant
.
FL_VEDIO_AD
));
weight
=
weight
+
flVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:flVideoWeight:"
+
flVideoWeight
);
}
// 权重随机
...
...
app/src/main/java/com/mints/goldspace/manager/KsManager.kt
View file @
368c543e
...
...
@@ -13,11 +13,7 @@ object KsManager {
private
const
val
KS_APP_ID
=
"551900003"
/* splash-postid */
// const val KS_AD_SPLASH_POSTID = 5519000005
/*信息流*/
// val KS_AD_NATIVEEXPRESS_DRAW = 5519000008
const
val
KS_AD_NATIVEEXPRESS_AWARD
=
5519000010
/* vedio-postid */
...
...
local.properties
View file @
368c543e
...
...
@@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Mon Mar 08 1
0:52
:55 CST 2021
sdk.dir
=
/Users/
Hello
/Library/Android/sdk
#Mon Mar 08 1
9:40
:55 CST 2021
sdk.dir
=
/Users/
mcg
/Library/Android/sdk
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