But I don’t need the complete Github repo!

We all love example code and there’s plenty of code hosted on Github. Xamarin for instance has a large repository at https://github.com/xamarin/mobile-samples/. And of course Github makes it very easy to download such a repo by just hitting the big green button:

Button to download a Github repo

Download a repo

But right now I’m on the train, tethered to my iPhone and I just don’t feel like downloading the entire repo, all I want is the CoinTime game app!

Here’s how I solve this problem: instead of using Git, I use Subversion (SVN) which is supported by Github, too. Just open Terminal and run the following command:

svn checkout <URL>

where <URL> will be replaced with the actual project to clone.

In my example, CoinTime’s URL is:


To use SVN, we simply replace “tree/master” with “trunk” and the command becomes:

svn checkout https://github.com/xamarin/mobile-samples/trunk/CoinTime

And we have a subfolder named “CoinTime” with exactly that one project in it!

Using OAuth2 with Microsoft OneDrive and Xamarin.Auth

Last week I had an interesting question about Xamarin.Auth, a library that allows Xamarin apps to authenticate users via standard authentication mechanisms (OAuth2), and store user credentials.

You can see how I wrote the word “standard” in bold because as long as some OAuth2 service follows the standards, Xamarin.Auth should support it. So my answer to whether Xamarin.Auth will work with OneDrive’s OAuth mechanisms was clearly “of course, it does”.

I was wrong.

Continue reading