Skip to content

Commit

Permalink
Null safety migration (flutter#13)
Browse files Browse the repository at this point in the history
* Enable null safety experiment

* Update SDK constraint for null safety

* prep for merge to master (flutter#12)

Co-authored-by: Kevin Moore <kevmoo@google.com>
Co-authored-by: Jacob MacDonald <jakemac@google.com>
  • Loading branch information
3 people authored Jul 10, 2020
1 parent bb247e7 commit af1e2d5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: dart

dart:
- 2.0.0
- dev

dart_task:
- dart_analyzer: --fatal-warnings --fatal-infos .
- dart_analyzer: --enable-experiment=non-nullable --fatal-warnings --fatal-infos .

matrix:
include:
Expand All @@ -15,7 +14,7 @@ matrix:

# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]
only: [master, null_safety]

cache:
directories:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.0-nullsafety

- Opt in to null safety.

## 1.1.3

- Added example, fixed recommended lints.
Expand Down
4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false

enable-experiment:
- non-nullable

linter:
rules:
- avoid_empty_else
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: charcode
version: 1.1.3
version: 1.2.0-nullsafety
description: >-
Constants for ASCII and common non-ASCII character codes represented by
top-level constants.
homepage: https://github.com/dart-lang/charcode

environment:
sdk: '>=2.0.0 <3.0.0'
sdk: '>=2.9.0-18.0 <2.9.0'

dev_dependencies:
pedantic: ^1.0.0

0 comments on commit af1e2d5

Please sign in to comment.