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
41c816ff
Commit
41c816ff
authored
May 27, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.9发版
parent
518d618c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
37 deletions
+30
-37
build.gradle
highgold/app/build.gradle
+11
-11
ChuangshenVedioAdManager.kt
...in/java/com/mints/highgold/ad/ChuangshenVedioAdManager.kt
+2
-2
VedioAdingManager.java
...rc/main/java/com/mints/highgold/ad/VedioAdingManager.java
+9
-12
CsVedioActivity.kt
...n/java/com/mints/highgold/ui/activitys/CsVedioActivity.kt
+8
-8
TransitionActivity.java
.../main/java/com/mints/library/base/TransitionActivity.java
+0
-4
bg_banner.gif
highgold/app/src/main/res/drawable/bg_banner.gif
+0
-0
goldvoice2.mp3
highgold/app/src/main/res/raw/goldvoice2.mp3
+0
-0
No files found.
highgold/app/build.gradle
View file @
41c816ff
...
@@ -256,23 +256,23 @@ dependencies {
...
@@ -256,23 +256,23 @@ dependencies {
// implementation 'com.github.castorflex.verticalviewpager:library:19.0.1'
// implementation 'com.github.castorflex.verticalviewpager:library:19.0.1'
// implementation 'com.baidu.mobstat:mtj-sdk-circle:latest.integration'
// implementation 'com.baidu.mobstat:mtj-sdk-circle:latest.integration'
// 一览视频
// 一览视频
//
implementation "com.yilan.sdk:ui:1.9.0.2"//修改为具体的sdk版本
implementation
"com.yilan.sdk:ui:1.9.0.2"
//修改为具体的sdk版本
//
implementation "com.yilan.sdk:ad:1.9.0.2"//修改为具体的sdk版本,支持广点通、百度广告
implementation
"com.yilan.sdk:ad:1.9.0.2"
//修改为具体的sdk版本,支持广点通、百度广告
implementation
(
"com.yilan.sdk:ui:2.0.0.0"
){
//
implementation ("com.yilan.sdk:ui:2.0.0.0"){
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.0"
//修改为具体的sdk版本,支持广点通、百度广告
//
implementation "com.yilan.sdk:ad:2.0.0.0"//修改为具体的sdk版本,支持广点通、百度广告
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
}
}
//支持ijkplayer进行播放,建议添加
//支持ijkplayer进行播放,建议添加
implementation
'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
//
implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
//
implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
//
implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
//
implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
// Mintegral 广告
// Mintegral 广告
implementation
'com.mintegral.msdk:videojs:10.2.41'
implementation
'com.mintegral.msdk:videojs:10.2.41'
implementation
'com.mintegral.msdk:mtgjscommon:10.2.41'
implementation
'com.mintegral.msdk:mtgjscommon:10.2.41'
...
...
highgold/app/src/main/java/com/mints/highgold/ad/ChuangshenVedioAdManager.kt
View file @
41c816ff
...
@@ -10,7 +10,7 @@ import com.mints.highgold.ui.activitys.CsVedioActivity
...
@@ -10,7 +10,7 @@ import com.mints.highgold.ui.activitys.CsVedioActivity
* 创神视频
* 创神视频
*/
*/
class
ChuangshenVedioAdManager
private
constructor
(
activity
:
Activity
)
{
class
ChuangshenVedioAdManager
private
constructor
(
activity
:
Activity
)
{
private
var
chuangshenVedioAdListener
:
ChuangshenVedioAdListener
?
=
null
private
lateinit
var
chuangshenVedioAdListener
:
ChuangshenVedioAdListener
var
activity
:
Activity
?
=
null
var
activity
:
Activity
?
=
null
companion
object
{
companion
object
{
...
@@ -45,7 +45,7 @@ class ChuangshenVedioAdManager private constructor(activity: Activity) {
...
@@ -45,7 +45,7 @@ class ChuangshenVedioAdManager private constructor(activity: Activity) {
readyGo
(
CsVedioActivity
::
class
.
java
,
bundle
)
readyGo
(
CsVedioActivity
::
class
.
java
,
bundle
)
}
}
fun
setChuangshenVedioAdListener
(
chuangshenVedioAdListener
:
ChuangshenVedioAdListener
?
)
{
fun
setChuangshenVedioAdListener
(
chuangshenVedioAdListener
:
ChuangshenVedioAdListener
)
{
this
.
chuangshenVedioAdListener
=
chuangshenVedioAdListener
this
.
chuangshenVedioAdListener
=
chuangshenVedioAdListener
}
}
...
...
highgold/app/src/main/java/com/mints/highgold/ad/VedioAdingManager.java
View file @
41c816ff
...
@@ -118,10 +118,10 @@ public class VedioAdingManager {
...
@@ -118,10 +118,10 @@ public class VedioAdingManager {
*/
*/
private
String
getNextAdType
()
{
private
String
getNextAdType
()
{
String
nextAdType
=
""
;
String
nextAdType
=
""
;
if
(
AppConfig
.
csjVedioAdCount
>
0
)
{
if
(
AppConfig
.
ylhAdCount
>
0
)
{
nextAdType
=
Constant
.
CSJ_VEDIO_AD
;
}
else
if
(
AppConfig
.
ylhAdCount
>
0
)
{
nextAdType
=
Constant
.
YLH_VEDIO_AD
;
nextAdType
=
Constant
.
YLH_VEDIO_AD
;
}
else
if
(
AppConfig
.
csjVedioAdCount
>
0
)
{
nextAdType
=
Constant
.
CSJ_VEDIO_AD
;
}
else
if
(
AppConfig
.
mintegralAdCount
>
0
)
{
}
else
if
(
AppConfig
.
mintegralAdCount
>
0
)
{
nextAdType
=
Constant
.
MINTEGRAL_VEDIO_AD
;
nextAdType
=
Constant
.
MINTEGRAL_VEDIO_AD
;
}
else
if
(
AppConfig
.
shanhuAdCount
>
0
)
{
}
else
if
(
AppConfig
.
shanhuAdCount
>
0
)
{
...
@@ -159,16 +159,16 @@ public class VedioAdingManager {
...
@@ -159,16 +159,16 @@ public class VedioAdingManager {
int
weight
=
0
;
int
weight
=
0
;
// 若没有视频完成数,不加入权重计算范围内
// 若没有视频完成数,不加入权重计算范围内
if
(
AppConfig
.
csjVedioAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
csjVedioWeight
,
Constant
.
CSJ_VEDIO_AD
));
weight
=
weight
+
csjVedioWeight
;
LogUtil
.
d
(
TAG
,
"权重值:csjVedioWeight:"
+
csjVedioWeight
);
}
if
(
AppConfig
.
ylhAdCount
>
0
)
{
if
(
AppConfig
.
ylhAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
ylhWeight
,
Constant
.
YLH_VEDIO_AD
));
weightList
.
add
(
new
WeightBean
(
ylhWeight
,
Constant
.
YLH_VEDIO_AD
));
weight
=
weight
+
ylhWeight
;
weight
=
weight
+
ylhWeight
;
LogUtil
.
d
(
TAG
,
"权重值:ylhWeight:"
+
ylhWeight
);
LogUtil
.
d
(
TAG
,
"权重值:ylhWeight:"
+
ylhWeight
);
}
}
if
(
AppConfig
.
csjVedioAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
csjVedioWeight
,
Constant
.
CSJ_VEDIO_AD
));
weight
=
weight
+
csjVedioWeight
;
LogUtil
.
d
(
TAG
,
"权重值:csjVedioWeight:"
+
csjVedioWeight
);
}
if
(
AppConfig
.
mintegralAdCount
>
0
)
{
if
(
AppConfig
.
mintegralAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
mintegralWeight
,
Constant
.
MINTEGRAL_VEDIO_AD
));
weightList
.
add
(
new
WeightBean
(
mintegralWeight
,
Constant
.
MINTEGRAL_VEDIO_AD
));
weight
=
weight
+
mintegralWeight
;
weight
=
weight
+
mintegralWeight
;
...
@@ -197,9 +197,6 @@ public class VedioAdingManager {
...
@@ -197,9 +197,6 @@ public class VedioAdingManager {
// 权重随机
// 权重随机
if
(
weightList
!=
null
&&
weightList
.
size
()
>
0
&&
weight
>
0
)
{
if
(
weightList
!=
null
&&
weightList
.
size
()
>
0
&&
weight
>
0
)
{
// for (WeightBean weightBean : weightList) {
// weight += weightBean.getWeight();
// }
LogUtil
.
d
(
TAG
,
"1、权重总值:"
+
weight
);
LogUtil
.
d
(
TAG
,
"1、权重总值:"
+
weight
);
Random
r
=
new
Random
();
Random
r
=
new
Random
();
int
randomWeight
=
r
.
nextInt
(
weight
)
+
1
;
int
randomWeight
=
r
.
nextInt
(
weight
)
+
1
;
...
@@ -529,7 +526,7 @@ public class VedioAdingManager {
...
@@ -529,7 +526,7 @@ public class VedioAdingManager {
if
(
chuangshenVedioAdManager
==
null
)
{
if
(
chuangshenVedioAdManager
==
null
)
{
if
(
activity
==
null
)
{
if
(
activity
==
null
)
{
if
(
vedioAdingListener
!=
null
)
{
if
(
vedioAdingListener
!=
null
)
{
vedioAdingListener
.
vedioAdingListenerError
(
Constant
.
SHANHU
_VEDIO_AD
);
vedioAdingListener
.
vedioAdingListenerError
(
Constant
.
CHUANGSHEN
_VEDIO_AD
);
}
}
return
;
return
;
}
}
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/CsVedioActivity.kt
View file @
41c816ff
...
@@ -24,7 +24,7 @@ class CsVedioActivity : BaseActivity()
...
@@ -24,7 +24,7 @@ class CsVedioActivity : BaseActivity()
private
val
TAG
=
CsVedioActivity
::
class
.
java
.
simpleName
private
val
TAG
=
CsVedioActivity
::
class
.
java
.
simpleName
private
var
csVedioPresenter
:
CsVedioPresenter
?
=
null
private
lateinit
var
csVedioPresenter
:
CsVedioPresenter
private
var
vedioCoin
:
String
?
=
null
private
var
vedioCoin
:
String
?
=
null
private
var
vedioDownloadCoin
:
String
?
=
null
private
var
vedioDownloadCoin
:
String
?
=
null
...
@@ -45,11 +45,12 @@ class CsVedioActivity : BaseActivity()
...
@@ -45,11 +45,12 @@ class CsVedioActivity : BaseActivity()
tryCarrier
=
it
.
getString
(
Constant
.
TRY_CARRIER
)
tryCarrier
=
it
.
getString
(
Constant
.
TRY_CARRIER
)
extraId
=
it
.
getString
(
Constant
.
MAIN_EXTRA_ID
)
extraId
=
it
.
getString
(
Constant
.
MAIN_EXTRA_ID
)
}
}
}
}
override
fun
initViewsAndEvents
()
{
override
fun
initViewsAndEvents
()
{
if
(!
::
csVedioPresenter
.
isInitialized
){
csVedioPresenter
=
CsVedioPresenter
()
csVedioPresenter
=
CsVedioPresenter
()
}
csVedioPresenter
?.
attachView
(
this
)
csVedioPresenter
?.
attachView
(
this
)
loadVedio
();
loadVedio
();
...
@@ -74,7 +75,6 @@ class CsVedioActivity : BaseActivity()
...
@@ -74,7 +75,6 @@ class CsVedioActivity : BaseActivity()
if
(
isLoadError
)
super
.
onBackPressed
()
if
(
isLoadError
)
super
.
onBackPressed
()
}
}
private
fun
loadVedio
()
{
private
fun
loadVedio
()
{
csAdVideoView
?.
setAdListener
(
object
:
VideoCallback
()
{
csAdVideoView
?.
setAdListener
(
object
:
VideoCallback
()
{
override
fun
onAdShow
()
{
override
fun
onAdShow
()
{
...
@@ -87,12 +87,12 @@ class CsVedioActivity : BaseActivity()
...
@@ -87,12 +87,12 @@ class CsVedioActivity : BaseActivity()
return
return
}
}
cmtVedioParam
()
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CHUANGSHEN
,
Constant
.
EVENT_TYPE_THREE
,
""
,
""
)
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CHUANGSHEN
,
Constant
.
EVENT_TYPE_THREE
,
""
,
""
)
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
if
(
isClickScreen
)
{
if
(
isClickScreen
)
{
//无下载奖励
//无下载奖励
cmtVedioParam
()
when
(
tryCarrier
)
{
when
(
tryCarrier
)
{
Constant
.
CARRIER_HOMEWATER_BUBBLE
,
Constant
.
CARRIER_HOMEWATER_BUBBLE
,
Constant
.
CARRIER_REDENVELOPE_DOUBLE
,
Constant
.
CARRIER_REDENVELOPE_DOUBLE
,
...
@@ -169,7 +169,7 @@ class CsVedioActivity : BaseActivity()
...
@@ -169,7 +169,7 @@ class CsVedioActivity : BaseActivity()
*/
*/
private
fun
cmtVedioParam
()
{
private
fun
cmtVedioParam
()
{
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"adsource"
]
=
Constant
.
AD_SOURCE_
HYTECH
vo
[
"adsource"
]
=
Constant
.
AD_SOURCE_
CHUANGSHEN
vo
[
"carrierType"
]
=
tryCarrier
!!
vo
[
"carrierType"
]
=
tryCarrier
!!
vo
[
"adtype"
]
=
Constant
.
ADTYPE_VEDIO
vo
[
"adtype"
]
=
Constant
.
ADTYPE_VEDIO
vo
[
"status"
]
=
Constant
.
TASK_STATUS
vo
[
"status"
]
=
Constant
.
TASK_STATUS
...
@@ -196,7 +196,7 @@ class CsVedioActivity : BaseActivity()
...
@@ -196,7 +196,7 @@ class CsVedioActivity : BaseActivity()
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"status"
]
=
Constant
.
TASK_STATUS
vo
[
"status"
]
=
Constant
.
TASK_STATUS
vo
[
"adtype"
]
=
Constant
.
ADTYPE_DOWNLOAD
vo
[
"adtype"
]
=
Constant
.
ADTYPE_DOWNLOAD
vo
[
"adsource"
]
=
Constant
.
AD_SOURCE_
HYTECH
vo
[
"adsource"
]
=
Constant
.
AD_SOURCE_
CHUANGSHEN
vo
[
"carrierType"
]
=
tryCarrier
!!
vo
[
"carrierType"
]
=
tryCarrier
!!
csVedioPresenter
?.
reportDownloadTask
(
tryCarrier
,
vo
)
csVedioPresenter
?.
reportDownloadTask
(
tryCarrier
,
vo
)
}
}
...
...
highgold/app/src/main/java/com/mints/library/base/TransitionActivity.java
View file @
41c816ff
...
@@ -6,10 +6,6 @@ import android.support.v7.app.AppCompatActivity;
...
@@ -6,10 +6,6 @@ import android.support.v7.app.AppCompatActivity;
import
com.mints.highgold.R
;
import
com.mints.highgold.R
;
/**
* @author assen
* @date 2019/7/4
*/
public
abstract
class
TransitionActivity
extends
AppCompatActivity
{
public
abstract
class
TransitionActivity
extends
AppCompatActivity
{
@Override
@Override
...
...
highgold/app/src/main/res/drawable/bg_banner.gif
100644 → 100755
View replaced file @
518d618c
View file @
41c816ff
18.5 KB
|
W:
|
H:
10.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
highgold/app/src/main/res/raw/goldvoice2.mp3
deleted
100755 → 0
View file @
518d618c
File deleted
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