Git Product home page Git Product logo

gms-mvn-install's Introduction

Deprecated

The Gradle build system should be used moving forward. This script will not be maintained.

Maven + Google Play Services

The recently released version of Google Play Services presents itself as a library project with string and attribute resources coupled with a .jar in the libs/ folder that has been compiled against internal APIs.

While this is convenient for users of IDEs or Ant, it presents a problem for those using proper build systems (e.g., Maven, Gradle) with dependency management. Inside the .jar there are a lot of classes which reference static attributes on the com.google.android.gsm.R class. This means that the library must exist in a project which declares that package in its manifest (thus causing aapt to generate an R.java for it). While this makes sense, it presents a problem for users of artifact repositories.

If you use Maven, you can do the following in order to depend on Google Play Services as a library project:

  1. Copy the gms-mvn-install.sh script into the extras/google/google_play_services/libproject/google-play-services_lib folder inside of your SDK.
  2. Execute ./gms-mvn-install.sh which will install the project into your local Maven repository. If you want to deploy the artifacts to a remote repository then execute ./gms-mvn-install.sh repo-id repo-url.

Once completed you can depend on this library project with the following dependency declaration:

<dependency>
  <groupId>com.google.android.gms</groupId>
  <artifactId>google-play-services</artifactId>
  <version>7</version>
  <type>apklib</type>
</dependency>

gms-mvn-install's People

Contributors

jakewharton avatar broady avatar alex-richards avatar wuman avatar marcors avatar brk3 avatar

Watchers

James Cloos avatar Rjay Francisco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.