No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Travis Burtrum a0e3313675 Point submodule to my fork 3 years ago
extern Point submodule to my fork 3 years ago
play-services Add play-services-cast api 3 years ago
play-services-base Add some new classes and utilities to play-services-base 3 years ago
play-services-cast Add play-services-cast api 3 years ago
play-services-location Bump gradle deps for gradle 2.4 3 years ago
play-services-wearable Bump gradle deps for gradle 2.4 3 years ago
.gitignore Various fixes for gradle/maven 3 years ago
.gitmodules Point submodule to my fork 3 years ago
README.md Update DashClock example 3 years ago
build.gradle Update api 3 years ago
play-services-api Update api 3 years ago
safe-parcel Update api 3 years ago
settings.gradle Add play-services-cast api 3 years ago

README.md

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 install it to the local gradle repository:

$ git clone https://github.com/microg/android_external_GmsLib.git GmsLib
$ cd GmsLib
$ git submodule update --init --recursive
$ gradle install

Then update the main/build.gradle to point to non-google gms in local maven:

 repositories {
+    maven {   url "${System.env.HOME}/.m2/repository" } // This can be mavenLocal() since Gradle 2.0
     mavenCentral()
     flatDir {
         dirs '../local_aars'
     }
 }

 dependencies {
     compile 'com.android.support:support-v13:22.0.0'
-    compile 'com.google.android.gms:play-services:4.0.30'
+    compile 'org.microg.gms:play-services:1.0-SNAPSHOT'
     //compile 'com.mobeta.android.dslv:drag-sort-listview:0.6.1-SNAPSHOT-AAR'
     compile 'com.mobeta.android.dslv:drag-sort-listview:0.6.1-SNAPSHOT-AAR@aar'
     compile project(':api')
 }

Afterwards you can compile dashclock the usual way:

$ gradle :main:assembleDebug