Skip to content

Commit

Permalink
[various] Add http 1.0 compatibility (#4147)
Browse files Browse the repository at this point in the history
The `http` package was updated to 1.0. There are no change that affect our usage (it just adds new class restrictions), so this extends all dependencies to include both 0.13.x and 1.x.

All changes here are tool-applied (`update-dependencies` and `update-release-info`) except for the script/tools/ pubspec update, so are identical in all packages.

Fixes flutter/flutter#127926
  • Loading branch information
stuartmorgan authored Jun 7, 2023
1 parent f1e628c commit e37dd83
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.0.10

* Adds compatibility with `http` 1.0.
* Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.
* Aligns Dart and Flutter SDK constraints.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: extension_google_sign_in_as_googleapis_auth
description: A bridge package between google_sign_in and googleapis_auth, to create Authenticated Clients from google_sign_in user credentials.
repository: https://github.com/flutter/packages/tree/main/packages/extension_google_sign_in_as_googleapis_auth
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+extension_google_sign_in_as_googleapis_auth%22
version: 2.0.9
version: 2.0.10

environment:
sdk: ">=2.18.0 <4.0.0"
Expand All @@ -19,7 +19,7 @@ dependencies:
sdk: flutter
google_sign_in: ">=5.0.0 <7.0.0"
googleapis_auth: ^1.1.0
http: ^0.13.0
http: ">=0.13.0 <2.0.0"
meta: ^1.3.0

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.5.1

* Adds compatibility with `http` 1.0.
* Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.

## 2.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/file_selector
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 2.5.0
version: 2.5.1

environment:
sdk: ">=2.18.0 <4.0.0"
Expand All @@ -14,7 +14,7 @@ dependencies:
cross_file: ^0.3.0
flutter:
sdk: flutter
http: ^0.13.0
http: ">=0.13.0 <2.0.0"
plugin_platform_interface: ^2.1.0

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/google_identity_services_web/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
sdk: flutter
google_identity_services_web:
path: ../
http: ^0.13.5
http: ">=0.13.0 <2.0.0"
js: ^0.6.4

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dev_dependencies:
sdk: flutter
google_maps: ^6.1.0
google_maps_flutter: ^2.2.0 # Needed for projection_test.dart
http: ^1.0.0
http: ">=0.13.0 <2.0.0"
integration_test:
sdk: flutter
mockito: 5.4.1
4 changes: 4 additions & 0 deletions packages/google_sign_in/google_sign_in/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.1.4

* Adds compatibility with `http` 1.0.

## 6.1.3

* Clarifies `canAccessScopes` method documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
path: ../
google_sign_in_platform_interface: ^2.4.0
google_sign_in_web: ^0.12.0
http: ^0.13.0
http: ">=0.13.0 <2.0.0"

dev_dependencies:
espresso: ^0.2.0
Expand Down
4 changes: 2 additions & 2 deletions packages/google_sign_in/google_sign_in/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for Google Sign-In, a secure authentication system
for signing in with a Google account on Android and iOS.
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
version: 6.1.3
version: 6.1.4

environment:
sdk: ">=2.18.0 <4.0.0"
Expand Down Expand Up @@ -33,7 +33,7 @@ dev_dependencies:
sdk: flutter
flutter_test:
sdk: flutter
http: ^0.13.0
http: ">=0.13.0 <2.0.0"
integration_test:
sdk: flutter
mockito: 5.4.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
# the parent directory to use the current plugin's version.
path: ../
google_sign_in_platform_interface: ^2.2.0
http: ^0.13.0
http: ">=0.13.0 <2.0.0"

dev_dependencies:
espresso: ^0.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
# the parent directory to use the current plugin's version.
path: ../
google_sign_in_platform_interface: ^2.2.0
http: ^0.13.0
http: ">=0.13.0 <2.0.0"

dev_dependencies:
flutter_driver:
Expand Down
4 changes: 4 additions & 0 deletions packages/google_sign_in/google_sign_in_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.12.0+2

* Adds compatibility with `http` 1.0.

## 0.12.0+1

* Fixes unawaited_futures violations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dev_dependencies:
sdk: flutter
flutter_test:
sdk: flutter
http: ^0.13.0
http: ">=0.13.0 <2.0.0"
integration_test:
sdk: flutter
js: ^0.6.3
Expand Down
4 changes: 2 additions & 2 deletions packages/google_sign_in/google_sign_in_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for Google Sign-In, a secure authentication system
for signing in with a Google account on Android, iOS and Web.
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
version: 0.12.0+1
version: 0.12.0+2

environment:
sdk: ">=2.18.0 <4.0.0"
Expand All @@ -24,7 +24,7 @@ dependencies:
sdk: flutter
google_identity_services_web: ^0.2.1
google_sign_in_platform_interface: ^2.4.0
http: ^0.13.5
http: ">=0.13.0 <2.0.0"
js: ^0.6.3

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.6.4

* Adds compatibility with `http` 1.0.
* Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.
* Aligns Dart and Flutter SDK constraints.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/image_picker/
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 2.6.3
version: 2.6.4

environment:
sdk: ">=2.18.0 <4.0.0"
Expand All @@ -14,7 +14,7 @@ dependencies:
cross_file: ^0.3.1+1
flutter:
sdk: flutter
http: ^0.13.0
http: ">=0.13.0 <2.0.0"
plugin_platform_interface: ^2.1.0

dev_dependencies:
Expand Down
4 changes: 4 additions & 0 deletions packages/metrics_center/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.9

* Adds compatibility with `http` 1.0.

## 1.0.8

* Removes obsolete null checks on non-nullable values.
Expand Down
4 changes: 2 additions & 2 deletions packages/metrics_center/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: metrics_center
version: 1.0.8
version: 1.0.9
description:
Support multiple performance metrics sources/formats and destinations.
repository: https://github.com/flutter/packages/tree/main/packages/metrics_center
Expand All @@ -14,7 +14,7 @@ dependencies:
gcloud: ^0.8.2
googleapis: ^3.0.0
googleapis_auth: ^1.1.0
http: ^0.13.3
http: ">=0.13.0 <2.0.0"

dev_dependencies:
build_runner: ^2.1.1
Expand Down
2 changes: 1 addition & 1 deletion script/tool/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
file: ^6.1.0
# Pin git to 2.0.x until dart >=2.18 is legacy
git: '>=2.0.0 <2.1.0'
http: ^0.13.3
http: '>=0.13.3 <2.0.0'
http_multi_server: ^3.0.1
meta: ^1.3.0
path: ^1.8.0
Expand Down

0 comments on commit e37dd83

Please sign in to comment.