Clean Architecture for Android
eBook - ePub

Clean Architecture for Android

Creating scalable, maintainable, and testable native Android apps - 2nd Edition

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Clean Architecture for Android

Creating scalable, maintainable, and testable native Android apps - 2nd Edition

About this book

Description
Clean architecture has been gaining traction in recent years as a way of developing scalable, testable, and maintainable Android applications. It works as well for single developers as it does for larger teams of many developers.

This book will take you through the ideas behind Clean Architecture. This new edition significantly expands the original content with detailed layer-by-layer implementation chapters, modern Jetpack Compose examples throughout, and triple the testing coverage, including the robot pattern and dedicated server mocking techniques. Lastly, it will provide you with real-life examples of applying the different principles of Clean Architecture and highlighting the benefits of adopting them.

By the end of this book, you should be comfortable developing Clean Architecture-based Android apps. Given a feature requirement, you would be able to break the implementation down into the different components required. Your code will benefit from high test coverage. It will be easy to modify and extend your app without needing to periodically rewrite it completely. Changes to the UI, API contracts or persistence solution will become easy and safe to implement.

What you will learn
? How to develop a Clean Architecture Android app from the ground up.
? The steps for migrating an existing app to Clean Architecture.
? How to approach introducing a new feature.
? How to unit test the different classes of Clean Architecture apps.
? The rules for writing end-to-end tests to verify your app behavior.

Who this book is for
This book is designed to help mobile developers in general and Android developers in particular. It caters to all skill levels. Knowledge of Kotlin would help the reader understand the provided examples, but is not necessary.

Table of Contents
1. Introduction
2. Clean Architecture Principles
3. The Domain Layer
4. The Presentation Layer
5. The UI Layer
6. The DataSource and Data Layers
7. Dependency Injection and Navigation
8. Unit Testing
9. End-to-end Testing
10. Mocking the Server
11. Failures and Exceptions
12. Implementing a New Feature
13. Dealing with Changes
14. Migrating an Existing Project
15. Other Bits and Bobs
Appendix XML and Views

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Clean Architecture for Android by Eran Boudjnah in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Mobile Devices. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. Dedication
  5. Forewords
  6. About the Author
  7. Acknowledgements
  8. Preface
  9. Convention
  10. Table of Contents
  11. 1. Introduction
  12. 2. Clean Architecture Principles
  13. 3. The Domain Layer
  14. 4. The Presentation Layer
  15. 5. The UI Layer
  16. 6. The DataSource and Data Layers
  17. 7. Dependency Injection and Navigation
  18. 8. Unit Testing
  19. 9. End-to-end Testing
  20. 10. Mocking the Server
  21. 11. Failures and Exceptions
  22. 12. Implementing a New Feature
  23. 13. Dealing with Changes
  24. 14. Migrating an Existing Project
  25. 15. Other Bits and Bobs
  26. Appendix XML and Views
  27. Index