alibaba / ARouter

💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)
Apache License 2.0
14.42k stars 2.59k forks source link

It's outrageous, why is it strongly related to the calling order of the code: #1041

Open quibbler01 opened 1 year ago

quibbler01 commented 1 year ago

It's outrageous, why is it strongly related to the calling order of the code:

first init initialization, then open the log, there is no way to jump.

         ARouter.init(this)

        if (BuildConfig.DEBUG) {
            ARouter.debuggable()
            ARouter.openDebug()
            ARouter.openLog()
        }

but this is ok:

        if (BuildConfig.DEBUG) {
            ARouter.debuggable()
            ARouter.openDebug()
            ARouter.openLog()
        }

        ARouter.init(this)