The first time you run the app , you´ll see a loader giving you feedback that an api call has been made and we are waiting the answer , then you'll see the a populated posts list:
-
tap on the start to add a post to your favorites and you'll see that post on top of the list
-
tap on the trash icon to delete that post
-
if you have some favorites posts then you click on "DELETE ALL POSTS" button , you'll see that only the favorite ones remain in the list
-
if you tap on any post you can acces to the details fragment
the reload posts from the api button is only visible when you tap on "DELETE ALL POSTS" first
You can only acces to this fragment once you tap on a post, here you could see all releated post details besides a list of comments to that post
In the very bottom of the screen you'll see the "Previous" button to go back to the previous fragment
- Clean Architecture
- MVVM Architecture : through this architecture we can have a reactive screen always listenig to data changes from the ViewModel
- Coroutines: to do the api call on a background thread
- MutableLiveData: to have reactive screens
- Mockk: to create native and easier unit tests