alibaba/ARouter ? reverse-engineered prompt

Reverse engineered prompt

Build me an Android app that shows how to use ARouter for page navigation and componentized modules.

I want a simple demo with a few screens in different modules, where I can jump between them by route path, pass a few different types of parameters, and open pages from a URL style link too. Please include one example of a service or shared component that can be called across modules, and one interceptor example for something like login or a simple check before navigation. It should also show the basic setup in the app, including initializing routing early and adding the needed annotations so the routes are discovered automatically.

If it makes sense, add a small sample of how this would work in both Java and Kotlin, and make the project easy to run and understand. Look up current docs online if you need to, but keep it simple and focused on a working demo.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab