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

Commit

Permalink
[google_sign_in] Migrate to new pubspec plugins schema (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yang committed Dec 11, 2019
1 parent 729f457 commit 1e82c75
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
5 changes: 5 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,8 @@
## 4.1.0

* Support web by default.
* Require Flutter SDK `v1.12.13+hotfix.4` or greater.

## 4.0.17

* Add missing documentation and fix an unawaited future in the example app.
Expand Down
11 changes: 11 additions & 0 deletions packages/google_sign_in/google_sign_in/example/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="google-signin-client_id" content="159623150305-q05bbbtsutr02abhips3suj7hujfk4bg.apps.googleusercontent.com" />
<title>Google Sign-in Example</title>
</head>
<body>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
12 changes: 10 additions & 2 deletions packages/google_sign_in/google_sign_in/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_sign_in
description: Flutter plugin for Google Sign-In, a secure authentication system
for signing in with a Google account on Android and iOS.
homepage: https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in
version: 4.0.17
version: 4.1.0

flutter:
plugin:
Expand All @@ -12,12 +12,20 @@ flutter:
pluginClass: GoogleSignInPlugin
ios:
pluginClass: FLTGoogleSignInPlugin
web:
default_package: google_sign_in_web

dependencies:
google_sign_in_platform_interface: ^1.0.0
flutter:
sdk: flutter
meta: ^1.0.4
# The design on https://flutter.dev/go/federated-plugins was to leave
# this constraint as "any". We cannot do it right now as it fails pub publish
# validation, so we set a ^ constraint.
# TODO(amirh): Revisit this (either update this part in the design or the pub tool).
# https://github.com/flutter/flutter/issues/46264
google_sign_in_web: ^0.8.2

dev_dependencies:
http: ^0.12.0
Expand All @@ -26,4 +34,4 @@ dev_dependencies:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=1.10.0 <2.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"

0 comments on commit 1e82c75

Please sign in to comment.