Xamarin Component for Google Play Services Client Library
Xamarin creates and maintains Xamarin.Android bindings for the Google Play Services Client Library, including:
- Support Wearable
The build script for this project uses Cake. To run the build, you can use one of the bootstrapper files either for Mac or Windows (experimental support only):
The bootstrapper script will automatically download Cake.exe and all the required tools and files into the
The following targets can be specified:
cibuilds the kitchen sink - what we run in CI
libsbuilds the class library bindings (depends on
binderatedownloads the external dependencies and generates folder structure
samplesbuilds all of the samples (depends on
nugetbuilds the nuget packages (depends on
cleancleans up everything
binderate build task may take awhile to run as it downloads several large dependencies.
You may want to consider passing
--verbosity diagnostic (or
-Verbosity diagnostic on Windows) to the bootstrapper to enable more verbose output, including downloading progress.
sh ./build.sh --target=binderate && sh ./build.sh --target=libs
sh ./build.sh --target=clean
before the build.
./build.ps1 --target=binderate ; ./build.ps1 --target=libs
before the build.
To build nuget packages, samples and API diff:
sh ./build.sh --target=nuget && sh ./build.sh --target=samples && sh ./build.sh --target=diff
./build.ps1 --target=nuget ; ./build.ps1 --target=samples ; ./build.ps1 --target=diff
Working in Visual Studio / Xamarin Studio
.sln files will compile in Visual Studio or Xamarin Studio, the external dependencies need to be downloaded. This can be done by running the
build.ps1 with the target
externals. After the externals are setup, the
.sln files should compile in an IDE.
Historically, Component and later NuGet package versions were based on the revision number of the Google Play Services SDK from the SDK Manager, and later based on the Google Play Services Maven Repository (m2repository) version from the SDK Manager. Because of this, the versions of the components and NuGet packages do not match the version strings of Google Play Services releases from Google. Here is a table which shows a translation of versions mapped to Google's version strings:
|NuGet / Component Version||Google m2repository Version||Google Play Services Version|
|25.0||19 (GPS SDK 25)||7.5.0|
|26.0||21 (GPS SDK 26)||7.8.0|
|27.0||22 (GPS SDK 27)||8.1.0|
|29.0||24 (GPS SDK 29)||8.4.0|
|25||8.4.0 (no binary changes)|
|30.0.1.alpha4||27 (GPS SDK 30)||9.0.1|
The license for this repository is specified in LICENSE.md
externals build task downloads some external dependencies from Google which are licensed under and subject to the terms of Android Software Development Kit License Agreement
The Contribution Guidelines for this repository are listed in CONTRIBUTING.md
This project is part of the .NET Foundation