Skip to content
Branch: master
Find file History
johnb003 Duplicating fix for memory corruption with extra scopes to the native…
… plugin.

Change-Id: I70cc91df221bbb5cbc0086045d00a1e9ce9bc1f3
Latest commit 9faa90f Mar 21, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
gradle/wrapper Adding the Android C++ library. Feb 26, 2018
src Duplicating fix for memory corruption with extra scopes to the native… Mar 21, 2018
testapp Added an Android C++ Testapp. Feb 27, 2018
GoogleSignInCpp.podspec Adding iOS Cocoapods library spec and testapp build setup. Feb 14, 2018
LICENSE Adding iOS Cocoapods library spec and testapp build setup. Feb 14, 2018
README.md Added a readme for the GSI C++ Library. Feb 27, 2018
build.gradle
gradlew Adding the Android C++ library. Feb 26, 2018
gradlew.bat Adding the Android C++ library. Feb 26, 2018

README.md

Google Sign-In C++ SDK

Copyright (c) 2018 Google Inc. All rights reserved.

Overview

This is the Google Sign-In C++ API, for Android and iOS. The intent is to unify the iOS (Objective-C) and Android (Java) native interfaces into a single common C++ interface that abstracts all of the platform specific details, however currently only the Android implementation is supported.

This is intended for projects that require OAuth ID tokens for server auth codes.

Getting Started

See Google Sign-In for Android for information on getting started.

Dependencies

On Android you'll need to add the dependency com.google.android.gms:play-services-auth, based on the setup guide.

Configuring the application on the API Console

To authenticate you need to create credentials on the API console for your application. The steps to do this are available on Google Sign-In for Android. In order to access ID tokens or server auth codes, you also need to configure a web client ID. From the Credentials Page on the API Console select the "Create credentials" dropdown, and choose OAuth Client ID. On the next page choose Web Application, name the client whatever you like, and then click "Create".

How to build the sample

First be sure to edit the sample source configuration:

In testapp/src/common_main.cpp, replace "YOUR_WEB_CLIENT_ID_HERE" with your web client id, from the configuration step above.

Building for Android

The android build is setup using gradle.

Navigate to the testapp directory, and build using the "build" target:

cd testapp ./gradlew build

You can’t perform that action at this time.