-
Notifications
You must be signed in to change notification settings - Fork 86
1.x升级到2.x注意事项
Haoge edited this page May 8, 2017
·
1 revision
由于此次升级。功能改动较大。也为了后期更方便维护。对部分的api进行了修改。在此说声:Sorry!
下面对从1.x升级到2.x的可能遇到的问题进行总结:
-
拦截器接口变动:
- RouteInterceptor接口所在包名发生变化。现存在于package com.lzh.nonview.router.interceptors
- 原接口方法中的参数ActivityRouteBundleExtras改为RouteBundleExtras.
-
RouteCreator路由规则生成。(若使用编译时注解自动生成路由规则的。可忽略此条)
- 原RouteMap更名为RouteRule.
- 衍生页面路由使用的ActivityRouteRule类与动作路由使用的ActionRouteRule。并分别通过RouteCreator提供的两个接口进行各自定义
-
RouteCallback部分回调方法参数调整。
-
恢复路由操作替换
- 原有的恢复路由替换为使用Router.resume(uri, extras).open(context)进行使用。
-
Router入口类操作逻辑参考路由启动方式