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
8f85e410
Commit
8f85e410
authored
May 26, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新创神新包,更新一览新包
parent
0a387401
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
178 additions
and
58 deletions
+178
-58
build.gradle
highgold/app/build.gradle
+14
-8
ad_support_library_v2.1.4.aar
highgold/app/libs/ad_support_library_v2.1.4.aar
+0
-0
AndroidManifest.xml
highgold/app/src/main/AndroidManifest.xml
+4
-2
ChuangshenVedioAdManager.kt
...in/java/com/mints/highgold/ad/ChuangshenVedioAdManager.kt
+19
-22
CsVedioPresenter.kt
...ava/com/mints/highgold/mvp/presenters/CsVedioPresenter.kt
+1
-1
AwardActivity.java
...n/java/com/mints/highgold/ui/activitys/AwardActivity.java
+1
-1
CsVedioActivity.kt
...n/java/com/mints/highgold/ui/activitys/CsVedioActivity.kt
+136
-22
MainFragment.java
...ain/java/com/mints/highgold/ui/fragment/MainFragment.java
+2
-2
YilanVedioFragment.java
...va/com/mints/highgold/ui/fragment/YilanVedioFragment.java
+1
-0
No files found.
highgold/app/build.gradle
View file @
8f85e410
...
@@ -176,7 +176,8 @@ dependencies {
...
@@ -176,7 +176,8 @@ dependencies {
// 权限
// 权限
implementation
'com.tbruyelle.rxpermissions:rxpermissions:0.9.3@aar'
implementation
'com.tbruyelle.rxpermissions:rxpermissions:0.9.3@aar'
// 图片加载
// 图片加载
implementation
'com.github.bumptech.glide:glide:4.8.0'
implementation
'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor
'com.github.bumptech.glide:compiler:4.9.0'
// 65536
// 65536
implementation
'com.android.support:multidex:1.0.3'
implementation
'com.android.support:multidex:1.0.3'
//下拉刷新
//下拉刷新
...
@@ -255,18 +256,23 @@ dependencies {
...
@@ -255,18 +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"
){
exclude
group:
'com.yilan.sdk'
,
module:
'toutiao'
exclude
group:
'com.yilan.sdk'
,
module:
'gdt'
}
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'
...
@@ -294,7 +300,7 @@ dependencies {
...
@@ -294,7 +300,7 @@ dependencies {
implementation
(
name:
'discovery-2.0.12'
,
ext:
'aar'
)
implementation
(
name:
'discovery-2.0.12'
,
ext:
'aar'
)
implementation
(
name:
'shanhuAD-1.0.14'
,
ext:
'aar'
)
implementation
(
name:
'shanhuAD-1.0.14'
,
ext:
'aar'
)
// 创神广告
// 创神广告
implementation
(
name:
'ad_
library_v2.0
'
,
ext:
'aar'
)
implementation
(
name:
'ad_
support_library_v2.1.4
'
,
ext:
'aar'
)
testImplementation
'junit:junit:4.12'
testImplementation
'junit:junit:4.12'
...
...
highgold/app/libs/ad_
library_v2.0
.aar
→
highgold/app/libs/ad_
support_library_v2.1.4
.aar
View file @
8f85e410
No preview for this file type
highgold/app/src/main/AndroidManifest.xml
View file @
8f85e410
...
@@ -253,11 +253,13 @@
...
@@ -253,11 +253,13 @@
<activity
<activity
android:name=
"com.qq.e.ads.LandscapeADActivity"
android:name=
"com.qq.e.ads.LandscapeADActivity"
android:configChanges=
"keyboard|keyboardHidden|orientation|screenSize"
android:configChanges=
"keyboard|keyboardHidden|orientation|screenSize"
android:screenOrientation=
"landscape"
/>
<!-- 今⽇日头条sdk需添加 -->
android:screenOrientation=
"landscape"
/>
<!-- 一览 今⽇日头条sdk需添加 -->
<provider
<provider
android:name=
"com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
android:name=
"com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
android:authorities=
"${applicationId}.TTMultiProvider"
android:authorities=
"${applicationId}.TTMultiProvider"
android:exported=
"false"
/>
<!-- Mintegral广告 -->
android:exported=
"false"
/>
<!-- Mintegral广告 -->
<activity
<activity
android:name=
"com.mintegral.msdk.activity.MTGCommonActivity"
android:name=
"com.mintegral.msdk.activity.MTGCommonActivity"
android:configChanges=
"keyboard|orientation"
android:configChanges=
"keyboard|orientation"
...
...
highgold/app/src/main/java/com/mints/highgold/ad/ChuangshenVedioAdManager.kt
View file @
8f85e410
...
@@ -12,15 +12,28 @@ import com.mints.highgold.ui.activitys.CsVedioActivity
...
@@ -12,15 +12,28 @@ 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
var
chuangshenVedioAdListener
:
ChuangshenVedioAdListener
?
=
null
var
activity
:
Activity
?
=
null
var
activity
:
Activity
?
=
null
private
fun
init
(
activity
:
Activity
)
{
this
.
activity
=
activity
companion
object
{
private
var
_inst
:
ChuangshenVedioAdManager
?
=
null
fun
getInstance
(
activity
:
Activity
):
ChuangshenVedioAdManager
?
{
return
if
(
_inst
!=
null
)
{
_inst
}
else
{
_inst
=
ChuangshenVedioAdManager
(
activity
)
_inst
}
}
}
}
fun
loadChuangshenAd
(
downloadCoin
:
Int
,
curCoin
:
Int
,
carrierType
:
String
?,
extraId
:
String
?)
{
init
{
if
(
activity
==
null
)
{
init
(
activity
)
return
}
}
private
fun
init
(
activity
:
Activity
)
{
this
.
activity
=
activity
}
fun
loadChuangshenAd
(
downloadCoin
:
Int
=
0
,
curCoin
:
Int
=
0
,
carrierType
:
String
?,
extraId
:
String
?)
{
chuangshenVedioAdListener
?.
chuangshenVedioAdSuccess
()
chuangshenVedioAdListener
?.
chuangshenVedioAdSuccess
()
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
...
@@ -28,7 +41,7 @@ class ChuangshenVedioAdManager private constructor(activity: Activity) {
...
@@ -28,7 +41,7 @@ class ChuangshenVedioAdManager private constructor(activity: Activity) {
bundle
.
putString
(
Constant
.
TRY_TASK_H5DOWNLOADCOIN
,
downloadCoin
.
toString
())
bundle
.
putString
(
Constant
.
TRY_TASK_H5DOWNLOADCOIN
,
downloadCoin
.
toString
())
bundle
.
putString
(
Constant
.
TRY_CARRIER
,
carrierType
)
bundle
.
putString
(
Constant
.
TRY_CARRIER
,
carrierType
)
bundle
.
putString
(
Constant
.
MAIN_EXTRA_ID
,
extraId
)
bundle
.
putString
(
Constant
.
MAIN_EXTRA_ID
,
extraId
)
readyGo
(
CsVedioActivity
::
class
.
java
,
bundle
)
readyGo
(
CsVedioActivity
::
class
.
java
,
bundle
)
}
}
fun
setChuangshenVedioAdListener
(
chuangshenVedioAdListener
:
ChuangshenVedioAdListener
?)
{
fun
setChuangshenVedioAdListener
(
chuangshenVedioAdListener
:
ChuangshenVedioAdListener
?)
{
...
@@ -39,22 +52,6 @@ class ChuangshenVedioAdManager private constructor(activity: Activity) {
...
@@ -39,22 +52,6 @@ class ChuangshenVedioAdManager private constructor(activity: Activity) {
fun
chuangshenVedioAdSuccess
()
fun
chuangshenVedioAdSuccess
()
}
}
companion
object
{
private
var
_inst
:
ChuangshenVedioAdManager
?
=
null
fun
getInstance
(
activity
:
Activity
):
ChuangshenVedioAdManager
?
{
return
if
(
_inst
!=
null
)
{
_inst
}
else
{
_inst
=
ChuangshenVedioAdManager
(
activity
)
_inst
}
}
}
init
{
init
(
activity
)
}
fun
readyGo
(
clazz
:
Class
<
*
>?,
bundle
:
Bundle
)
{
fun
readyGo
(
clazz
:
Class
<
*
>?,
bundle
:
Bundle
)
{
val
intent
=
Intent
(
activity
,
clazz
)
val
intent
=
Intent
(
activity
,
clazz
)
intent
.
putExtras
(
bundle
)
intent
.
putExtras
(
bundle
)
...
...
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/CsVedioPresenter.kt
View file @
8f85e410
...
@@ -43,7 +43,7 @@ class CsVedioPresenter : BasePresenter<CsVedioView>() {
...
@@ -43,7 +43,7 @@ class CsVedioPresenter : BasePresenter<CsVedioView>() {
/**
/**
* 下载接口
* 下载接口
*/
*/
fun
reportDownloadTask
(
tryCarrier
:
String
?,
vo
:
java
.
util
.
HashMap
<
String
?,
Any
?>?
)
{
fun
reportDownloadTask
(
tryCarrier
:
String
?,
vo
:
HashMap
<
String
,
Any
>
)
{
val
observable
:
Observable
<
BaseResponse
<
Any
>>
val
observable
:
Observable
<
BaseResponse
<
Any
>>
observable
=
if
(
TextUtils
.
equals
(
tryCarrier
,
Constant
.
CARRIER_DAILY_DOWNLOAD
)
||
TextUtils
.
equals
(
tryCarrier
,
Constant
.
CARRIER_DAILY_VIDEO
))
{
observable
=
if
(
TextUtils
.
equals
(
tryCarrier
,
Constant
.
CARRIER_DAILY_DOWNLOAD
)
||
TextUtils
.
equals
(
tryCarrier
,
Constant
.
CARRIER_DAILY_VIDEO
))
{
// 每日任务
// 每日任务
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/AwardActivity.java
View file @
8f85e410
...
@@ -452,7 +452,7 @@ public class AwardActivity extends BaseActivity implements AwardView {
...
@@ -452,7 +452,7 @@ public class AwardActivity extends BaseActivity implements AwardView {
* @param adType
* @param adType
*/
*/
private
void
vedioAdingSuccess
(
String
adType
)
{
private
void
vedioAdingSuccess
(
String
adType
)
{
if
(
TextUtils
.
equals
(
adType
,
Constant
.
LY
_VEDIO_AD
)
||
TextUtils
.
equals
(
adType
,
Constant
.
HYTECH_VEDIO_AD
))
{
if
(
TextUtils
.
equals
(
adType
,
Constant
.
CHUANGSHEN
_VEDIO_AD
)
||
TextUtils
.
equals
(
adType
,
Constant
.
HYTECH_VEDIO_AD
))
{
if
(!
isFinishing
())
{
if
(!
isFinishing
())
{
finish
();
finish
();
}
}
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/CsVedioActivity.kt
View file @
8f85e410
...
@@ -3,6 +3,7 @@ package com.mints.highgold.ui.activitys
...
@@ -3,6 +3,7 @@ package com.mints.highgold.ui.activitys
import
android.os.Bundle
import
android.os.Bundle
import
com.mints.highgold.R
import
com.mints.highgold.R
import
com.mints.highgold.common.Constant
import
com.mints.highgold.common.Constant
import
com.mints.highgold.manager.TrackManager
import
com.mints.highgold.mvp.presenters.CsVedioPresenter
import
com.mints.highgold.mvp.presenters.CsVedioPresenter
import
com.mints.highgold.mvp.views.CsVedioView
import
com.mints.highgold.mvp.views.CsVedioView
import
com.mints.highgold.ui.activitys.base.BaseActivity
import
com.mints.highgold.ui.activitys.base.BaseActivity
...
@@ -10,6 +11,7 @@ import com.mints.highgold.utils.LogUtil
...
@@ -10,6 +11,7 @@ import com.mints.highgold.utils.LogUtil
import
com.toukeads.ads.annotation.AdRequestType
import
com.toukeads.ads.annotation.AdRequestType
import
com.toukeads.ads.listener.out.VideoCallback
import
com.toukeads.ads.listener.out.VideoCallback
import
kotlinx.android.synthetic.main.activity_cs_vedio.*
import
kotlinx.android.synthetic.main.activity_cs_vedio.*
import
java.util.*
/**
/**
* 描述:创神视频
* 描述:创神视频
...
@@ -29,34 +31,129 @@ class CsVedioActivity : BaseActivity()
...
@@ -29,34 +31,129 @@ class CsVedioActivity : BaseActivity()
private
var
tryCarrier
:
String
?
=
null
private
var
tryCarrier
:
String
?
=
null
private
var
extraId
:
String
?
=
null
private
var
extraId
:
String
?
=
null
private
var
isClickScreen
:
Boolean
=
true
private
var
isLoadError
:
Boolean
=
false
//视频加载异常
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
activity_cs_vedio
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
activity_cs_vedio
override
fun
isApplyKitKatTranslucency
()
=
false
override
fun
isApplyKitKatTranslucency
()
=
false
override
fun
getBundleExtras
(
extras
:
Bundle
?)
{
override
fun
getBundleExtras
(
extras
:
Bundle
?)
{
vedioCoin
=
extras
!!
.
getString
(
Constant
.
TRY_VEDIO_COIN
)
// vedioCoin = extras!!.getString(Constant.TRY_VEDIO_COIN)
vedioDownloadCoin
=
extras
.
getString
(
Constant
.
TRY_TASK_H5DOWNLOADCOIN
)
// vedioDownloadCoin = extras.getString(Constant.TRY_TASK_H5DOWNLOADCOIN)
tryCarrier
=
extras
.
getString
(
Constant
.
TRY_CARRIER
)
// tryCarrier = extras.getString(Constant.TRY_CARRIER)
extraId
=
extras
.
getString
(
Constant
.
MAIN_EXTRA_ID
)
// extraId = extras.getString(Constant.MAIN_EXTRA_ID)
extras
?.
let
{
vedioCoin
=
it
.
getString
(
Constant
.
TRY_VEDIO_COIN
)
vedioDownloadCoin
=
it
.
getString
(
Constant
.
TRY_TASK_H5DOWNLOADCOIN
)
tryCarrier
=
it
.
getString
(
Constant
.
TRY_CARRIER
)
extraId
=
it
.
getString
(
Constant
.
MAIN_EXTRA_ID
)
LogUtil
.
d
(
TAG
,
"vedioCoin=${vedioCoin} vedioDownloadCoin=${vedioDownloadCoin} tryCarrier=${tryCarrier} extraId=${extraId} "
)
LogUtil
.
d
(
TAG
,
"vedioCoin=${vedioCoin} vedioDownloadCoin=${vedioDownloadCoin} tryCarrier=${tryCarrier} extraId=${extraId} "
)
}
}
}
override
fun
initViewsAndEvents
()
{
override
fun
initViewsAndEvents
()
{
csVedioPresenter
=
CsVedioPresenter
()
csVedioPresenter
=
CsVedioPresenter
()
csVedioPresenter
?.
attachView
(
this
)
csVedioPresenter
?.
attachView
(
this
)
loadVedio
();
}
override
fun
onResume
()
{
super
.
onResume
()
csAdVideoView
?.
videoRePlay
()
}
override
fun
onPause
()
{
super
.
onPause
()
csAdVideoView
?.
videoPause
()
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
csVedioPresenter
?.
detachView
()
}
override
fun
onBackPressed
()
{
if
(
isLoadError
)
super
.
onBackPressed
()
}
override
fun
reportDownloadTask
()
{
}
private
fun
loadVedio
()
{
csAdVideoView
?.
setAdListener
(
object
:
VideoCallback
()
{
csAdVideoView
?.
setAdListener
(
object
:
VideoCallback
()
{
override
fun
onAdShow
()
{
override
fun
onAdShow
()
{
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CHUANGSHEN
,
Constant
.
EVENT_TYPE_ZERO
,
""
,
""
)
}
}
override
fun
onAdClosed
()
{
override
fun
onAdClosed
()
{
if
(
isLoadError
)
{
finish
()
return
}
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CHUANGSHEN
,
Constant
.
EVENT_TYPE_THREE
,
""
,
""
)
val
bundle
=
Bundle
()
if
(
isClickScreen
)
{
//无下载奖励
cmtVedioParam
()
when
(
tryCarrier
)
{
Constant
.
CARRIER_HOMEWATER_BUBBLE
,
Constant
.
CARRIER_REDENVELOPE_DOUBLE
,
Constant
.
CARRIER_REDENVELOPE
,
Constant
.
CARRIER_ONLINE_INCOME_DOUBLE
->
{
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
Integer
.
valueOf
(
vedioCoin
!!
))
bundle
.
putString
(
Constant
.
MAIN_CARRIET_TURN
,
Constant
.
CARRIER_VERSUS_HEALTH
)
}
else
->
{
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
Integer
.
valueOf
(
vedioCoin
!!
))
bundle
.
putInt
(
Constant
.
MAIN_EXTRA_COIN
,
Integer
.
valueOf
(
vedioDownloadCoin
!!
))
bundle
.
putString
(
Constant
.
MAIN_CARRIET_TURN
,
Constant
.
CARRIER_DAILY_DOWNLOAD
)
}
}
}
else
{
//有下载奖励
cmtVedioDownloadParam
()
when
(
tryCarrier
)
{
Constant
.
CARRIER_HOMEWATER_BUBBLE
,
Constant
.
CARRIER_REDENVELOPE_DOUBLE
,
Constant
.
CARRIER_REDENVELOPE
,
Constant
.
CARRIER_ONLINE_INCOME_DOUBLE
->
{
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
Integer
.
valueOf
(
vedioCoin
!!
))
bundle
.
putString
(
Constant
.
MAIN_CARRIET_TURN
,
Constant
.
CARRIER_VERSUS_HEALTH
)
}
else
->
{
val
cash
=
Integer
.
valueOf
(
vedioCoin
!!
)
+
Integer
.
valueOf
(
vedioDownloadCoin
!!
)
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
cash
)
bundle
.
putString
(
Constant
.
MAIN_CARRIET_TURN
,
Constant
.
CARRIER_DAILY_DOWNLOAD_DOWNLOAD
)
}
}
}
bundle
.
putInt
(
Constant
.
MAIN_CUR_FLAG
,
Constant
.
MAIN_CUR_ONE
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
finish
()
}
}
override
fun
onAdClicked
()
{
override
fun
onAdClicked
()
{
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CHUANGSHEN
,
Constant
.
EVENT_TYPE_TWO
,
""
,
""
)
if
(
isClickScreen
)
{
// 防止重复
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CHUANGSHEN
,
Constant
.
EVENT_TYPE_FOUR
,
""
,
""
)
isClickScreen
=
false
}
}
}
override
fun
onAdFailed
(
msg
:
String
)
{
override
fun
onAdFailed
(
msg
:
String
)
{
isLoadError
=
true
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_CHUANGSHEN
,
Constant
.
EVENT_TYPE_ONE
,
"999999"
,
msg
)
}
}
override
fun
onAdLoadOver
()
{
override
fun
onAdLoadOver
()
{
...
@@ -74,25 +171,42 @@ class CsVedioActivity : BaseActivity()
...
@@ -74,25 +171,42 @@ class CsVedioActivity : BaseActivity()
csAdVideoView
?.
loadAd
(
AdRequestType
.
VIDEO_AD_CPM
)
csAdVideoView
?.
loadAd
(
AdRequestType
.
VIDEO_AD_CPM
)
}
}
override
fun
onResume
()
{
/**
super
.
onResume
()
* 提交视频参数
csAdVideoView
?.
videoRePlay
()
*/
private
fun
cmtVedioParam
()
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"adsource"
]
=
Constant
.
AD_SOURCE_HYTECH
vo
[
"carrierType"
]
=
tryCarrier
!!
vo
[
"adtype"
]
=
Constant
.
ADTYPE_VEDIO
vo
[
"status"
]
=
Constant
.
TASK_STATUS
when
(
tryCarrier
)
{
Constant
.
CARRIER_HOMEWATER_BUBBLE
->
vo
[
"waterCoin"
]
=
vedioCoin
!!
Constant
.
CARRIER_REDENVELOPE_DOUBLE
,
Constant
.
CARRIER_REDENVELOPE
->
vo
[
"numKey"
]
=
extraId
!!
Constant
.
CARRIER_ONLINE_INCOME_DOUBLE
->
vo
[
"online_income"
]
=
vedioCoin
!!
}
}
csVedioPresenter
?.
reportAddCoinMsg
(
tryCarrier
!!
,
vo
)
override
fun
onPause
()
{
super
.
onPause
()
csAdVideoView
?.
videoPause
()
}
}
override
fun
onDestroy
()
{
/**
super
.
onDestroy
()
* 提交下载参数
csVedioPresenter
?.
detachView
()
*/
}
private
fun
cmtVedioDownloadParam
()
{
when
(
tryCarrier
)
{
Constant
.
CARRIER_HOMEWATER_BUBBLE
,
Constant
.
CARRIER_REDENVELOPE_DOUBLE
,
Constant
.
CARRIER_REDENVELOPE
,
Constant
.
CARRIER_ONLINE_INCOME_DOUBLE
->
{
override
fun
onBackPressed
()
{
// super.onBackPressed()
}
}
else
->
{
override
fun
reportDownloadTask
()
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"status"
]
=
Constant
.
TASK_STATUS
vo
[
"adtype"
]
=
Constant
.
ADTYPE_DOWNLOAD
vo
[
"adsource"
]
=
Constant
.
AD_SOURCE_HYTECH
vo
[
"carrierType"
]
=
tryCarrier
!!
csVedioPresenter
?.
reportDownloadTask
(
tryCarrier
,
vo
)
}
}
}
}
}
}
highgold/app/src/main/java/com/mints/highgold/ui/fragment/MainFragment.java
View file @
8f85e410
...
@@ -359,8 +359,8 @@ public class MainFragment extends BaseFragment
...
@@ -359,8 +359,8 @@ public class MainFragment extends BaseFragment
Bundle
bundle
;
Bundle
bundle
;
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
case
R
.
id
.
tv_fragment_main_whatgold
:
// 如何赚金币
case
R
.
id
.
tv_fragment_main_whatgold
:
// 如何赚金币
readyGo
(
WhatGoldActivity
.
class
);
//
readyGo(WhatGoldActivity.class);
//
ChuangshenVedioAdManager.Companion.getInstance(getActivity()).loadChuangshenAd(10,20,"main","abc");
ChuangshenVedioAdManager
.
Companion
.
getInstance
(
getActivity
()).
loadChuangshenAd
(
10
,
20
,
"main"
,
"abc"
);
break
;
break
;
case
R
.
id
.
rl_fragment_main_redbox
:
// 红包
case
R
.
id
.
rl_fragment_main_redbox
:
// 红包
readyGo
(
RedboxActivity
.
class
);
readyGo
(
RedboxActivity
.
class
);
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/YilanVedioFragment.java
View file @
8f85e410
...
@@ -164,6 +164,7 @@ public class YilanVedioFragment extends BaseFragment
...
@@ -164,6 +164,7 @@ public class YilanVedioFragment extends BaseFragment
curAdVedioType
=
com
.
mints
.
highgold
.
common
.
Constant
.
CSJ_VEDIO_AD
;
curAdVedioType
=
com
.
mints
.
highgold
.
common
.
Constant
.
CSJ_VEDIO_AD
;
ylCsjAdEntity
=
entity
;
ylCsjAdEntity
=
entity
;
LogUtil
.
d
(
TAG
,
"onVideoLoad entity:"
+
entity
);
}
}
/**
/**
...
...
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