feat: 光环助手跳转链接规则优化(路由框架切换至 theRouter) https://jira.shanqu.cc/browse/GHZSCY-5889
This commit is contained in:
@ -3,7 +3,7 @@ package com.gh.gamecenter.va
|
||||
import android.app.Activity
|
||||
import android.content.ContentValues
|
||||
import android.content.Context
|
||||
import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.therouter.TheRouter
|
||||
import com.gh.gamecenter.common.constant.RouteConsts
|
||||
import com.gh.gamecenter.va.provider.IVa
|
||||
import com.gh.gamecenter.va.remote.InstalledAppInfo
|
||||
@ -19,7 +19,7 @@ class VCore : IVa {
|
||||
|
||||
fun getInstance(): IVa {
|
||||
return instance ?: synchronized(this) {
|
||||
(ARouter.getInstance().build(RouteConsts.provider.vaCore).navigation() as? IVa
|
||||
(TheRouter.get(IVa::class.java)
|
||||
?: VCore()).also { instance = it }
|
||||
}
|
||||
}
|
||||
@ -93,7 +93,4 @@ class VCore : IVa {
|
||||
override fun isZipFile(file: File): Boolean = false
|
||||
override fun getDefaultPluginUrl(): String = ""
|
||||
|
||||
override fun init(context: Context?) {
|
||||
}
|
||||
|
||||
}
|
||||
@ -3,13 +3,13 @@ package com.gh.gamecenter.va.provider
|
||||
import android.app.Activity
|
||||
import android.content.ContentValues
|
||||
import android.content.Context
|
||||
import com.alibaba.android.arouter.facade.template.IProvider
|
||||
|
||||
import com.gh.gamecenter.va.remote.InstalledAppInfo
|
||||
import com.gh.gamecenter.va.remote.VaInstallResult
|
||||
import com.lg.vspace.archive.common.ui.interfaces.ArchiveProgressPageListener
|
||||
import java.io.File
|
||||
|
||||
interface IVa : IProvider {
|
||||
interface IVa {
|
||||
|
||||
fun isFakeVa(): Boolean = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user