Commit d1d60c39 authored by mengcuiguang's avatar mengcuiguang

更换新sdk包

parent bed72fd5
...@@ -230,6 +230,7 @@ dependencies { ...@@ -230,6 +230,7 @@ dependencies {
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
......
...@@ -8,11 +8,11 @@ import com.ireader.ireadersdk.IreaderApi ...@@ -8,11 +8,11 @@ import com.ireader.ireadersdk.IreaderApi
* 作者:孟崔广 * 作者:孟崔广
*/ */
object ZhangyueManager { object ZhangyueManager {
const val APPID = "10054" const val APPID = "10054"
fun onCreateIreader(application: Application){ fun onCreateIreader(application: Application){
IreaderApi.onCreate(application, APPID) IreaderApi.onCreate(application, APPID)
} }
fun attachBaseContextIreader(application: Application){ fun attachBaseContextIreader(application: Application){
......
...@@ -50,7 +50,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener { ...@@ -50,7 +50,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
vedioAdingManager = VedioAdingManager.getInstance(this) vedioAdingManager = VedioAdingManager.getInstance(this)
initExpress() // initExpress()
initDataView() initDataView()
initListener() initListener()
} }
......
...@@ -90,8 +90,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList ...@@ -90,8 +90,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
super.onResume() super.onResume()
if (AppConfig.fragmentClickFlag === Constant.FRAGMENT_CLICK_MAIN) { if (AppConfig.fragmentClickFlag === Constant.FRAGMENT_CLICK_MAIN) {
LogUtil.d("MainFragment onResume")
// 打开激活 // 打开激活
uploadDeviceInfo() uploadDeviceInfo()
...@@ -116,7 +114,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList ...@@ -116,7 +114,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
override fun onPause() { override fun onPause() {
super.onPause() super.onPause()
LogUtil.d("MainFragment onPause")
littleVideoFragment?.onPause() littleVideoFragment?.onPause()
pauseDownloadTime() pauseDownloadTime()
...@@ -143,12 +140,12 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList ...@@ -143,12 +140,12 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
} }
// 离线收益 // 离线收益
if (data.offlineBean.offlineIncome > 0) { // if (data.offlineBean.offlineIncome > 0) {
val bundle = Bundle() // val bundle = Bundle()
bundle.putInt(Constant.MAIN_CUR_COIN, data.offlineBean.offlineIncome) // bundle.putInt(Constant.MAIN_CUR_COIN, data.offlineBean.offlineIncome)
bundle.putString(Constant.MAIN_CARRIER_TYPE, Constant.CARRIER_OFFLINE_DOUBLE) // bundle.putString(Constant.MAIN_CARRIER_TYPE, Constant.CARRIER_OFFLINE_DOUBLE)
readyGo(AwardActivity::class.java, bundle) // readyGo(AwardActivity::class.java, bundle)
} // }
// 调用金币视频信息接口 // 调用金币视频信息接口
homePresenter.getHomeVedioMsg() homePresenter.getHomeVedioMsg()
...@@ -168,7 +165,7 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList ...@@ -168,7 +165,7 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
smallRewardCoin = data.smallRewardCoin smallRewardCoin = data.smallRewardCoin
bigRewardCoin = data.bigRewardCoin bigRewardCoin = data.bigRewardCoin
ivMainBox.visibility = if (bigRewardCoin > 0) View.VISIBLE else View.GONE // ivMainBox.visibility = if (bigRewardCoin > 0) View.VISIBLE else View.GONE
if (data.isToCreateReward) { if (data.isToCreateReward) {
// 防止界面切换 重置倒计时 // 防止界面切换 重置倒计时
......
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