package com.remax.visualnovel.app.initializer.impl

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter
import com.remax.visualnovel.BuildConfig
import com.remax.visualnovel.app.initializer.AppInitializers
import com.remax.visualnovel.app.initializer.di.AppInitializerPriority

/**
 * Created by HJW on 2023/5/11
 * 路由相关初始化
 */
class RouterInitializer(val application: Application) : AppInitializers {

    override fun init() {
        if (BuildConfig.DEBUG) {
            ARouter.openLog()
            ARouter.openDebug()
        }
        ARouter.init(application)
    }

    override fun widget(): Int {
        return AppInitializerPriority.SERIES_3.priority
    }
}