presentation title goes heredownload.microsoft.com/download/8/b/f/8bfe821e-eae9-409a... ·...
TRANSCRIPT
帮助应用通往10亿Windows设备的便捷桥梁
葛立峰 产品经理 微软操作系统开发者平台
课程代码WAD-B308
什么是Windows 10通用应用平台
实现一个Windows的过程
Windows Desktop
IoT HoloLens
Surface Hub
Windows Phone
XBox
ONE CORE OS
ONE APP PLATFORM
ONE STORE Windows 10
Phone Small Tablet 2-in-1s
(Tablet or Laptop) Desktops
& All-in-Ones Phablet Large Tablet Classic Laptop
Xbox IoT Surface Hub
… Windows 10 终端
Holographic
Windows 10
One Store + One Dev Center
Cloud Services
One SDK + Tooling
Adaptive User Interface
Natural User Inputs
统一的Windows平台
Windows 10应用开发桥梁
将已有代码迁移到Windows 10 UWP
Windows platform Windows Phone 8 Silverlight apps
Universal Windows 8 apps
Universal Windows 10 apps
Classic applications (via ‘Centennial’)
Middleware platforms
Other mobile platforms
Web
platform
EdgeHTML.dll Chakra
新的Edge浏览器引擎
支持调用UWP API,例如: IAP Live tile/Notification Camera Calendar Cortana
<meta name="msapplication-cortanavcd" content="http://mysite.com/vcd.xml"/>"
content="http://flightarcade.azurewebsites.net/vcd/vcd.xml"/>
// Add an event listener for the activation event if (Windows.UI.WebUI.WebUIApplication.addEventListener(“activated”, function (args)) { // Handle the Voice Command activation event var activation = Windows.ApplicationModel.Activation; if (args.kind === activation.ActivationKind.voiceCommand) { // Extract the result from the speech recognition from the event arguments var speechRecognitionResult = args.result; // Get the recognized command, defined in the VCD file var command = speechRecognitionResult.rulePath[0]; // Get the full string of text that was spoken var textSpoken = speechRecognitionResult.text; } });
Hosted Web App
无需重新提交商店更新来升级应用
Code
Visual Studio
Notepad++
Brackets
Vim
ATOM
Sublime Text
Emacs
开发
Push
Git
SVN
Visual Studio
Online
GitHub
Bitbucket
Gitlab
上传
Host
Amazon WS
Heroku
Parse
Private Cloud
Microsoft Azure
部署
Release
App更新
Hosted Web App
演示 Hosted Web App
UWP Bridge for iOS ‘Project Islandwood’
.appx
.M .M .CPP XCODE
使用Objective-C来编写UWP
iOS API映射成相应UWP API,同时也支持UWP API直接调用
支持Objective-C和C#混合使用
原生UWP应用,无性能损失
Visual Studio开发工具套件支持Objective-C
App Architecture
Universal App
Objective-C Code
clang/c2
VC++ Code
cl (c1/c2)
Windows 10 Platform
iOS API Library MS Linker
开源 https://github.com/Microsoft/winobjc
演示 Windows Bridge for iOS
Bringing your to Windows 10 PCs
WP 8.x
Silverlight
Convert
Win10
UWP
API调用转换:WP8.x Silverlight C#->UWP C# (namespace, API调用,sync/async等)
XAML UI:Silverlight XAML->UWP XAML
支持API转换扩展和自定义 https://github.com/MobilizeNet/UWPConversionMappings
VS2013 Windows Phone Silverlight 8.x项目工程-> VS2015 Windows10 UWP项目工程
演示 Mobilize.Net Silverlight Bridge
起始
• 利用Bridge技术重用现有代码编写UWP
• 尚未使用UWP特性
Ease User Exp Reach
进阶
• 利用Bridge的同时,使用UWP特性:
• In App Purchase
• Windows UX
• Live Tiles
• Notifications
Ease User Exp Reach
终点
• 编写原生的UWP应用
• 适配所有Windows 10设备
Ease User Exp Reach
参考资料
https://dev.windows.com/en-us/bridges
https://channel9.msdn.com/Events/Ignite/Microsoft-Ignite-China-2015
http://aka.ms/IgniteChina2015