0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-24 04:05:13 +00:00
Mirror of YTVanced/VancedMicroG
Find a file
2015-01-25 02:14:45 +01:00
GmsApi@c4db81d1fc Subsubmodules are messy with git, just don't use them 2015-01-25 01:29:43 +01:00
res/values Fix res path 2015-01-25 01:55:26 +01:00
SafeParcel@3efecf38ca Subsubmodules are messy with git, just don't use them 2015-01-25 01:29:43 +01:00
src Fix KEY_LOCATION_CHANGED 2015-01-25 02:14:45 +01:00
.gitignore Explain + usage 2015-01-25 01:22:44 +01:00
.gitmodules Subsubmodules are messy with git, just don't use them 2015-01-25 01:29:43 +01:00
AndroidManifest.xml Add fallback to native location provider 2015-01-24 21:57:42 +01:00
build.gradle Fix res path 2015-01-25 01:55:26 +01:00
README.md Explain + usage 2015-01-25 01:22:44 +01:00
settings.gradle Subsubmodules are messy with git, just don't use them 2015-01-25 01:29:43 +01:00

GmsLib

This library is a compatibility implementation of the often used play-services library.

It will try to use the Play Services when installed on the target device. If this is not possible, a basic fallback implementation might be used.

WIP

This is still work in progress, and most applications will not build. However feel free to try it out and create issues for missing method calls (please include an application to test it).

Example: DashClock

DashClock is an open source clock widget with enhanced features. However it uses play services as location backend and thus requires proprietary libraries to compile it.

However, it is possible to build DashClock using GmsLib, supporting all it's location features, with or without play services installed. To do this, download and build GmsLib plus its submodules and copy the three resulting .aar files (SafeParcel.aar, GmsApi.aar, GmsLib.aar) to $DASHCLOCK_DIR/local_aars/. Then replace compile 'com.google.android.gms:play-services:4.0.30' in $DASHCLOCK_SRC/main/build.gradle with

compile(name:'GmsLib', ext:'aar')
compile(name:'GmsApi', ext:'aar')
compile(name:'SafeParcel', ext:'aar')

and build as usual.