Provides Google Play Services support for OpenFL 4.1+.

To install, run:

haxelib install google-play-services 1.1.0 

See using Haxelib in Haxelib documentation for more information.

Google Play Services

Provides Google Play Services support for OpenFL 4.1+.

This library lets you import the Google Play Services, and/or Android Support Libraries. However, it doesn't help you access them.

Version numbers

By default, this library will use Google Play Services version 9.6.1 and Android Support Library version 24.2.1. You can override these by setting one or both of these variables in your project.xml file:

<set name="playServicesVersion" value="9.0.0" />
<set name="supportLibraryVersion" value="24.0.0" />

Choosing libraries

Instead of importing the entire library, you can choose which parts of the Google Play Services and Android Support Libraries you need. To enable features, pick one or more lines from this list, and add them to your project.xml file:

<!-- Google Play Services -->
<set name="google-plus" />
<set name="google-account-login" />
<set name="google-actions" />
<set name="google-address-api" />
<set name="google-app-indexing" />
<set name="google-app-invites" />
<set name="google-analytics" />
<set name="google-awareness" />
<set name="google-cast" />
<set name="google-cloud-messaging" />
<set name="google-drive" />
<set name="google-fit" />
<set name="google-location" />
<set name="google-maps" />
<set name="google-mobile-ads" />
<set name="google-places" />
<set name="mobile-vision" />
<set name="google-nearby" />
<set name="google-panorama-viewer" />
<set name="google-play-game-services" />
<set name="safety-net" />
<set name="android-pay" />
<set name="android-wear" />

<!-- Android Support Libraries -->
<set name="support-compat" />
<set name="support-core-utils" />
<set name="support-core-ui" />
<set name="support-media-compat" />
<set name="support-fragment" />
<set name="cardview-v7" />
<set name="gridlayout-v7" />
<set name="mediarouter-v7" />
<set name="palette-v7" />
<set name="recyclerview-v7" />
<set name="preference-v7" />

Feel free to use camelCase, snake_case, or UPPERCASE_WITH_UNDERSCORES instead. OpenFL converts all of those to the same thing.

Note that some of the v7 libraries require API Level 23 or later:

<android target-sdk-version="23" />

Full libraries

You can also include the entire support-v4 and/or appcompat-v7 libraries:

<set name="support-v4" />
<set name="appcompat-v7" />

However, keep in mind that this will make your APK larger.

1 year ago

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser!

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github