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

[google_sign_in] Add implementations for new Oauth scope methods. #2562

Closed
wants to merge 37 commits into from
Closed

[google_sign_in] Add implementations for new Oauth scope methods. #2562

wants to merge 37 commits into from

Conversation

emerssso
Copy link
Contributor

Description

Adds two new methods, hasGrantedScope and requestScope, to the GoogleSginIn implementations for Android, iOS, and web.

Related Issues

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@emerssso emerssso changed the title Scope apis mobile [google_sign_in] Add implementations for new Oauth scope methods. Feb 27, 2020
@emerssso
Copy link
Contributor Author

emerssso commented Mar 3, 2020

Note: I haven't gotten to manually test the iOS implementation here yet. Will be able to this evening.

@emerssso
Copy link
Contributor Author

emerssso commented Mar 5, 2020

I did find some issues on iOS. Working through them.

@emerssso
Copy link
Contributor Author

emerssso commented Mar 5, 2020

iOS. issues addressed. This should be ready for review once changes in #2547 are merged and this gets rebased.

Emmanuel Garcia and others added 24 commits March 11, 2020 13:30
…g of code snippets (#2549)

* [e2e] fix flutter driver code snippet in readme and improve formatting
* Move path provider to dir

* Fix example

* Add dart file

* Rename file

* Update homepage link
* Exclude path_provider

* Add web
…2560)

Some platforms might not be able to determine the connectivity status of
the device on which the app is running (like some desktop Web browsers).

This allows users of the `connectivity` plugin to distinguish between
"no connectivity" and "connectivity couldn't be determined".

This requires a Major Version bump for users of the plugin who may be
switch/case on ConnectivityResult values, since Dart forces users to be
exhaustive in those cases (if they don't have a "default" entry, this
new value becomes a compilation error in their code).

This will also cause a Major Version bump in the core `connectivity`
plugin itself.

Note that by default, the ConnectivityResults returned by the MethodChannel implementation will now default to 'unknown' if they're not explicitly "none", so this might have some effect in your code!
…nown`." (#2561)

The previous push introduced a new major version into the connectivity_platform_interface package.

That might not be the best approach.

The new version has been unpublished from pub.dev, and this change restores the repo to its previous state.

This reverts commit 4411247.
* Add macos  exmaple

* Update version

* Fix analyzer

* Fix

* space

* Remove tests

* Address comment

* Remove show

* Import

* Add platform

* Use right import
…d Added Tests (#2552)

updated _launchUniversalLinkIos to launch the url passed. It could also be done that we remove the url argument passed and open the hardcoded url. Either of the case needs to be done.
Fixes [TAG] Warnings and errors caused as generated on Android Studio build terminal while buidling.
…2564)

* Rename StorageDirectory

* Update version

* Update version to non-breaking

* Use 1.0.1
* adding a test for e2e web testing.

* chaning the changelog. updating pubspec.yaml version. fixing analyze

* merging the changelog

* addressing reviewer comments

* fix format. addressing reviewer comments

* try to run chromedriver on the backend

* chrome driver is was running as the main task, preventing test from running . use background_task to run it. use ENV for directory change

* change in scripts. remove list from backfround task. change argument of driver

* removed background task. it wasn't using the same path

* run web tests only on browser

* add test on to the web driver test as well. drive-examples are still failing

* fix the imports

* trying reviever suggestion for drive_example compile errors

* test _ imports

* Revert "test _ imports"

This reverts commit 7cf24d6.

* removing the web_test driver file upon reviewers suggestion

* format fix
This reverts commit 7d62e8c which landed on the wrong branch.
* Add dart file

* Rename file

* add interface, rename files, add methods to class

* Add to method channel, not done

* Add dart file

* Rename file

* Adds method channel test

* Remove prints

* Fix imports and version

* Format and commentas

* Space

* Rename apis to path and provide only the string from the platform

* Add test and remove null

* Format

* Add export

* Add imports

* Completed apis

* Fix and works

* Improve tests

* Remove asyncs

* Add imports

* Completed apis

* Fix and works

* Update version

* Finish test

* Make results per test

* Fix

* Add dependency

* Fix typo nad enum

* Change interface version

* Address comments

* Remove mock call

* Typo and import

* Remove file
#2567)

There's a variety of scenarios where checking at runtime which system
features are available is useful.  System features are device
capabilities that do not change at runtime (for example, FEATURE_BLUETOOTH
is always present if the device has a bluetooth radio, even if Bluetooth
is presently disabled), so DeviceInfo seems like the right place to put
this.
…th just the component name (#2575)

* An intent takes an action, component or both, but at least one of them.
* Extend the tests and enforce the new assertion on the private constructor as well
* Extends unit test to cover no-action, but component name case.
* Improves unit test even more by writing literal values in the code
)

* Make FlutterRunner launch deterministic when running other tests.
* Switch to using FlutterTestRunner
…2482)

* Added test for android_alarm_manager background execution

Co-authored-by: Collin Jackson <[email protected]>
@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@emerssso emerssso closed this Mar 11, 2020
@emerssso
Copy link
Contributor Author

Replaced by #2599

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.