Sport This project is no longer actively maintained and the services are no longer running in Azure. All source code should still be applic…
Sport This project is no longer actively maintained and the services are no longer running in Azure. All source code should still be applic…
Sport is a Xamarin.Forms app initially built for Xamarin employees as a way to facilitate leaderboards for a few ping-pong tables and darts we have around the office. Athletes can join leagues, get ranked and challenge other athletes to move up the ladder.
Sport employs the Elo Rating System. Each new member of a league initially starts with a rating of 1200. Anyone can challenge anyone, above or below you in the ladder and you can have multiple challenges in play. The larger the delta between the two players will result in how significant your rating increases or decreases. Victor over an athlete with a much higher rating than yours and you'll see a nice bump in your rating.
As of 11/11/2016, Sport features 93.6% code share (3.3% iOS / 3.1% Android).
This is an example of an iOS athlete and an Android athlete conducting a challenge
ContentPage classes enforce a generic BaseViewModel typeRunSafe methodSport employs Google OAuth2 authentication and exchanges the access_token from Google for an Azure authorization code using the SimpleAuth library written by James Clancey.
If you just want to run the sample, everything should be included in the project (keystore, ClientIDs, etc). If you want to integrate w/ your own Google ClientID's and Azure instance, here are the steps I followed:
Google now requires you to use CustomTabs to select the Google profile and authenticate using their Google Auth SDK. In the Google Console API, you need to generate an iOS App, Android App and a WebApp (for the backend Azure server). To get the Client ID of the Android App, you need to use keytool to generate a SHA1 based on the keystore you plan to sign it with.
Sport.Mobile.Droid/Resources/Security/androiddebugkey.keystoreandroiddebugkeyandroidhttps://xamarin-sportv2.azurewebsites.net/.auth/login/google/callbackSport.Shared/Keys.csAndroid project options > Build > Android Package Signing and complete the form so even your debug builds are signed.No open issues yet, or sync has not completed.