From e6fdb626b349e95132a8eadd11b45656605e00ca Mon Sep 17 00:00:00 2001 From: Martin DONADIEU Date: Thu, 15 Aug 2024 04:30:25 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c455c9b..8bb526c 100644 --- a/README.md +++ b/README.md @@ -143,26 +143,21 @@ or see more [CapacitorGoogleAuth-Vue3-example](https://github.com/reslear/Capaci 2. Add **identifier** `REVERSED_CLIENT_ID` as **URL schemes** to `Info.plist` from **iOS URL scheme**
(Xcode: App - Targets/App - Info - URL Types, click plus icon) -3. Set **Client ID** one of the ways: - 1. Set in `capacitor.config.json` - - `iosClientId` - specific key for iOS - - `clientId` - or common key for Android and iOS - 2. Download `GoogleService-Info.plist` file with `CLIENT_ID` and copy to **ios/App/App** necessarily through Xcode for indexing. - -plugin first use `iosClientId` if not found use `clientId` if not found use value `CLIENT_ID` from file `GoogleService-Info.plist` +3. Set **Client ID** one of the ways (by order of importance in the plugin): + 1. Set `clientId` in initialize method + 2. Set `iosClientId` in initialize method + 3. Set `clientId` in `capacitor.config.json` + 4. Set `iosClientId` in `capacitor.config.json` + 5. Set `CLIENT_ID` in `GoogleService-Info.plist` ### Android -Set **Client ID** : - -1. In `capacitor.config.json` - - - `androidClientId` - specific key for Android - - `clientId` - or common key for Android and iOS - -2. or set inside your `strings.xml` - -plugin first use `androidClientId` if not found use `clientId` if not found use value `server_client_id` from file `strings.xml` +Set **Client ID** (by order of importance in the plugin): +1. Set `clientId` in initialize method +2. Set `androidClientId` in initialize method +3. Set `clientId` in `capacitor.config.json` +4. Set `androidClientId` in `capacitor.config.json` +5. Set `server_client_id` in `strings.xml` ```xml From 5fcb1caaf04b7329b9bcd18ab20e8d7f39b2a469 Mon Sep 17 00:00:00 2001 From: Martin DONADIEU Date: Thu, 15 Aug 2024 04:35:08 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8bb526c..9f85d8f 100644 --- a/README.md +++ b/README.md @@ -145,19 +145,17 @@ or see more [CapacitorGoogleAuth-Vue3-example](https://github.com/reslear/Capaci 3. Set **Client ID** one of the ways (by order of importance in the plugin): 1. Set `clientId` in initialize method - 2. Set `iosClientId` in initialize method + 2. Set `iosClientId` in `capacitor.config.json` 3. Set `clientId` in `capacitor.config.json` - 4. Set `iosClientId` in `capacitor.config.json` - 5. Set `CLIENT_ID` in `GoogleService-Info.plist` + 4. Set `CLIENT_ID` in `GoogleService-Info.plist` ### Android Set **Client ID** (by order of importance in the plugin): 1. Set `clientId` in initialize method -2. Set `androidClientId` in initialize method +2. Set `androidClientId` in `capacitor.config.json` 3. Set `clientId` in `capacitor.config.json` -4. Set `androidClientId` in `capacitor.config.json` -5. Set `server_client_id` in `strings.xml` +4. Set `server_client_id` in `strings.xml` ```xml From 147fb30daee9a8a5e4cc0f10d54e7cf2675a2351 Mon Sep 17 00:00:00 2001 From: Martin DONADIEU Date: Thu, 15 Aug 2024 04:40:04 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9f85d8f..8dea468 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ Capacitor plugin for Google Auth. npm npm npm Dependents (via libraries.io) install size

+## Breaking change in V6 + +In the v6 version, `clientId` in the initialize method is used in priority over other places you could set up. If before you were using this only on the web, unset it on mobile. Or set it conditionally to replicate old behavior. + ## Contributions PRs are welcome and much appreciated that keeps this plugin up to date with Capacitor and official Google Auth platform library feature parity.