Anybody looking for a simple app that does the following :
- When the App is launched for the first time, it needs to you to sign up by providing a username and password.
- After that, the app asks you to login by verifying the provided username and password.
The code for the app can be found at https://github.com/djain2405/SignUp-Login in both Java and Kotlin. The app is written using the Android Architecture components in the following pattern :
LifeCycleOwner(Activity) -> ViewModel -> Repository -> Database using Room Library
These are the benefits I found using this architecture for the app :
- Eliminating problems due to configuration Change
- Avoiding writing tons of boilerplate code
- Avoiding memory leaks
- Data persistence
- Scalable. Separation of concerns allows changes to be made easily in any component without affecting the whole app.