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

fix: update all Dart SDK version constraints to Dart >= 2.16.0 #8184

Merged
merged 3 commits into from Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/firestore-odm/overview.mdx
Expand Up @@ -38,7 +38,7 @@ That is done by adding the following to your `pubspec.yaml`:

```yaml
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
```

### 2. FlutterFire Initialization
Expand Down
Expand Up @@ -2,7 +2,7 @@ name: cloud_firestore_example
description: Demonstrates how to use the firestore plugin.

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.16.0 <3.0.0'
flutter: '>=1.12.13+hotfix.4'

dependencies:
Expand Down
Expand Up @@ -8,5 +8,6 @@ class LoadBundleTask {
final LoadBundleTaskPlatform _delegate;

late final Stream<LoadBundleTaskSnapshot> stream =
// ignore: unnecessary_lambdas, false positive, event is dynamic
_delegate.stream.map((event) => LoadBundleTaskSnapshot._(event));
}
2 changes: 1 addition & 1 deletion packages/cloud_firestore/cloud_firestore/pubspec.yaml
Expand Up @@ -11,7 +11,7 @@ false_secrets:
- dartpad/**

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5"

dependencies:
Expand Down
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/c
repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore_platform_interface

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.9.1+hotfix.5"

dependencies:
Expand Down
Expand Up @@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
group('$SetOptions', () {
test('throws if no options are provided', () {
expect(() => SetOptions(), throwsAssertionError);
expect(SetOptions.new, throwsAssertionError);
});

test('throws if mergeFields contains invalid values', () {
Expand Down
2 changes: 1 addition & 1 deletion packages/cloud_firestore/cloud_firestore_web/pubspec.yaml
Expand Up @@ -6,7 +6,7 @@ repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages
version: 2.6.9

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4"

dependencies:
Expand Down
Expand Up @@ -3,7 +3,7 @@ version: 1.0.0-dev.1
publish_to: none

environment:
sdk: ">=2.14.0-0.0.dev <3.0.0"
sdk: ">=2.16.0 <3.0.0"

dependencies:
cloud_firestore:
Expand Down
Expand Up @@ -8,7 +8,7 @@ false_secrets:
- example/**

environment:
sdk: ">=2.14.0-0.0.dev <3.0.0"
sdk: ">=2.16.0 <3.0.0"

dependencies:
cloud_firestore: ^3.1.9
Expand Down
Expand Up @@ -14,7 +14,7 @@ class FakeCollectionReference<Value>
Future<FakeQuerySnapshot<Value>> get([GetOptions? options]) async {
return FakeQuerySnapshot<Value>(
valueListenable.value
.map((e) => FakeFirestoreQueryDocumentSnapshot(e))
.map(FakeFirestoreQueryDocumentSnapshot.new)
.toList(),
);
}
Expand All @@ -30,7 +30,7 @@ class FakeCollectionReference<Value>
controller.add(
FakeQuerySnapshot<Value>(
valueListenable.value
.map((e) => FakeFirestoreQueryDocumentSnapshot(e))
.map(FakeFirestoreQueryDocumentSnapshot.new)
.toList(),
),
);
Expand Down
Expand Up @@ -3,7 +3,7 @@ version: 1.0.0-dev.1
publish_to: none

environment:
sdk: ">=2.14.0-0.0.dev <3.0.0"
sdk: ">=2.16.0 <3.0.0"

dependencies:
cloud_firestore: ^3.1.9
Expand Down
Expand Up @@ -5,7 +5,7 @@ repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages
version: 1.0.0-dev.9

environment:
sdk: ">=2.14.0-0.0.dev <3.0.0"
sdk: ">=2.16.0 <3.0.0"

dependencies:
analyzer: ^2.0.0
Expand Down
Expand Up @@ -2,7 +2,7 @@ name: cloud_functions_example
description: Demonstrates how to use the cloud_functions plugin.

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.16.0 <3.0.0'
flutter: '>=1.12.13+hotfix.4'

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/cloud_functions/cloud_functions/pubspec.yaml
Expand Up @@ -8,7 +8,7 @@ false_secrets:
- example/**

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5"

dependencies:
Expand Down
Expand Up @@ -8,7 +8,7 @@ repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages
version: 5.1.0

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.9.1+hotfix.5"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/cloud_functions/cloud_functions_web/pubspec.yaml
Expand Up @@ -6,7 +6,7 @@ repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages
version: 4.2.8

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4"

dependencies:
Expand Down
Expand Up @@ -2,7 +2,7 @@ name: firebase_analytics_example
description: Demonstrates how to use the firebase_analytics plugin.

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5"

dependencies:
Expand Down
Expand Up @@ -10,7 +10,7 @@ false_secrets:
- example/**

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.16.0 <3.0.0'
flutter: '>=1.12.13+hotfix.5'

dependencies:
Expand Down
Expand Up @@ -5,7 +5,7 @@ repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages
version: 3.1.0

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.16.0 <3.0.0'
flutter: '>=1.9.1+hotfix.5'

dependencies:
Expand Down
Expand Up @@ -5,7 +5,7 @@ repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages
version: 0.4.0+7

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.16.0 <3.0.0'
flutter: '>=1.12.13+hotfix.4'

dependencies:
Expand Down
Expand Up @@ -6,7 +6,7 @@ publish_to: "none"
version: 1.0.0+1

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"

dependencies:
cupertino_icons: ^0.1.2
Expand Down
Expand Up @@ -8,7 +8,7 @@ false_secrets:
- example/**

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.20.0"

dependencies:
Expand Down
Expand Up @@ -4,7 +4,7 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/f
version: 0.0.4

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.20.0"

dependencies:
Expand Down
Expand Up @@ -4,7 +4,7 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/f
version: 0.0.5+6

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.20.0"

dependencies:
Expand Down
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.16.0 <3.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
Expand Up @@ -9,7 +9,7 @@ false_secrets:
- example/**

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.20.0"

dependencies:
Expand Down
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/f
repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_app_installations/firebase_app_installations_platform_interface

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.17.0"

dependencies:
Expand Down
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/f
repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_app_installations/firebase_app_installations_web

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.16.0 <3.0.0'
flutter: '>=1.20.0'

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_auth/firebase_auth/example/pubspec.yaml
Expand Up @@ -2,7 +2,7 @@ name: firebase_auth_example
description: Demonstrates how to use the firebase_auth plugin.

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"

dependencies:
firebase_auth:
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_auth/firebase_auth/pubspec.yaml
Expand Up @@ -10,7 +10,7 @@ false_secrets:
- example/**

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5"

dependencies:
Expand Down
Expand Up @@ -7,7 +7,7 @@ repository: https://github.com/FirebaseExtended/flutterfire/tree/master/packages
version: 6.2.0

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=1.9.1+hotfix.5"

dependencies:
Expand Down