

- #Visual studio for mac generate apk how to
- #Visual studio for mac generate apk apk
- #Visual studio for mac generate apk code
- #Visual studio for mac generate apk download
That's what I've learned when trying to upload/publish the aab package to Google Play Store using DevOps release pipeline. The below instructions are written under the assumption that you either already have a release pipeline or you can create one by yourself.įastlane is your friend. Copying aab packages to the drop folder Release Pipeline You should now have the build pipeline producing signed aab package. Below is the Relese configuration for my project, for reference: NOTE: Don't forget to add the aab entry to your Android's project csproj file. This is as simple as changing your Contents part of the task to a wildcard expression that will match any file with the aab extension: **/*.aab.
#Visual studio for mac generate apk apk
Lastly, we will need to update the Copy Files task to copy the aab file instead of the apk to the be used later by the release pipeline.
#Visual studio for mac generate apk download

p:AndroidSigningKeyStore="$(cureFilePath)" Xamarin.Android DevOps build task /t:SignAndroidPackage

In order to sign the aab package we will need to update the Xamarin.Android build step with some extra msbuild arguments. We do however need to provide signed version of the aab package when uploading to Google Play Store. Build PipelineĪssuming that you already have a working apk build pipeline, we will need to make few changes in it, in order to generate the signed aab file (instead of the singed apk) and then make it available to our release pipeline.įirstly, we disable the Signing and aligning APK task because it doesn't support signing aab packages yet. I apologise in advance for the repetition of some of the content.

In the meantime James Montemagno beat me to it and published (15th of Jan) a really nice blog post about DevOps and aab packages. NOTE: I started writing this blog post around 10th of Jan but haven't fully finished it because of my laziness/lack of time. There is however a great article by Dan Siegel, which I took my inspiration from.
#Visual studio for mac generate apk how to
Jon also walks the reader through the basics of setting up your project to work with this "new" package format.Īt the time of writing this blog post I believe that there's no official guideline of how to create the aab package with DevOps, therefore I've decided to write a guide myself. If that's not enough for you, there's a great blog post by Jon Douglas, from Xamarin team, which also lists perks of switching to aab package format. Why you might ask? Mainly because I wanted to decrease the size of my app package, which in turn should potentially result in more downloads and/or less uninstalls.ĭon't take my word for it though and watch this video by Google to learn about all the reasons behind switching to aab. I've decided to update my DevOps CD pipeline for one of my applications to produce the aabpackage instead of the apk.
#Visual studio for mac generate apk code
Update: Here's my other blog post where I share the YAML code for the below build and release pipeline
