HubLens › Trending › meituan/WMRouter
meituan

WMRouter

MobileAndroidRouterComponentizationSPI
View on GitHub
2,365
+340

// summary

WMRouter is an Android routing framework based on component-based design, characterized by its flexibility and ease of use. The framework primarily provides two core functions: URI dispatching and ServiceLoader, aiming to solve problems such as multi-project communication, page navigation, and module decoupling. It supports automatic annotation configuration, an interceptor mechanism, and comprehensive debugging features, making it suitable for scenarios like Native and H5 hybrid development, complex navigation logic, and component-based development.

// use cases

01
Unify the management of navigation logic between Native and H5 pages, supporting dynamic modification of navigation parameters via interceptors.
02
Achieve decoupling and communication between App modules, providing functionality similar to dependency injection through the ServiceLoader module.
03
Handle complex page navigation logic, such as executing prerequisite business checks like login or location services before navigation.