mobile center
TRANSCRIPT
行動裝置 app 生命週期自動化
• HockeyApp 和 Xamarin Test Cloud 的下一代
• Objective-C、Swift、Java、Xamarin、React Native、UWP
• 建置、測試、散發、分析、損毀
• 驗證、資料儲存、推播通知、離線同步
App delivery
lifecycle
Design & Develop
TestMonitor
100+ apps 1000+ devices
理想情況
Code CI Test Deploy Monitor
We are so agile
Code CI Test Deploy Monitor
現實情況
And slow
Code CI Test Deploy Monitor
放棄測試
Let’s speed it up
如何解決這個問題?
版本控制
版本控制
we don't support TFSVC at the moment,
but only support Git repositories ( Github, Bitbucket and VSTS) for now.
Build To Distribute
• Set build option
• Sign builds
• Test on real device
• Distribute builds
Building……
Test on real device
Test on real device
• Debug mode• disabled Mono Shared Runtime
• Release mode
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
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
Submit Test from local machine
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/
Distribute builds
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
Crashes & Analytics
Crashes & Analytics
Crashes & Analytics
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
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