cloudy with a dash of universal apps

53
Windows Windows Phone Azure … and more! @shahedC WakeUpAndCode.com

Upload: shahed-chowdhuri

Post on 14-Jul-2015

928 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Cloudy with a Dash of Universal Apps

Windows Windows Phone Azure … and more!

@shahedC

WakeUpAndCode.com

Page 2: Cloudy with a Dash of Universal Apps

Intro: Cloud + Universal Apps

> Creating a Mobile Service

> Consuming the Service

> Publishing the Service

Q&A

Page 3: Cloudy with a Dash of Universal Apps

Period Background/Experience

1997 –

present

Microsoft web/software development

2011 XNA games on XBLIG

• 2D Math Panic

• Angry Zombie Ninja Cats

2012 Tools for XNA developers

• XBLIG Sales Data Analyzer (OnekSoftLabs.com)

• XNA Basic Starter Kit (CodePlex)

Online: http://facebook.com/OnekSoftGames

Page 4: Cloudy with a Dash of Universal Apps

Period Background/Experience

2013 • Ninja Cat Runner on Win8, WP8, Web (Construct 2)

• Video Q&A with MS Tech Evangelist Frank La Vigne

• Founder/Admin of FB groups: Construct2, Xbox One & Unity Indie Devs

2014 • Public Speaking on Indie Game Development

• Joined Microsoft as a Sr. Technical Evangelist

• Gallant Glider on Win8, WP8, Web (Construct 2 Universal App)

• Cloud Camp presentations in DC Metro area

Video Q&A: http://youtu.be/lRjrQPvVOpo MVA: http://aka.ms/DevGames-Const2

Page 5: Cloudy with a Dash of Universal Apps

Source: Official Xbox Magazine, March 2014, Page 65

`

Page 6: Cloudy with a Dash of Universal Apps

Tools & Technologies

Page 7: Cloudy with a Dash of Universal Apps

Introduction: The Cloud

Page 8: Cloudy with a Dash of Universal Apps
Page 9: Cloudy with a Dash of Universal Apps

Host Build Consume

Packaged

Software

IaaS:

infrastructure as

a service

PaaS: Platform

as a service

Saas: software

as a service

Applications

Self-

Managed

Self-

Managed

Self-

Managed

Managed

By Vendor

Data

Runtime

Managed

By Vendor

Middleware

O/S

Virtualization

Managed

By VendorServers

Storage

Networking

Source: Bret Stateham, Windows Azure evangelist

Page 10: Cloudy with a Dash of Universal Apps

“… mobile first,

cloud first… ”

Microsoft CEO Satya Nadella

Page 11: Cloudy with a Dash of Universal Apps

Universal Apps

Page 12: Cloudy with a Dash of Universal Apps

"Apps that are tailored to people with disabilities"

"Apps that are automatically multi-lingual and culture adherent"

"Apps that can run on all platforms (iOS, Android, Windows)"

"A single app package that will work across Microsoft devices“

None of the Above?

Page 13: Cloudy with a Dash of Universal Apps

Universal Apps for Windows

• 1 solution

• 1 shared project (no binary output)

• 1 project per platform (separate binary output per platform)

• Windows, Windows Phone, Xbox One (coming soon!)

Ref: http://dev.windows.com/en-us/develop/Building-universal-Windows-apps

Page 14: Cloudy with a Dash of Universal Apps

• Pricing structure – Match Windows Phone pricing on Windows 8

• Shared in-app purchases – Buy IAPs only once, on either platform.

• Install across devices – Buy app only once, own across platforms

• Shared revenue model – Keep 70% of revenue

• Unified ad-units for Windows Phone and Windows apps

Ref: http://www.wpcentral.com/what-is-a-universal-windows-app

Page 15: Cloudy with a Dash of Universal Apps
Page 16: Cloudy with a Dash of Universal Apps

Visual Studio

Page 17: Cloudy with a Dash of Universal Apps

• C# and XAML

• HTML5 & JavaScript

• C++ and DirectX

Page 18: Cloudy with a Dash of Universal Apps
Page 19: Cloudy with a Dash of Universal Apps
Page 20: Cloudy with a Dash of Universal Apps
Page 21: Cloudy with a Dash of Universal Apps

Reference:

• http://blogs.msdn.com/b/visualstudio/archive/2014/04/14/using-visual-studio-to-build-universal-xaml-apps.aspx

Page 22: Cloudy with a Dash of Universal Apps

Reference:

• http://msdn.microsoft.com/en-us/library/windows/apps/dn609832.aspx

Page 23: Cloudy with a Dash of Universal Apps

Reference:

• http://marcominerva.wordpress.com/2014/04/22/how-to-share-code-among-different-universal-windows-apps/

“This type of project has been improved in Visual Studio 2013 Update 2 and

now, if we target Windows 8.1 and Windows Phone 8.1, we’ll be able to use all

the common APIs.

However, PCL produces a single binary that works as is in all the supported

projects. Handling divergent APIs requires using higher-level abstractions, such

as dependency injection or IoC containers. We can’t simply use conditional if to

define platform specific code.”

How about using a Portable Class Library (PCL)?

Page 24: Cloudy with a Dash of Universal Apps

2. Add Project to Solution:

1. Download & Install “Shared Project Reference Manager” from MSDN:• http://visualstudiogallery.msdn.microsoft.com/315c13a7-2787-4f57-bdf7-adae6ed54450

3. Add Class Library for each platform (Win 8.1 & WP 8.1)

4. Add Shared Project Reference to each Class Library.

Ref: http://marcominerva.wordpress.com/2014/04/22/how-to-share-code-among-different-universal-windows-apps/

Page 25: Cloudy with a Dash of Universal Apps
Page 26: Cloudy with a Dash of Universal Apps

http://code.msdn.microsoft.com/windowsapps/Universal-Windows-app-cb3248c3

http://www.microsoftvirtualacademy.com/training-courses/developing-universal-windows-apps-with-c-and-xaml

http://www.wintellect.com/blogs/jprosise/building-universal-apps-with-visual-studio-2013-update-2

Page 27: Cloudy with a Dash of Universal Apps
Page 28: Cloudy with a Dash of Universal Apps

Creating a Mobile Service

Page 29: Cloudy with a Dash of Universal Apps

Link: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-windows-store-dotnet-get-started/

Page 30: Cloudy with a Dash of Universal Apps
Page 31: Cloudy with a Dash of Universal Apps
Page 32: Cloudy with a Dash of Universal Apps
Page 33: Cloudy with a Dash of Universal Apps
Page 34: Cloudy with a Dash of Universal Apps
Page 35: Cloudy with a Dash of Universal Apps

Consuming the Service

Page 36: Cloudy with a Dash of Universal Apps

. . .

Page 37: Cloudy with a Dash of Universal Apps
Page 38: Cloudy with a Dash of Universal Apps
Page 39: Cloudy with a Dash of Universal Apps
Page 40: Cloudy with a Dash of Universal Apps
Page 41: Cloudy with a Dash of Universal Apps
Page 42: Cloudy with a Dash of Universal Apps
Page 43: Cloudy with a Dash of Universal Apps
Page 44: Cloudy with a Dash of Universal Apps

Publishing the Service

Page 45: Cloudy with a Dash of Universal Apps
Page 46: Cloudy with a Dash of Universal Apps
Page 47: Cloudy with a Dash of Universal Apps
Page 48: Cloudy with a Dash of Universal Apps
Page 49: Cloudy with a Dash of Universal Apps
Page 50: Cloudy with a Dash of Universal Apps

Enter a value to test it

Page 51: Cloudy with a Dash of Universal Apps

Enter a value to test it

Page 52: Cloudy with a Dash of Universal Apps