Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[google_sign_in/google_identity_services] Clear-up documentation of callbacks in various APIs and uses of those APIs #8029

Merged
merged 6 commits into from
Nov 7, 2024

Conversation

srujzs
Copy link
Contributor

@srujzs srujzs commented Nov 7, 2024

These APIs used to accept allowInterop'd callbacks. When the implementation was migrated to use dart:js_interop, they were wrapped with toJS. However, starting in 3.5, to be consistent with dart2wasm, double-wrapping a function is an error. The documentation should be clear that it accepts only Dart functions and uses should be cleaned up to not use allowInterop and type the callbacks' parameter and return value correctly.

… APIs

These APIs used to accept allowInterop'd callbacks. When the
implementation was migrated to use dart:js_interop, they were
wrapped with toJS. However, starting in 3.5, to be consistent
with dart2wasm, double-wrapping a function is an error. The
documentation should be clear that it accepts only Dart functions
and uses should be cleaned up to not use allowInterop and type
the callbacks' parameter and return value correctly.
ditman

This comment was marked as resolved.

@ditman ditman dismissed their stale review November 7, 2024 03:19

I can't github today

Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

Please, update the version on this PR to 0.3.1+5 (both in the pubspec.yaml and CHANGELOG.md) so this can be auto-published!

@stuartmorgan stuartmorgan changed the title Clear-up documentation of callbacks in various APIs and uses of those APIs [google_sign_in] Clear-up documentation of callbacks in various APIs and uses of those APIs Nov 7, 2024
@srujzs srujzs changed the title [google_sign_in] Clear-up documentation of callbacks in various APIs and uses of those APIs [google_sign_in/google_identity_services] Clear-up documentation of callbacks in various APIs and uses of those APIs Nov 7, 2024
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

@srujzs srujzs merged commit 4b2132f into flutter:main Nov 7, 2024
76 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 7, 2024
…ation of callbacks in various APIs and uses of those APIs (flutter/packages#8029)
sinyu1012 added a commit to sinyu1012/packages that referenced this pull request Nov 8, 2024
* main: (1187 commits)
  [various] Update example app minSdkVersions (flutter#8035)
  [go_router] Activate leak testing (flutter#7546)
  [in_app_purchase_storekit] Add restore purchases and receipts (flutter#7964)
  [interactive_media_ads] Adds remaining methods for internal wrapper of the Android native `BaseManager` (flutter#7943)
  [google_sign_in/google_identity_services] Clear-up documentation of callbacks in various APIs and uses of those APIs (flutter#8029)
  [flutter_svg] wasm compatibility (flutter#8014)
  Applied Gradle Plugins Declaratively for Multiple Plugin Example Apps (Part 2) (flutter#8019)
  Roll Flutter from 29d40f7f6826 to 73546b3b71a7 (20 revisions) (flutter#8028)
  [ci] Upload screenshots, logs, and Xcode test results for drive and integration_test runs (flutter#7430)
  Remove use_modular_headers! from Podfiles (flutter#7796)
  [camera_avfoundation] enable more than 30 fps (flutter#7394)
  Roll Flutter from 8591d0c16a6c to 29d40f7f6826 (25 revisions) (flutter#8027)
  [ci] Add vector_graphics and flutter_svg to autolabeler (flutter#8025)
  [vector_graphics_compiler] wasm compatibility (flutter#8021)
  [vector_graphics*] Relax dependency constraints of vector_graphics, vector_graphics_codec, vector_graphics_compiler, flutter_svg  (flutter#8018)
  [various] Add `missing_code_block_language_in_doc_comment` lint to flutter/packages. (flutter#6473)
  [various] Update example apps to Kotlin 1.9.0 (flutter#7998)
  [go_router] add current state getter (flutter#7651)
  Applied Gradle Plugins Declaratively for Multiple Plugin Example Apps (flutter#7968)
  Roll Flutter from f86b77721524 to 8591d0c16a6c (16 revisions) (flutter#8015)
  ...

# Conflicts:
#	packages/quick_actions/quick_actions/CHANGELOG.md
#	packages/quick_actions/quick_actions_ios/CHANGELOG.md
#	packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 8, 2024
…ation of callbacks in various APIs and uses of those APIs (flutter/packages#8029)
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 11, 2024
flutter/packages@bb5a258...72356fd

2024-11-08 [email protected] [various] Update example app minSdkVersions (flutter/packages#8035)
2024-11-07 [email protected] [go_router] Activate leak testing (flutter/packages#7546)
2024-11-07 [email protected] [in_app_purchase_storekit] Add restore purchases and receipts (flutter/packages#7964)
2024-11-07 [email protected] [interactive_media_ads] Adds remaining methods for internal wrapper of the Android native `BaseManager` (flutter/packages#7943)
2024-11-07 [email protected] [google_sign_in/google_identity_services] Clear-up documentation of callbacks in various APIs and uses of those APIs (flutter/packages#8029)
2024-11-07 [email protected] [flutter_svg] wasm compatibility (flutter/packages#8014)
2024-11-06 [email protected] Applied Gradle Plugins Declaratively for Multiple Plugin Example Apps (Part 2) (flutter/packages#8019)
2024-11-06 [email protected] Roll Flutter from 29d40f7 to 73546b3 (20 revisions) (flutter/packages#8028)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 11, 2024
…ation of callbacks in various APIs and uses of those APIs (flutter/packages#8029)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants