This repository acts as project resource references to the Clean Android code class. In this class we will take on together a dirty existing project - an app about restaurants and we will learn how to identify which code can be refactored and then finally we will clean the entire project.
This is the Github repository page for all the coding solutions. You can directly download from here the starting point of the project so you can follow with the class videos.
To do so, make sure you have selected the default branch refactor-code-starter
and then select Code and then Download ZIP.
Each coding chapter has a solution branch attached to this repository. Select the corresponding branch for each coding chapter you currently are at. After that, select Code and then Download ZIP. Finally, import the project in Android Studio.
Download the project files for each coding chapter directly from here:
- 5. Importing project and running the app - download here.
- 8. Shortening and splitting methods - download solution here.
- 9. Keep your logic simple with real example - download solution here.
- 11. Use Enum for static content - download solution here.
- 13. Clean your code - download solution here.
- 15. Collection operators: map and filter - download solution here.
- 17. Collection operators: sort and find - download solution here.
- 19. When to check for null and Fail Fast strategy - download solution here.
- 21. Split app's responsibilities - download solution here.
- 24. Structuring packages by feature - download solution here.
Finally, import the project in Android Studio.