Commit eb2ba28f authored by shiyl's avatar shiyl

新建subModel,并在baseMvvmActivity中设置竖屏

parent 4f089655
[submodule "Components/xbirdbusiness/src/main/assets/www"]
path = Components/xbirdbusiness/src/main/assets/www
url = https://git.yidian-inc.com:8021/bp/shenghuoquanb-app-hybrid-release.git
branch = master
package com.yidian.common.mvvm
import android.annotation.SuppressLint
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
......@@ -51,8 +53,10 @@ abstract class BaseMvvmActivity<V : ViewDataBinding, VM : BaseViewModel> : AppCo
/**
* 生命周期函数
*/
@SuppressLint("SourceLockedOrientationActivity")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
this.binding.executePendingBindings()
this.initStatusBar()
this.initView()
......
......@@ -21,7 +21,6 @@ class CommodityApplication : YdBaseApplication() {
override fun onCreate() {
super.onCreate()
if (ProcessUtil.isMainProcess(this)) {
Timber.tag("注册").e("开始注册")
registerXPage()
initService()
}
......@@ -41,7 +40,6 @@ class CommodityApplication : YdBaseApplication() {
}
})
XPageManager.registeredNode(node)
Timber.e("注册XPage ${it.key}")
}
}
......
www @ 8f51a50c
Subproject commit 8f51a50cedd7bd52949a452323a2df8ae642093f
......@@ -9,13 +9,15 @@ import com.yidian.xpage.node.XPageHandler
import com.yidian.xpage.node.XPageNode
import com.yidian.xpage.node.XPageNodePageType
import com.yidian.yac.core.core.YacModuleSpec
import timber.log.Timber
@YacModuleSpec
class CommodityApplication : YdBaseApplication() {
class XBirdBusinessApplication : YdBaseApplication() {
override fun onCreate() {
super.onCreate()
if (ProcessUtil.isMainProcess(this)) {
Timber.tag("注册").e("开始注册")
registerXPage()
initService()
}
......@@ -32,9 +34,11 @@ class CommodityApplication : YdBaseApplication() {
intent.setClass(context, it.value)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
context.startActivity(intent)
Timber.e("startActivity 开启WebView ")
}
})
XPageManager.registeredNode(node)
Timber.e("注册XPage ${it.key}")
}
}
......
......@@ -111,6 +111,7 @@ dependencies {
if (!rootProject.ext.android.isApplication) {
implementation project(":Components:newscontent")
implementation project(":Components:commodity")
implementation project(":Components:xbirdbusiness")
implementation project(":Components:userinfo")
}
implementation rootProject.ext.dependencies.publicImplementation
......
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