Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modularizing and Refactoring Android App with Clean Architecture

Modularizing and Refactoring Android App with Clean Architecture

8766b19fe1c1f8475e233c910ed6440f?s=128

kobito-kaba

July 03, 2019
Tweet

Transcript

  1. None
  2. None
  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. https://youtu.be/GesiS2bkTKA

  10. None
  11. None
  12. None
  13. app bidding search product sell

  14. APP BID SEARCH PRODUCT SELL

  15. APP BID SEARCH PRODUCT SELL

  16. APP BID SEARCH PRODUCT SELL

  17. APP BID SEARCH PRODUCT SELL

  18. Modularize

  19. None
  20. ┐('~`;)┌

  21. None
  22. None
  23. Inline Super Class

  24. None
  25. None
  26. None
  27. None
  28. None
  29. None
  30. Inline Method

  31. Inline Method

  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. None
  39. None
  40. Why we use Clean Architecture? Why/How/What Clean Architecture? Ref:https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html

  41. Why CleanArch.? • Reduce & prevent spaghetti codes • Increase

    readable and testable codes • Clear scope of influence
  42. How does design CleanArch? • Separation of stable & flexible

    codes. • Make Flexible code dependent only on more stable code • Make the direction of dependence one direction
  43. Over view(※): CleanArchitecture ※:Some interfaces, or classes are omitted

  44. Presentation Layer • View: Activity, Fragment,.. • Presenter: Express view

    logic, gateway for domain
  45. Data Layer • DataStore: Gateway for DB/API, and generate Entity

  46. Domain Layer • Entity: Express business data • Usecase: Express

    business logic, gateway for presentaion • Repository: Interface between domain and data layer
  47. Let’s see Sample Product • Sample Product: Click button ->

    change TextView as several Lang https://github.com/kiuchikeisuke/Android-Studio-CleanArchitecture-template-forKotlin/tree/demo_for_droidcon
  48. None
  49. None
  50. None
  51. None
  52. None
  53. None
  54. None
  55. None
  56. None
  57. None
  58. None
  59. Thank you