Book Image

Xamarin Blueprints

By : Michael Williams
Book Image

Xamarin Blueprints

By: Michael Williams

Overview of this book

Do you want to create powerful, efficient, and independent apps from scratch that will leverage the Xamarin framework and code with C#? Well, look no further; you’ve come to the right place! This is a learn-as-you-build practical guide to building eight full-fledged applications using Xamarin.Forms, Xamarin Android, and Xamarin iOS. Each chapter includes a project, takes you through the process of building applications (such as a gallery Application, a text-to-speech service app, a GPS locator app, and a stock market app), and will show you how to deploy the application’s source code to a Google Cloud Source Repository. Other practical projects include a chat and a media-editing app, as well as other examples fit to adorn any developer’s utility belt. In the course of building applications, this book will teach you how to design and prototype professional-grade applications implementing performance and security considerations.
Table of Contents (14 chapters)
Xamarin Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Architecture


When it comes to cross-platform applications, our goal is to share as much code as possible. We focus our attention on architecture, having a nice clean project structure that lends itself to a maximization of code sharing across platforms. So how do we solve this problem? Ask yourself:

  • What are the different layers?

  • How do we set up the folder structure?

  • What parts go in which projects?

There are many different approaches to this problem; here are some of the most common architectural layers:

  • Data layer: This stores the database

  • Data access layer: This layer focuses on the objects and wrappers that apply operations on the data layer (Read, Write, Update)

  • Business layer (logic): This layer focuses on the different domains (domain-driven design), separating the different areas of logic into objects that handle operations for each domain

  • Service access layer: The area that focuses operations on the web API, how we handle JSON, and data sent and received between the API Controllers

  • Application...