[opt3.0]调整第一阶段初始化的顺序

This commit is contained in:
chenfufeng
2022-12-21 18:09:56 +08:00
parent ae7e608ce0
commit 733c4d3f3d
5 changed files with 8 additions and 11 deletions

View File

@@ -8,8 +8,6 @@ import com.mogo.test.crashreport.CrashReportConstants
class APMStartup : AndroidStartup<Boolean?>() {
override fun create(context: Context): Boolean? {
// bugly
ARouter.getInstance().build(UpgradeReportConstants.PATH).navigation()
// apm
ARouter.getInstance().build(CrashReportConstants.PATH).navigation()
return true
@@ -24,6 +22,6 @@ class APMStartup : AndroidStartup<Boolean?>() {
}
override fun dependenciesByName(): List<String> {
return listOf("com.mogo.launcher.stageone.ARouterStartUp")
return listOf("com.mogo.launcher.stageone.ARouterStartUp", "com.mogo.launcher.stageone.ConfigStartUp")
}
}

View File

@@ -70,8 +70,7 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
override fun dependenciesByName(): List<String> {
return listOf(
"com.mogo.launcher.stageone.APMStartup",
"com.mogo.launcher.stageone.ConfigStartUp"
"com.mogo.launcher.stageone.APMStartup"
)
}