- Using Android Studio (Latest Version)
- Select yes for building gradle if popup appears
- Click the play button on the top tool bar
- This should build the app and run it in a virtual device
-
Initial used xml files to render screens, decided to restart using jetpack compose for the more modern approach (significantly less boiler plate too)
-
Read data in using json file reader, then parse to data classes declared in
models
- Particularly happy about how the sealed classes parsed and using
when
statements to handle the polymorphic types in an exhaustive type check fashion
- Particularly happy about how the sealed classes parsed and using
-
I didn't focus on the UI much, I added some placeholders and basic navigation - you can navigate back with the UI back button
- Added clickable stories, links, asset image loading, url image loading, and scrolling
-
The Json file reader can be swapped out easily for an API call, you would just need to implement a fetcher in the Repository class
-
Testing - I've laid out many scenario's for testing in the testing folder
- But I've left out the implementation, mainly due to time, and that I've had some issues with the mocking functionality for Kotlin/Android
-
To inspect the code, I suggest stepping through from the MainActivity as you can find everything from there