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

[google_sign_in] Add forceCodeForRefreshToken parameter platform implementations #6130

Conversation

fbcouch
Copy link
Contributor

@fbcouch fbcouch commented Jul 21, 2022

This is the platform implementation companion to #3356.

Related Issues

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.

@stuartmorgan
Copy link
Contributor

It looks like several of the new unit tests are failing; see https://cirrus-ci.com/task/5986776966758400 for details.

@fbcouch
Copy link
Contributor Author

fbcouch commented Jul 26, 2022

@stuartmorgan My bad – for whatever reason, Android Studio was loading the tests from the pub version of the plugin instead of the local branch...those are fixed now, and should be using the same style as the other init tests that were added.

@stuartmorgan stuartmorgan self-requested a review July 28, 2022 20:11
@@ -1,3 +1,7 @@
## 6.0.2
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: since you are adding a feature these should be minor version bumps rather than bugfix version bumps.

@@ -101,16 +101,18 @@ void main() {
test('Other functions pass through arguments to the channel', () async {
final Map<Function, Matcher> tests = <Function, Matcher>{
() {
googleSignIn.init(
Copy link
Contributor

Choose a reason for hiding this comment

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

Here and on iOS, please add a new test instead of changing the old one, so that we have coverage that init hasn't regressed (and doesn't later).

…rsion instead of bugfix; add new tests instead of modifying existing init tests
@fbcouch fbcouch requested a review from stuartmorgan August 11, 2022 03:07
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

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM! I'm assuming that @camsim99 has no other comments since the main PR was approved.

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 30, 2022
@auto-submit auto-submit bot merged commit 7e55a7c into flutter:main Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 31, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 31, 2022
adam-harwood pushed a commit to adam-harwood/flutter_plugins that referenced this pull request Nov 3, 2022
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
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.

3 participants