Commit d5433e67 authored by mengcuiguang's avatar mengcuiguang

一览升级

parent 259f4d8a
...@@ -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
} }
......
...@@ -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 {
......
...@@ -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() {
......
...@@ -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)
} }
......
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