cordova-plugin-googleplus
Advanced tools
Comparing version 7.0.2 to 8.0.0
@@ -32,4 +32,4 @@ #!/usr/bin/env node | ||
var contents = fs.readFileSync(files[i]).toString(); | ||
fs.writeFileSync(files[i], contents.replace(/WEB_APPLICATION_CLIENT_ID/g, WEB_APPLICATION_CLIENT_ID)); | ||
fs.writeFileSync(files[i], contents.replace(/client_id: "[^"]+"/g, `client_id: "${WEB_APPLICATION_CLIENT_ID}"`)); | ||
} catch(err) {} | ||
} |
{ | ||
"version": "7.0.2", | ||
"version": "8.0.0", | ||
"name": "cordova-plugin-googleplus", | ||
@@ -4,0 +4,0 @@ "cordova_name": "Google SignIn", |
@@ -24,7 +24,8 @@ # Google Sign-In Cordova/PhoneGap Plugin | ||
5. [Installation (PhoneGap Build)](#5-installation-phonegap-build) | ||
6. [Usage](#6-usage) | ||
7. [Exchanging the `idToken`](#7-exchanging-the-idtoken) | ||
8. [Exchanging the `serverAuthCode`](#8-exchanging-the-serverauthcode) | ||
9. [Troubleshooting](#9-troubleshooting) | ||
10. [Changelog](#10-changelog) | ||
6. [Installation (iOS and Cocoapods)](#6-installation-ios-and-cocoapods) | ||
7. [Usage](#7-usage) | ||
8. [Exchanging the `idToken`](#8-exchanging-the-idtoken) | ||
9. [Exchanging the `serverAuthCode`](#9-exchanging-the-serverauthcode) | ||
10. [Troubleshooting](#10-troubleshooting) | ||
11. [Changelog](#11-changelog) | ||
@@ -158,3 +159,19 @@ ## 1. Description | ||
## 6. Usage | ||
## 6. Installation (iOS and Cocoapods) | ||
This plugin use the [CocoaPods dependency manager](https://cocoapods.org) in order to satisfy the iOS Google SignIn SDK library dependencies. | ||
Therefore please make sure you have Cocoapods installed in your iOS build environment - setup instructions can be found [here](https://cocoapods.org/). Also make sure your local Cocoapods repo is up-to-date by running `pod repo update`. | ||
If building your project in Xcode, you need to open `YourProject.xcworkspace` (not `YourProject.xcodeproj`) so both your Cordova app project and the Pods project will be loaded into Xcode. | ||
You can list the pod dependencies in your Cordova iOS project by installing [cocoapods-dependencies](https://github.com/segiddins/cocoapods-dependencies): | ||
``` | ||
sudo gem install cocoapods-dependencies | ||
cd platforms/ios/ | ||
pod dependencies | ||
``` | ||
## 7. Usage | ||
Check the [demo app](demo) to get you going quickly, or hurt yourself and follow these steps. | ||
@@ -271,3 +288,3 @@ | ||
## 7. Exchanging the `idToken` | ||
## 8. Exchanging the `idToken` | ||
@@ -287,3 +304,3 @@ Google Documentation for Authenticating with a Backend Server | ||
## 8. Exchanging the `serverAuthCode` | ||
## 9. Exchanging the `serverAuthCode` | ||
@@ -297,2 +314,4 @@ Google Documentation for Enabling Server-Side Access | ||
Only in the initial login request `serverAuthCode` will be returned. If you wish to receive the token a second time, you can by using logout first. | ||
You have a couple options when it comes to this exchange: you can use the Google REST Apis to get those in the hybrid app itself or you can send the code to your backend server to be exchanged there, using whatever method necessary (Google provides examples for Java, Python, and JS/HTTP). | ||
@@ -302,3 +321,3 @@ | ||
## 9. Troubleshooting | ||
## 10. Troubleshooting | ||
- Q: I can't get authentication to work on Android. And why is there no ANDROID API KEY? | ||
@@ -406,3 +425,3 @@ - A: On Android you need to execute the `keytool` steps, see the installation instructions for details. | ||
## 10. Changelog | ||
## 11. Changelog | ||
- 5.3.2: Allow override of Play services version via `PLAY_SERVICES_VERSION`. | ||
@@ -409,0 +428,0 @@ - 5.3.1: Capacitor compatibility. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
437
3
83170
17