Commit 41c816ff authored by mengcuiguang's avatar mengcuiguang

1.0.9发版

parent 518d618c
...@@ -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'
......
...@@ -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
} }
......
...@@ -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;
} }
......
...@@ -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() {
csVedioPresenter = CsVedioPresenter() if(!::csVedioPresenter.isInitialized){
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)
} }
......
...@@ -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

18.5 KB | W: | H:

highgold/app/src/main/res/drawable/bg_banner.gif

10.9 KB | W: | H:

highgold/app/src/main/res/drawable/bg_banner.gif
highgold/app/src/main/res/drawable/bg_banner.gif
highgold/app/src/main/res/drawable/bg_banner.gif
highgold/app/src/main/res/drawable/bg_banner.gif
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment