Commit d1d60c39 authored by mengcuiguang's avatar mengcuiguang

更换新sdk包

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