Skip to content

Commit 50bff41

Browse files
authored
merge null safety branch into master (flutter#13)
1 parent 826fea4 commit 50bff41

File tree

5 files changed

+95
-17
lines changed

5 files changed

+95
-17
lines changed

.travis.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
language: dart
22

33
dart:
4-
- dev
5-
- stable
4+
- dev
65

7-
dart_task:
8-
- test
9-
10-
matrix:
6+
jobs:
117
include:
12-
# Only validate formatting,analyzer using the dev release
13-
- dart: dev
14-
dart_task: dartfmt
15-
- dart: dev
16-
dart_task: dartanalyzer
8+
- stage: analyze_and_format
9+
name: "Analyze test/"
10+
dart: dev
11+
os: linux
12+
script: dartanalyzer --enable-experiment=non-nullable --fatal-warnings --fatal-infos .
13+
- stage: analyze_and_format
14+
name: "Format"
15+
dart: dev
16+
os: linux
17+
script: dartfmt -n --set-exit-if-changed .
18+
- stage: test
19+
name: "Vm Tests"
20+
dart: dev
21+
os: linux
22+
script: pub run --enable-experiment=non-nullable test -p vm
23+
24+
stages:
25+
- analyze_and_format
26+
- test
1727

1828
# Only building master means that we don't run two builds for each pull request.
1929
branches:
20-
only: [master]
30+
only: [master, null_safety]
2131

2232
cache:
2333
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+
* Update to null safety. All apis require non-nullable types.
4+
15
## 1.1.0
26

37
* Add a `GlyphSet` class that can be used to easily choose which set of glyphs

analysis_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include: package:pedantic/analysis_options.yaml
2+
analyzer:
3+
enable-experiment:
4+
- non-nullable

pubspec.yaml

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,76 @@
11
name: term_glyph
2-
version: 1.1.1-dev
2+
version: 1.2.0-nullsafety
33

44
description: Useful Unicode glyphs and ASCII substitutes.
55
homepage: https://github.com/dart-lang/term_glyph
66

77
environment:
8-
sdk: '>=1.8.0 <3.0.0'
8+
sdk: '>=2.9.0-18.0 <2.9.0'
99

1010
dev_dependencies:
1111
csv: '>=3.0.0 <5.0.0'
1212
dart_style: '>=0.2.0 <2.0.0'
13-
meta: '>=0.9.0 <2.0.0'
1413
test: '>=0.12.0 <2.0.0'
14+
15+
dependency_overrides:
16+
async:
17+
git:
18+
url: git://github.com/dart-lang/async.git
19+
ref: null_safety
20+
boolean_selector:
21+
git:
22+
url: git://github.com/dart-lang/boolean_selector.git
23+
ref: null_safety
24+
charcode:
25+
git:
26+
url: git://github.com/dart-lang/charcode.git
27+
ref: null_safety
28+
collection: 1.15.0-nullsafety
29+
matcher:
30+
git:
31+
url: git://github.com/dart-lang/matcher.git
32+
ref: null_safety
33+
meta: 1.3.0-nullsafety
34+
path:
35+
git:
36+
url: git://github.com/dart-lang/path.git
37+
ref: null_safety
38+
pedantic:
39+
git:
40+
url: git://github.com/dart-lang/pedantic.git
41+
ref: null_safety
42+
pool:
43+
git:
44+
url: git://github.com/dart-lang/pool.git
45+
ref: null_safety
46+
source_span:
47+
git:
48+
url: git://github.com/dart-lang/source_span.git
49+
ref: null_safety
50+
stack_trace:
51+
git:
52+
url: git://github.com/dart-lang/stack_trace.git
53+
ref: null_safety
54+
stream_channel:
55+
git:
56+
url: git://github.com/dart-lang/stream_channel.git
57+
ref: null_safety
58+
string_scanner:
59+
git:
60+
url: git://github.com/dart-lang/string_scanner.git
61+
ref: null_safety
62+
test_api:
63+
git:
64+
url: git://github.com/dart-lang/test.git
65+
ref: null_safety
66+
path: pkgs/test_api
67+
test_core:
68+
git:
69+
url: git://github.com/dart-lang/test.git
70+
ref: null_safety
71+
path: pkgs/test_core
72+
test:
73+
git:
74+
url: git://github.com/dart-lang/test.git
75+
ref: null_safety
76+
path: pkgs/test

tool/generate.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import 'dart:io';
66

77
import 'package:csv/csv.dart';
8-
import 'package:meta/meta.dart';
98

109
void main() {
1110
var csv = CsvCodec(eol: '\n');
@@ -83,7 +82,7 @@ void _writeGlyphSetInterface(List<List> data) {
8382
///
8483
/// If [ascii] is `true`, this writes the ASCII glyph set. Otherwise it writes
8584
/// the Unicode glyph set.
86-
void _writeGlyphSet(List<List> data, {@required bool ascii}) {
85+
void _writeGlyphSet(List<List> data, {required bool ascii}) {
8786
var file =
8887
File('lib/src/generated/${ascii ? "ascii" : "unicode"}_glyph_set.dart')
8988
.openSync(mode: FileMode.write);

0 commit comments

Comments
 (0)