package com.gh.common.provider

import android.content.Context
import android.os.Handler
import com.alibaba.android.arouter.facade.annotation.Route
import com.gh.gamecenter.common.constant.RouteConsts
import com.gh.gamecenter.core.provider.IUpdateManagerProvider
import com.gh.gamecenter.manager.UpdateManager

@Route(path = RouteConsts.provider.updateManager, name = "UpdateManager暴露服务")
class UpdateManagerProviderImpl: IUpdateManagerProvider {
    override fun checkUpdate(context: Context, isAutoCheck: Boolean, handler: Handler) {
        UpdateManager.getInstance(context).checkUpdate(isAutoCheck, handler)
    }

    override fun init(context: Context?) {
        // Do nothing
    }
}