build cross platform mobile apps for ios & android with xamarin & mvvmcross

Post on 16-Apr-2017

283 Views

Category:

Software

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

X.NETBUILD CROSS PLATFORM MOBILE APPS FOR IOS & ANDROID WITH XAMARIN & MVVMCROSS

+Ishai Hachlili (@eshy)Gilles de Bordeaux (@Gillesde)

Do you know about Xamarin?

Open Source (MIT License)• Xamarin.iOS• Xamarin.Mac• Xamarin.Android• Xamarin.Forms• Bindings & Plugins

Free and included With Visual Studio (including free Community Edition)

Silo Approach

iOS WindowsAndroid

Swift/Objective-CXcode

C#Visual Studio

JavaAndroid Studio

No shared code • Many languages & development environments • Multiple teams

Xamarin’s Unique Approach

Shared C# codebase • 100% native API access • High performance

iOS C# UI

Windows C# UIAndroid C# UI

Shared C# Mobile

Xamarin’s Unique Approach

Shared C# codebase • 100% native API access • High performance

iOS C# UI

Windows C# UIAndroid C# UI

Shared C# Mobile

C# Server

Linux/MonoCoreCLR

Azure

Shared C# Client/Server

C# is Awesome

LINQ Support

Async/Await

Nuget Libraries Newtonsoft.Json, Refit, Humanizer, etc.

Ishai Hachlili
Slides 8 and 9 (the C# is Awesome/Async Await) should be merged. Event handling is irrelevant since we don't use it in MvvmCross anyway. The XML stuff isn't really relevant either.
Ishai Hachlili
Showing Linq and Async/Await as the first two and a few nuget packages (Humanizer, Refit, Newtonsoft.Json, etc.) that will work across platforms is probably better anyway
Ishai Hachlili
The code sample in the other page is too large, might be best to just create a couple of code samples real quick. One for the LINQ and one for Await

iOS – 100% API CoverageMapKit UIKit iBeacon CoreGraphics CoreMotion

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

Android – 100% API CoverageText-to-speech ActionBar Printing Framework Renderscript NFC

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

Anything you can do in Objective-C, Swift, or Javacan be done in C# and Visual Studio with Xamarin.

✓Always Up-to-Date

Same-day support:• iOS 5• iOS 6• iOS 7• iOS 7.1• iOS 8• iOS 9• iOS 10

Full support for:• Apple Watch• Apple TV• Google Glass• Android Wear• Amazon Fire TV• and much more

Native Performance

Xamarin.iOS does full Ahead Of Time (AOT) compilation to produce an ARM binary for Apple’s App Store.

Xamarin.Android takes advantage of Just In Time (JIT) compilation on the Android device.

What is MVVM?

Model – View – View Model

View View Model Model +Services

Commands

Binding +Value Converters

Native UI projects Xamarin.iOS Xamarin.Android Windows Apps

Core Portable Class Library Shared between all platforms

MvvmCross

MVVM Framework for Xamarin.iOS, Xamarin.Android, Windows Store, UWP, Mac and WPF

Open Source (www.github.com/MvvmCross)

Install from Nuget

Lots of plugins (official and 3rd party) on GitHub and Nuget

Most contributors are active on Xamarin Chat (https://xamarinchat.slack.com invite from http://xamarinchat.herokuapp.com)

Let’s See Some Code!

Where should you go from here? Our GitHub to see the sample code http://bit.ly/SVCCTasks The meetup page to join us and learn more http://bit.ly/SVMobileNet Home – It’s the last session of the day (but come back tomorrow…)

top related