mobile center

32
行動裝置 app 生命週期自動化

Upload: ian-chen

Post on 21-Jan-2018

145 views

Category:

Mobile


2 download

TRANSCRIPT

Page 1: Mobile center

行動裝置 app 生命週期自動化

Page 2: Mobile center
Page 3: Mobile center
Page 4: Mobile center
Page 5: Mobile center
Page 6: Mobile center
Page 7: Mobile center

• HockeyApp 和 Xamarin Test Cloud 的下一代

• Objective-C、Swift、Java、Xamarin、React Native、UWP

• 建置、測試、散發、分析、損毀

• 驗證、資料儲存、推播通知、離線同步

Page 8: Mobile center

App delivery

lifecycle

Design & Develop

TestMonitor

100+ apps 1000+ devices

Page 9: Mobile center

理想情況

Code CI Test Deploy Monitor

We are so agile

Page 10: Mobile center

Code CI Test Deploy Monitor

現實情況

And slow

Page 11: Mobile center

Code CI Test Deploy Monitor

放棄測試

Let’s speed it up

Page 12: Mobile center
Page 13: Mobile center

如何解決這個問題?

Page 14: Mobile center
Page 15: Mobile center

版本控制

Page 16: Mobile center

版本控制

we don't support TFSVC at the moment,

but only support Git repositories ( Github, Bitbucket and VSTS) for now.

Page 17: Mobile center

Build To Distribute

• Set build option

• Sign builds

• Test on real device

• Distribute builds

Page 18: Mobile center

Building……

Page 19: Mobile center

Test on real device

Page 20: Mobile center

Test on real device

• Debug mode• disabled Mono Shared Runtime

• Release mode

Page 21: Mobile center

Submit Test from local machine

• Install Node.js, version 6.3 or later

• Install the mobile-center-cli NPM package (version 0.2.1 or later)

• Adding a UITest Project

Page 22: Mobile center

Submit Test from local machine

mobile-center test run uitest --app “********/appname" --devices “*****/android-7-dot-x" --app-path pathToFile.apk --test-series "launch-tests" --locale "en_US" --build-dir pathToUITestBuildDir

pathToFile.apk:apk檔位置

pathToUITestBuildDir:UI Test Project dll 路徑

eg :

mobile-center test run uitest --app " “********/appname" --devices " “*****/android-7-dot-x" --app-path BeautyFace.Android.apk --test-series "master" --locale "en_US" --build-dirD:\MY.NET\Teach\BeautyFace\BeautyFaceUITest\bin\debug

Page 23: Mobile center

Submit Test from local machine

Page 24: Mobile center

Distribute builds

• Only signed builds can be distributed and run on devices• https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_a

pplication/part_1_-_preparing_an_application_for_release/

• https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_application/part_2_-_signing_the_android_application_package/

Page 25: Mobile center

Distribute builds

Page 26: Mobile center

Distribute builds - CodePush

Mobile Center cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices (JS, HTML, CSS and image changes)https://docs.microsoft.com/en-us/mobile-center/distribution/codepush

Page 27: Mobile center

Crashes & Analytics

Page 28: Mobile center

Crashes & Analytics

Page 29: Mobile center

Crashes & Analytics

Page 30: Mobile center

Table & Push & Identity

• Table Data Storage with Azure

• Identity powered by Azure App Service Authentication / Authorization

Azure Active Directory 、Facebook 、Google 、Microsoft Account 、Twitter

• Push Notifications

Page 31: Mobile center
Page 32: Mobile center

Xamarin Live Player

• Visual Studio 2017 15.3 Preview with the XamarinUpdater installed

• Visual Studio computer and a device on the same WiFi network

• https://channel9.msdn.com/Shows/XamarinShow/Epis

ode-24-Xamarin-Live-Player