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

Commit 7b44ac5

Browse files
pull[bot]Chris Yangmvanbeusekomstuartmorgan-g
authored
[pull] master from flutter:master (#658)
* [connectivity_macos] move NNBD to stable (flutter#3588) * [cross_file] Stable null safety release (flutter#3593) * [shared_preferences] Bump platform versions to NNBD stable (flutter#3595) * [url_launcher] Update platforms to NNBD stable (flutter#3584) Updates all versions to stable. Converts all desktop examples to null-safety, and migrates Linux and macOS to use platform interface for examples rather than app-facing package to eliminate circular dependencies (implementation copied directly from Windows). * [battery] Bump version for NNBD stable (flutter#3594) Also replaces Mockito with test/Fake since the usage is a simple fake. * [path_provider] Update to stable NNBD (flutter#3582) Bumps the versions in the app-facing package to make it stable NNBD. Changes the interface of four core methods to non-nullable, and adds a new exceptions if they aren't provided by the platform implementations. The list is somewhat arbitrary, but these seem like the four that are core enough that any implementation should either provide them, or explicitly say they don't have such a concept via UnsupportedError, since there isn't an obvious way for a developer to fall back if they are unexpectedly missing. * [connectivity_macos] fix version (flutter#3599) * [google_maps_flutter] Bump platform interface version for NNBD stable (flutter#3598) * [device_info_platform_interface] null safety stable release (flutter#3597) * [share] Bump version for NNBD stable (flutter#3600) * [android_intent] Bump version for NNBD stable (flutter#3601) * [shared_preferences] Bump app-facing version for NNBD stable (flutter#3602) Co-authored-by: Chris Yang <ychris@google.com> Co-authored-by: Maurits van Beusekom <maurits@baseflow.com> Co-authored-by: stuartmorgan <stuartmorgan@google.com>
1 parent 9d00dd2 commit 7b44ac5

File tree

67 files changed

+406
-550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+406
-550
lines changed

packages/android_intent/CHANGELOG.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
## 2.0.0-nullsafety.2
2-
3-
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.
4-
5-
## 2.0.0-nullsafety.1
6-
7-
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))
8-
9-
## 2.0.0-nullsafety
1+
## 2.0.0
102

113
* Migrate to null safety.
4+
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))
5+
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.
126

137
## 0.3.7+8
148

packages/android_intent/example/integration_test/android_intent_test.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// @dart = 2.9
6+
17
import 'dart:io';
28

39
import 'package:android_intent/android_intent.dart';

packages/android_intent/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ dev_dependencies:
1717
path: ../../integration_test
1818
flutter_driver:
1919
sdk: flutter
20-
pedantic: ^1.8.0
20+
pedantic: ^1.10.0
2121

2222
# The following section is specific to Flutter.
2323
flutter:
2424
uses-material-design: true
2525

2626
environment:
27-
sdk: ">=2.3.0 <3.0.0"
27+
sdk: ">=2.12.0-259.9.beta <3.0.0"
2828
flutter: ">=1.12.13+hotfix.5"

packages/android_intent/example/test_driver/integration_test.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// @dart = 2.9
6+
17
import 'dart:async';
28
import 'dart:convert';
39
import 'dart:io';
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: android_intent
22
description: Flutter plugin for launching Android Intents. Not supported on iOS.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/android_intent
4-
version: 2.0.0-nullsafety.2
4+
version: 2.0.0
55

66
flutter:
77
plugin:
@@ -13,15 +13,15 @@ flutter:
1313
dependencies:
1414
flutter:
1515
sdk: flutter
16-
platform: ^3.0.0-nullsafety.4
17-
meta: ^1.3.0-nullsafety.6
16+
platform: ^3.0.0
17+
meta: ^1.3.0
1818
dev_dependencies:
19-
test: ^1.16.0-nullsafety.13
20-
mockito: ^4.1.3
19+
test: ^1.16.3
20+
mockito: ^5.0.0-nullsafety.7
2121
flutter_test:
2222
sdk: flutter
23-
pedantic: ^1.10.0-nullsafety.1
23+
pedantic: ^1.10.0
2424

2525
environment:
26-
sdk: ">=2.12.0-0 <3.0.0"
26+
sdk: ">=2.12.0-259.9.beta <3.0.0"
2727
flutter: ">=1.12.13+hotfix.5"

packages/battery/battery/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 2.0.0-nullsafety
1+
## 2.0.0
22

33
* Migrate to null safety.
44

packages/battery/battery/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ dev_dependencies:
1717
sdk: flutter
1818
integration_test:
1919
path: ../../../integration_test
20-
pedantic: ^1.10.0-nullsafety
20+
pedantic: ^1.10.0
2121

2222
flutter:
2323
uses-material-design: true
2424

2525
environment:
26-
sdk: ">=2.12.0-0 <3.0.0"
26+
sdk: ">=2.12.0-259.9.beta <3.0.0"
2727
flutter: ">=1.12.13+hotfix.5"

packages/battery/battery/pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: battery
22
description: Flutter plugin for accessing information about the battery state
33
(full, charging, discharging) on Android and iOS.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/battery/battery
5-
version: 2.0.0-nullsafety
5+
version: 2.0.0
66

77
flutter:
88
plugin:
@@ -16,18 +16,18 @@ flutter:
1616
dependencies:
1717
flutter:
1818
sdk: flutter
19-
meta: ^1.3.0-nullsafety
20-
battery_platform_interface: ^2.0.0-nullsafety
19+
meta: ^1.3.0
20+
battery_platform_interface: ^2.0.0
2121

2222
dev_dependencies:
23-
mockito: ^5.0.0-nullsafety.0
2423
flutter_test:
2524
sdk: flutter
26-
plugin_platform_interface: ^1.1.0-nullsafety
25+
plugin_platform_interface: ">=1.0.0 <3.0.0"
2726
integration_test:
2827
path: ../../integration_test
29-
pedantic: ^1.10.0-nullsafety
28+
pedantic: ^1.10.0
29+
test: ^1.16.3
3030

3131
environment:
32-
sdk: ">=2.12.0-0 <3.0.0"
32+
sdk: ">=2.12.0-259.9.beta <3.0.0"
3333
flutter: ">=1.12.13+hotfix.5"

packages/battery/battery/test/battery_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
import 'dart:async';
66

7+
import 'package:battery/battery.dart';
78
import 'package:battery_platform_interface/battery_platform_interface.dart';
89
import 'package:flutter_test/flutter_test.dart';
910
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
10-
import 'package:battery/battery.dart';
11-
import 'package:mockito/mockito.dart';
11+
import 'package:test/fake.dart';
1212

1313
void main() {
1414
group('battery', () {
@@ -30,7 +30,7 @@ void main() {
3030
});
3131
}
3232

33-
class MockBatteryPlatform extends Mock
33+
class MockBatteryPlatform extends Fake
3434
with MockPlatformInterfaceMixin
3535
implements BatteryPlatform {
3636
Future<int> batteryLevel() async {

packages/connectivity/connectivity_macos/CHANGELOG.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
## 2.0.0-nullsafety
2-
3-
* Update version to (semi-belatedly) meet 1.0-consistency promise.
4-
5-
## 0.2.0-nullsafety.1
1+
## 0.2.0
62

73
* Remove placeholder Dart file.
8-
9-
## 0.2.0-nullsafety
10-
11-
* Update Dart SDK constraint.
4+
* Update Dart SDK constraint for compatibility with null safety.
125

136
## 0.1.0+8
147

0 commit comments

Comments
 (0)