Successful Code Sharing Principles for Mobile Development
summary
Shows how to turn a messy Xamarin solution into testable, sharable code by moving UI logic into view models, using PCLs for contracts, and embedding Xamarin.Forms embedding pages inside native Android/iOS apps. Demonstrates a demo login flow where an IAccountService is registered via TinyIoC/service locator or injected with Prism with Autofac, uses MessagingCenter for cross-layer events, handles platform quirks (GZIP on Android, iOS NFC limits), and warns against leaking platform code into shared projects.
AI-written summary · about
chapters (16)
- 0:00Intro
- 3:16PlatformSpecific Projects
- 5:57Shared Projects
- 11:08Difficulties in Code Sharing
- 12:10The Maze
- 14:11Abstraction
- 15:55Layers
- 23:28Shared Code
- 25:04IoC Containers
- 26:08Service Locator Pattern
- 31:41Salmon Forms
- 36:25Salmon Forms Example
- 45:23Demo
- 50:16MVVM
- 51:20Prism
- 56:16Conclusion
related talks
58mSucceeding with Xamarin
48mXamarin.Forms: Native iOS, Android, and Windows Phone apps from ONE C# Codebase
39mReal life cross-platform apps dev using Xamarin Forms
01h 00mBuilding truly Universal applications with Azure, Xamarin and MVVM
41mCode Quality & Performance with Xamarin
34mBuilding mobile applications with .NET Xamarin
50mXamarin Forms: Native iOS, Android & WP Apps from one C# Codebase
41mBuilding great apps with Xamarin.Forms
