This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge null_safety branch into master (#28)
* Migrate package to Null Safety. - Update CHANGELOG.md. - Add unsound entry point for test, so it can be run. - Update SDK dependency to 2.9.0-1 - Updates travis config to run nnbd tests/analysis - Adds dependency overrides so tests can be ran in null safety mode - Updates package version to expected pre-release version - Updates sdk constraints to restrict to dev sdks with the allow list Co-authored-by @lrhn.
- Loading branch information
Showing
9 changed files
with
828 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,38 @@ | ||
language: dart | ||
dart: | ||
- dev | ||
- stable | ||
# Only building master means that we don't run two builds for each pull request. | ||
dart_task: | ||
- test: --platform vm,chrome | ||
- dartanalyzer | ||
- dartfmt | ||
|
||
jobs: | ||
include: | ||
- stage: analyze_and_format | ||
name: "Analyze lib/ (no experiment flag)" | ||
dart: dev | ||
os: linux | ||
script: dartanalyzer --fatal-warnings --fatal-infos lib/ | ||
- stage: analyze_and_format | ||
name: "Analyze (with experiment flag)" | ||
dart: dev | ||
os: linux | ||
script: dartanalyzer --enable-experiment=non-nullable --fatal-warnings --fatal-infos . | ||
- stage: analyze_and_format | ||
name: "Format" | ||
dart: dev | ||
os: linux | ||
script: dartfmt -n --set-exit-if-changed . | ||
- stage: test | ||
name: "Vm Tests" | ||
dart: dev | ||
os: linux | ||
script: pub run --enable-experiment=non-nullable test -p vm | ||
- stage: test | ||
name: "Web Tests" | ||
dart: dev | ||
os: linux | ||
script: pub run --enable-experiment=non-nullable test -p chrome | ||
|
||
branches: | ||
only: [master] | ||
only: [master, null_safety] | ||
|
||
cache: | ||
directories: | ||
- $HOME/.pub-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,96 @@ | ||
name: characters | ||
version: 1.0.0 | ||
version: 1.1.0-nullsafety | ||
description: String replacement with operations that are Unicode/grapheme cluster aware. | ||
homepage: https://www.github.com/dart-lang/characters | ||
|
||
environment: | ||
sdk: ">=2.6.0 <3.0.0" | ||
# This must remain a tight constraint (only allow dev versions) until nnbd is | ||
# stable. | ||
sdk: '>=2.9.0-18.0 <2.9.0' | ||
|
||
dev_dependencies: | ||
test: "^1.6.0" | ||
pedantic: ^1.9.0 | ||
|
||
dependency_overrides: | ||
async: | ||
git: | ||
url: git://github.com/dart-lang/async.git | ||
ref: null_safety | ||
boolean_selector: | ||
git: | ||
url: git://github.com/dart-lang/boolean_selector.git | ||
ref: null_safety | ||
charcode: | ||
git: | ||
url: git://github.com/dart-lang/charcode.git | ||
ref: null_safety | ||
collection: | ||
git: git://github.com/dart-lang/collection.git | ||
js: | ||
git: | ||
url: git://github.com/dart-lang/sdk.git | ||
path: pkg/js | ||
matcher: | ||
git: | ||
url: git://github.com/dart-lang/matcher.git | ||
ref: null_safety | ||
meta: | ||
git: | ||
url: git://github.com/dart-lang/sdk.git | ||
path: pkg/meta | ||
path: | ||
git: | ||
url: git://github.com/dart-lang/path.git | ||
ref: null_safety | ||
pedantic: | ||
git: | ||
url: git://github.com/dart-lang/pedantic.git | ||
ref: null_safety | ||
pool: | ||
git: | ||
url: git://github.com/dart-lang/pool.git | ||
ref: null_safety | ||
source_maps: | ||
git: | ||
url: git://github.com/dart-lang/source_maps.git | ||
ref: null_safety | ||
source_map_stack_trace: | ||
git: | ||
url: git://github.com/dart-lang/source_map_stack_trace.git | ||
ref: null_safety | ||
source_span: | ||
git: | ||
url: git://github.com/dart-lang/source_span.git | ||
ref: null_safety | ||
stack_trace: | ||
git: | ||
url: git://github.com/dart-lang/stack_trace.git | ||
ref: null_safety | ||
stream_channel: | ||
git: | ||
url: git://github.com/dart-lang/stream_channel.git | ||
ref: null_safety | ||
string_scanner: | ||
git: | ||
url: git://github.com/dart-lang/string_scanner.git | ||
ref: null_safety | ||
term_glyph: | ||
git: | ||
url: git://github.com/dart-lang/term_glyph.git | ||
ref: null_safety | ||
test_api: | ||
git: | ||
url: git://github.com/dart-lang/test.git | ||
ref: null_safety | ||
path: pkgs/test_api | ||
test_core: | ||
git: | ||
url: git://github.com/dart-lang/test.git | ||
ref: null_safety | ||
path: pkgs/test_core | ||
test: | ||
git: | ||
url: git://github.com/dart-lang/test.git | ||
ref: null_safety | ||
path: pkgs/test |
Oops, something went wrong.