Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[google_sign_in] Correctly passes serverClientId to native libs #6691

Merged

Conversation

wannabehero
Copy link
Contributor

@wannabehero wannabehero commented Nov 11, 2022

This PR compliments #5250 and #6034 to fully implement passing serverClientId to the native libs during channelled call.

Current implementation works fine if the value is provided via the corresponding plist / json file. But if provided via code only – it doesn't work properly. This PR addresses that problem.

Fixes flutter/flutter#110099

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS part LGTM

Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Android looks good to me!

@jmagman
Copy link
Member

jmagman commented Nov 15, 2022

@stuartmorgan shall I merge this, do you have any concerns?

@stuartmorgan
Copy link
Contributor

No concerns. Looking back at some dates, I think what happened is that the original end-to-end PR that supported this was written before I switched google_sign_in to internal method channels, but the pieces all landed after, and nobody noticed that the open PR had before incomplete due to the method channel change.

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2022
@jmagman
Copy link
Member

jmagman commented Nov 16, 2022

Thanks for your continuing work on this, @wannabehero!

@wannabehero
Copy link
Contributor Author

Thanks for accepting this!
❤️

@auto-submit auto-submit bot merged commit b2fe01b into flutter:main Nov 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 18, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 18, 2022
* 19673b341 [camera]: Bump camerax_version (flutter/plugins#6709)

* b8282424e [gh_actions]: Bump ossf/scorecard-action from 2.0.4 to 2.0.6 (flutter/plugins#6610)

* 2ba4c0a70 [file_selector] Add getDirectoryPaths method to the file_selector_platform_interface. (flutter/plugins#6572)

* 89cbf74c8 [quick_actions]Migrates all remaining components to Swift, and deprecate OCMock (flutter/plugins#6597)

* 51d084453 [quick_actions] Fix Android integration test flake (flutter/plugins#6688)

* b2fe01bc0 [google_sign_in] Correctly passes `serverClientId` to native libs (flutter/plugins#6691)
adam-harwood pushed a commit to adam-harwood/flutter_plugins that referenced this pull request Nov 21, 2022
…utter#6691)

* Correctly passes serverClientId to native libs

* Bumps versions
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…#115656)

* 19673b341 [camera]: Bump camerax_version (flutter/plugins#6709)

* b8282424e [gh_actions]: Bump ossf/scorecard-action from 2.0.4 to 2.0.6 (flutter/plugins#6610)

* 2ba4c0a70 [file_selector] Add getDirectoryPaths method to the file_selector_platform_interface. (flutter/plugins#6572)

* 89cbf74c8 [quick_actions]Migrates all remaining components to Swift, and deprecate OCMock (flutter/plugins#6597)

* 51d084453 [quick_actions] Fix Android integration test flake (flutter/plugins#6688)

* b2fe01bc0 [google_sign_in] Correctly passes `serverClientId` to native libs (flutter/plugins#6691)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…#115656)

* 19673b341 [camera]: Bump camerax_version (flutter/plugins#6709)

* b8282424e [gh_actions]: Bump ossf/scorecard-action from 2.0.4 to 2.0.6 (flutter/plugins#6610)

* 2ba4c0a70 [file_selector] Add getDirectoryPaths method to the file_selector_platform_interface. (flutter/plugins#6572)

* 89cbf74c8 [quick_actions]Migrates all remaining components to Swift, and deprecate OCMock (flutter/plugins#6597)

* 51d084453 [quick_actions] Fix Android integration test flake (flutter/plugins#6688)

* b2fe01bc0 [google_sign_in] Correctly passes `serverClientId` to native libs (flutter/plugins#6691)
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
…utter#6691)

* Correctly passes serverClientId to native libs

* Bumps versions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: google_sign_in platform-android platform-ios
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[google_sign_in] ServerAuthCode returns null for iOS
4 participants