Build and Deploy Xamarin.iOS to Test Flight with Azure DevOps

The goal here is to build a Xamarin.iOS app from a git repository, create a releasable .ipa file and push it to the App Store Connect for Test Flight. What you will need A paid apple developer account Working Xamarin.iOS project in a Source Control system that Azure DevOps can access If you need a sample application, you can grab one here Azure DevOps account and project (it is free, go get one) Register app ID and get certificate and provisioning profile At the end of this section you should have ....

January 31, 2019 · 3 min · LPains

FreshMVVM master/detail page lazy loaded

Out of the box, FreshMVVM offers a Master/Detail page navigation container that works nicely. However, it does not support lazy loading the pages as you navigate to them. Below, I demonstrate how I’ve done it. We need to replace the FreshMVVM original implementation of FreshMasterDetailNavigationContainer. Note that the implementation below is mostly a copy with the following changes: The list view is grouped Each item in the list can have an icon In the AddPage methods, we no longer create an instance of the pages added, we just add a light reference to a collection The menu page is a xaml file instead of fully created in code Only when the menu item is tapped we instantiate and display the Page and ViewModel LazyLoadedPage class:...

July 29, 2018 · 1 min · LPains

Install root CA in iOS 11+

This post is a follow up to Install root CA in Android. The problem is the same here and the solution is somewhat similar too. First, export the CA certificate like explained in the Android specific post. Email the certificate as an attachment to an email account you can access via Safari on your device. Only Safari seems to allow the cert to install. Open the attachment and you will see the following prompt....

July 23, 2018 · 2 min · LPains

Migrating from TFS + TFVC to VSTS + git

It seems like everybody uses git for source control nowadays. Heck, Microsoft is using git instead of its own TFVC. Although I’ve been using GitHub for open source projects for years now, most of my day is still spent in TFS. I finally got the green-light to move one fairly large project from TFS with TFVC to VSTS with git, this post is about my experience during the move. Requirements Migrate one repository with few branches from TFS 2017 to VSTS Permanent move; no need to keep TFS and VSTS in sync after conversion Migrate history for all branches being moved The first two requirements are quite easy to achieve but the last one proved to be tricky....

July 15, 2018 · 3 min · LPains

Install Root CA cert in Android emulator

When developing a small Xamarin forms app I wanted the android emulator to connect to an intranet identity provider. That didn’t work. The id server was using an SSL certificate issued by an untrusted CA. Here’s what I did to get it working. First, you will need the CA certificate so android can trust the SSL cert. If you don’t have the cert, you can export it using Chrome on mac or Chrome on windows:...

July 7, 2018 · 1 min · LPains