- If first run, User sees splash screen for 2 seconds and redirected to Login Screen.
- If already authenticated before, and user navigated back, Splash screen appears and user redirected to Order Fragment because auth is valid.
- User types their user and password, presses login, loading bar shows.
- If User credentials are true, then user sees all available orders list.
- User sees order list as sorted desc at first runtime.
- User clicks sort button on the appbar then order list is sorted asc and list goes to the top.
- User clicks logout button then app removes auth token and screen redirected to Login screen.
- User clicks an item on the list and the Details fragment shows relevant detail order data.
- User presses back button on the details fragment and app shows Order Fragment.
- Hilt : Dependency Injection.
- Retrofit : get results from the API : http client.
- Moshi : Json library that parse JSON into Kotlin classes. injected into retrofit.
- Okhttp: AuthInterceptor http client , injected in the retrofit.
- Model View ViewModel (MVVM)
username : 106901
password : Mobile2022!Dev