Skip to content

Commit 4957da3

Browse files
stuartmorgan-gadsonpleal
authored andcommitted
[espresso] Update SDK requirement for null-safety (flutter#3614)
1 parent 3386ddc commit 4957da3

File tree

5 files changed

+13
-50
lines changed

5 files changed

+13
-50
lines changed

packages/espresso/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.0
2+
3+
* Update SDK requirement for null-safety compatibility.
4+
15
## 0.0.1+9
26

37
* Update Flutter SDK constraint.

packages/espresso/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MyApp extends StatelessWidget {
2727
}
2828

2929
class _MyHomePage extends StatefulWidget {
30-
_MyHomePage({Key key, this.title}) : super(key: key);
30+
_MyHomePage({Key? key, required this.title}) : super(key: key);
3131

3232
// This widget is the home page of your application. It is stateful, meaning
3333
// that it has a State object (defined below) that contains fields that affect

packages/espresso/example/pubspec.yaml

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@ description: Demonstrates how to use the espresso plugin.
33
publish_to: 'none'
44

55
environment:
6-
sdk: ">=2.1.0 <3.0.0"
6+
sdk: ">=2.12.0-259.9.beta <3.0.0"
7+
flutter: ">=1.20.0"
78

89
dependencies:
910
flutter:
1011
sdk: flutter
1112

12-
# The following adds the Cupertino Icons font to your application.
13-
# Use with the CupertinoIcons class for iOS style icons.
14-
cupertino_icons: ^0.1.2
15-
1613
dev_dependencies:
1714
flutter_test:
1815
sdk: flutter
1916
flutter_driver:
2017
sdk: flutter
21-
pedantic: ^1.8.0
18+
pedantic: ^1.10.0
2219

2320
espresso:
2421
# When depending on this package from a real application you should use:
@@ -28,44 +25,5 @@ dev_dependencies:
2825
# the parent directory to use the current plugin's version.
2926
path: ../
3027

31-
# For information on the generic Dart part of this file, see the
32-
# following page: https://dart.dev/tools/pub/pubspec
33-
34-
# The following section is specific to Flutter.
3528
flutter:
36-
37-
# The following line ensures that the Material Icons font is
38-
# included with your application, so that you can use the icons in
39-
# the material Icons class.
4029
uses-material-design: true
41-
42-
# To add assets to your application, add an assets section, like this:
43-
# assets:
44-
# - images/a_dot_burr.jpeg
45-
# - images/a_dot_ham.jpeg
46-
47-
# An image asset can refer to one or more resolution-specific "variants", see
48-
# https://flutter.dev/assets-and-images/#resolution-aware.
49-
50-
# For details regarding adding assets from package dependencies, see
51-
# https://flutter.dev/assets-and-images/#from-packages
52-
53-
# To add custom fonts to your application, add a fonts section here,
54-
# in this "flutter" section. Each entry in this list should have a
55-
# "family" key with the font family name, and a "fonts" key with a
56-
# list giving the asset and other descriptors for the font. For
57-
# example:
58-
# fonts:
59-
# - family: Schyler
60-
# fonts:
61-
# - asset: fonts/Schyler-Regular.ttf
62-
# - asset: fonts/Schyler-Italic.ttf
63-
# style: italic
64-
# - family: Trajan Pro
65-
# fonts:
66-
# - asset: fonts/TrajanPro.ttf
67-
# - asset: fonts/TrajanPro_Bold.ttf
68-
# weight: 700
69-
#
70-
# For details regarding fonts from package dependencies,
71-
# see https://flutter.dev/custom-fonts/#from-packages

packages/espresso/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: espresso
22
description: Java classes for testing Flutter apps using Espresso.
3-
version: 0.0.1+9
3+
version: 0.1.0
44
homepage: https://github.com/flutter/plugins/espresso
55

66
environment:
7-
sdk: ">=2.1.0 <3.0.0"
8-
flutter: ">=1.10.0"
7+
sdk: ">=2.12.0-259.9.beta <3.0.0"
8+
flutter: ">=1.20.0"
99

1010
dependencies:
1111
flutter:
@@ -14,7 +14,7 @@ dependencies:
1414
dev_dependencies:
1515
flutter_test:
1616
sdk: flutter
17-
pedantic: ^1.8.0
17+
pedantic: ^1.10.0
1818

1919
# The following section is specific to Flutter.
2020
flutter:

script/nnbd_plugins.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ readonly NNBD_PLUGINS_LIST=(
1313
"connectivity"
1414
"cross_file"
1515
"device_info"
16+
"espresso"
1617
"file_selector"
1718
"flutter_plugin_android_lifecycle"
1819
"flutter_webview"

0 commit comments

Comments
 (0)