Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 2e3a13ea authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Prepare for maven publishing, adopt api changes

parent 3a219305
Loading
Loading
Loading
Loading
+4 −32
Original line number Diff line number Diff line
@@ -9,38 +9,10 @@ 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](https://code.google.com/p/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. 
Developer Notes
---------------

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:
Replace all compile includes to com.google.android.gms with org.microg master-SNAPSHOT includes

	$ git clone https://github.com/microg/android_external_GmsLib.git GmsLib
	$ cd GmsLib
	$ git submodule update --init --recursive
	$ gradle install
	sed -i 's/compile [\'"]com.google.android.gms:\([^:]*\):[^\']*[\'"]/compile \'org.microg:\1:master-SNAPSHOT\'/g' build.gradle
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
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ buildscript {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0'
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
    }
}
Compare acec513b to 9ff42ae7
Original line number Diff line number Diff line
Subproject commit acec513b19aaba856722fc22c9adf3f5e0ea3ac7
Subproject commit 9ff42ae73a02ea971dc557f657b612113dfa6e24
+34 −0
Original line number Diff line number Diff line
#
# Copyright 2013-2016 microG Project Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

POM_NAME=Play Services Library Base
POM_DESCRIPTION=Base classes used by all Play Services Library modules

POM_PACKAGING=aar

POM_URL=https://github.com/microg/android_external_GmsLib

POM_SCM_URL=https://github.com/microg/android_external_GmsLib
POM_SCM_CONNECTION=scm:git@github.com:microg/android_external_GmsLib.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:microg/android_external_GmsLib.git

POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=mar-v-in
POM_DEVELOPER_NAME=Marvin W
+23 −0
Original line number Diff line number Diff line
/*
 * Copyright 2013-2015 microG Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gms.common.api;

import org.microg.safeparcel.AutoSafeParcelable;

public class AccountInfo extends AutoSafeParcelable {
    public static final Creator<AccountInfo> CREATOR = new AutoCreator<AccountInfo>(AccountInfo.class);
}
Loading