Routing framework for splitting Android apps into decoupled modules
open sourceApache-2.0free
ARouter is Alibaba's Apache-2.0 routing framework that helps Android apps move to a componentized, multi-module structure. It parses standard URLs to open pages and injects their parameters, routes between modules without them depending on each other, supports interceptors (for login checks or analytics), dependency injection, fragments and Kotlin, and registers activities, interceptors and services automatically through annotation processing. It can generate route documentation and has an Android Studio plugin for jumping to a route's target class. The current development line uses AndroidX; apps still on the old Support Library stay on 1.x releases.
Problems it solves
- navigate between modules in my Android app without them depending on each other
- open an Android screen from a deep link URL and pass its parameters
- check login before opening certain screens in my Android app
Features
- URL-based page navigation with automatic parameter injection
- routing between decoupled modules
- interceptors on navigation
- dependency injection and cross-module services
- route documentation and an IDE plugin
Limitations
- The current development line needs AndroidX; apps on the legacy Support Library must stay on ARouter 1.x.1
