Overview

This is a client library bundle using Google Cloud Endpoints. In order to use this API client library in your project, you need to build the library using Gradle.

How to build API client library using Gradle

Under the root directory of the client bundle, run "gradle install" in the command console. By running this command, this API client bundle would be build by Gradle, and be deployed to local Maven repository. (Gradle doesn't have native repository system, but could leverage repository systems like maven repository.)

How to use API client library in Gradle project

Step 1: Add the following compile section to your build.gradle file.

Step 2: Add one of the following compile sections to your build.gradle file, based on your platform (Android/App Engine/Servlet). Google Cloud Endpoints API client is compatible with all supported Java platforms (with minimum Java version 5).

Step 3: Add one of the following compile sections to your build.gradle file, or directly import AndroidJsonFactory into your Java source, based on your JsonFactory implementation (GSON/Jackson/AndroidJson).

Step 4: Make sure local Maven repository is added to the repository section of build.gradle file.

Step 5: Refer to the "Creating the service object" and "Calling the API exposed by the Endpoint" sections of this Endpoints Java Documentation to see how to use the client library in Android.