Commit 608fb9d5 authored by shiyl's avatar shiyl

BRoot中新增三方库的初始化功能

parent 931ff79c
package com.yidian.bcommon
package com.yidian.shenghuoquan.broot
import android.content.Context
import com.scwang.smart.refresh.footer.ClassicsFooter
import com.scwang.smart.refresh.header.ClassicsHeader
import com.scwang.smart.refresh.layout.SmartRefreshLayout
import com.scwang.smart.refresh.layout.constant.SpinnerStyle
import com.yidian.bcommon.AppConfig
import com.yidian.bcommon.BuildConfig
import com.yidian.bcommon.utils.UMConfigUtils
import com.yidian.framework.mobile.insight.config.ServerUrlConfig
import com.yidian.framework.mobile.insight.config.XDiamondProvide
......
......@@ -40,7 +40,5 @@ class BRootApplication : YdBaseApplication() {
}
private fun initService() {
// Zap.addService(SelectCategoryService.serviceName, SelectCategoryService())
// Zap.addService(GoodsPublishService.SERVICE_NAME, GoodsPublishService())
}
}
......@@ -16,6 +16,7 @@ import com.yidian.bcommon.services.AppUpgradeService
import com.yidian.bcommon.services.ZapServiceActionConstants
import com.yidian.bcommon.services.ZapServiceNameConstants
import com.yidian.bcommon.webview.PublicWebViewActivity
import com.yidian.shenghuoquan.broot.BaseInitConfig
import com.yidian.shenghuoquan.broot.R
import com.yidian.shenghuoquan.broot.databinding.ActivityFlashBinding
import com.yidian.xpage.XPageManager
......@@ -73,10 +74,8 @@ class FlashActivity : BaseActivity<ActivityFlashBinding>() {
}
}.ship()
} else {
// 未登录 跳转登录
// 此处没有使用XPage打开页面 原因:不能设置flag
// 跳转登录
XPageManager.push(XRouterPathConstants.LOGIN_LIFE_CIRCLE, null)
// startActivity(Intent(this, LoginLifeCircleActivity::class.java))
finish()
// 检查app更新
ZapTicket(AppUpgradeService.SERVICE_NAME).withAction(AppUpgradeService.ACTION_CHECK_APP_UPGRADE).ship()
......
......@@ -485,11 +485,14 @@ class NewsContentApplication : YdBaseApplication() {
}
private fun initService() {
Zap.addService(ZapServiceNameConstants.LifeNumberListServiceName, LifeNumberListService())
// 未使用的服务
Zap.addService(RequestService.serviceName, RequestService())
Zap.addService(CommentService.serviceName, CommentService())
Zap.addService(UniversalService.serviceName, UniversalService())
Zap.addService(UserService.serviceName, UserService())
Zap.addService(ZapServiceNameConstants.LifeNumberListServiceName, LifeNumberListService())
Zap.addService(DeepLinkService.serviceName, DeepLinkService())
Zap.addService(SelectStoreService.serviceName, SelectStoreService())
......
......@@ -15,6 +15,8 @@ import com.yidian.xpage.XPageManager
import com.yidian.yac.core.zap.ZapService
import com.yidian.yac.core.zap.ZapTicket
import org.json.JSONObject
import timber.log.Timber
import kotlin.collections.ArrayList
/**
* 生活号列表服务
......@@ -43,6 +45,7 @@ class LifeNumberListService : ZapService() {
* 请求生活号列表
*/
private fun requestLifeNumberList() {
Timber.tag("测试启动").e("使用服务,请求生活号列表")
ApiService.getLifeAccountList(object : IGetLifeAccountListCallback {
override fun getLifeAccountListSuccess(result: ArrayList<LifeAccountItemBean.Response>?) {
when (result?.size) {
......
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