Skip to content

Commit af1e2d5

Browse files
lrhnkevmoojakemac53
authored
Null safety migration (flutter#13)
* Enable null safety experiment * Update SDK constraint for null safety * prep for merge to master (flutter#12) Co-authored-by: Kevin Moore <[email protected]> Co-authored-by: Jacob MacDonald <[email protected]>
1 parent bb247e7 commit af1e2d5

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
language: dart
22

33
dart:
4-
- 2.0.0
54
- dev
65

76
dart_task:
8-
- dart_analyzer: --fatal-warnings --fatal-infos .
7+
- dart_analyzer: --enable-experiment=non-nullable --fatal-warnings --fatal-infos .
98

109
matrix:
1110
include:
@@ -15,7 +14,7 @@ matrix:
1514

1615
# Only building master means that we don't run two builds for each pull request.
1716
branches:
18-
only: [master]
17+
only: [master, null_safety]
1918

2019
cache:
2120
directories:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.0-nullsafety
2+
3+
- Opt in to null safety.
4+
15
## 1.1.3
26

37
- Added example, fixed recommended lints.

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ include: package:pedantic/analysis_options.yaml
22
analyzer:
33
strong-mode:
44
implicit-casts: false
5+
6+
enable-experiment:
7+
- non-nullable
8+
59
linter:
610
rules:
711
- avoid_empty_else

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: charcode
2-
version: 1.1.3
2+
version: 1.2.0-nullsafety
33
description: >-
44
Constants for ASCII and common non-ASCII character codes represented by
55
top-level constants.
66
homepage: https://github.com/dart-lang/charcode
77

88
environment:
9-
sdk: '>=2.0.0 <3.0.0'
9+
sdk: '>=2.9.0-18.0 <2.9.0'
1010

1111
dev_dependencies:
1212
pedantic: ^1.0.0

0 commit comments

Comments
 (0)