Skip to content

Commit

Permalink
Dart 2.17 (#142)
Browse files Browse the repository at this point in the history
* Run mono_repo for beta channel

* Run CI on beta branch

* Run CI on beta branch

* Run dart pub upgrade --major-versions

* parameters only works on the beta channel

* run mono_repo generate

* Only run tests on beta channel

* add http to pubspec

* use beta for container_docker_test action

* use beta channel for container_docker_test

* set CI to stable channel

* Update server/simple/Dockerfile

Co-authored-by: Parker Lougheed <parlough@gmail.com>

* remove pubspec.lock

Co-authored-by: Parker Lougheed <parlough@gmail.com>
  • Loading branch information
johnpryan and parlough authored May 11, 2022
1 parent 3f933a1 commit aec34fa
Show file tree
Hide file tree
Showing 35 changed files with 254 additions and 172 deletions.
317 changes: 196 additions & 121 deletions .github/workflows/dart.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion command_line/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
4 changes: 2 additions & 2 deletions command_line/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ environment:
dependencies:
args: ^2.0.0
build_cli_annotations: ^2.0.0
github: ^8.0.1
github: ^9.2.0
intl: ^0.17.0

dev_dependencies:
build_cli: ^2.0.0
build_runner: ^2.0.6
lints: ^1.0.0
lints: ^2.0.0
test: ^1.6.0

executables:
Expand Down
5 changes: 2 additions & 3 deletions enhanced_enums/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Files and directories created by pub.
.dart_tool/
.packages

# Conventional directory for build output.
pubspec.lock
build/
doc/api/
10 changes: 10 additions & 0 deletions enhanced_enums/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sdk:
- stable
- dev

stages:
- analysis:
- analyze: --fatal-infos .
- format
- unit_test:
- test
2 changes: 1 addition & 1 deletion enhanced_enums/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ environment:
sdk: '>=2.17.0-182.1.beta <3.0.0'

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.16.0
2 changes: 1 addition & 1 deletion extension_methods/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion extension_methods/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.6.0
2 changes: 2 additions & 0 deletions ffi/hello_world/hello.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ void main() {
// Open the dynamic library
var libraryPath =
path.join(Directory.current.path, 'hello_library', 'libhello.so');

if (Platform.isMacOS) {
libraryPath =
path.join(Directory.current.path, 'hello_library', 'libhello.dylib');
}

if (Platform.isWindows) {
libraryPath = path.join(
Directory.current.path, 'hello_library', 'Debug', 'hello.dll');
Expand Down
2 changes: 1 addition & 1 deletion ffi/hello_world/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion ffi/hello_world/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
path: ^1.8.0

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.16.0
# test_utils depends on code elsewhere in the samples repository.
# You can reference it for useful cross-platform testing functionality
Expand Down
2 changes: 1 addition & 1 deletion ffi/primitives/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion ffi/primitives/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
path: ^1.8.0

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.16.0
# test_utils depends on code elsewhere in the samples repository.
# You can reference it for useful cross-platform testing functionality
Expand Down
2 changes: 1 addition & 1 deletion ffi/structs/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion ffi/structs/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
path: ^1.8.0

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.16.0
# test_utils depends on code elsewhere in the samples repository.
# You can reference it for useful cross-platform testing functionality
Expand Down
2 changes: 1 addition & 1 deletion ffi/system-command/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion ffi/system-command/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ dependencies:
ffi: ^1.0.0

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.16.0
2 changes: 1 addition & 1 deletion ffi/test_utils/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion ffi/test_utils/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ dependencies:
path: ^1.8.0

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
2 changes: 1 addition & 1 deletion isolates/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- stable
- dev
- 2.15.0-268.18.beta

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion isolates/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ environment:
sdk: '>=2.15.0-268.18.beta <3.0.0'

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.16.0
6 changes: 5 additions & 1 deletion mono_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
# that everything is up to date
self_validate: true
github:
cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.”
on:
push:
branches:
- main
- master

# Merges all analyze stages into one bot, which is more efficient
merge_stages:
Expand Down
2 changes: 1 addition & 1 deletion native_app/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion native_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0

executables:
main: hello_world
2 changes: 2 additions & 0 deletions null_safety/calculate_lix/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pubspec.lock

# Files and directories used by the Dart SDK
.dart_tool/
.packages
Expand Down
2 changes: 1 addition & 1 deletion null_safety/calculate_lix/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
19 changes: 0 additions & 19 deletions null_safety/calculate_lix/pubspec.lock

This file was deleted.

2 changes: 1 addition & 1 deletion null_safety/calculate_lix/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ dependencies:
collection: ^1.15.0

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
8 changes: 8 additions & 0 deletions parameters/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sdk:
- stable
- dev

stages:
- analysis:
- analyze: --fatal-infos .
- format
2 changes: 1 addition & 1 deletion parameters/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ environment:
sdk: '>=2.17.0-182.1.beta <3.0.0'

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
test: ^1.16.0
2 changes: 1 addition & 1 deletion server/google_apis/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
3 changes: 2 additions & 1 deletion server/google_apis/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
googleapis_auth: ^1.1.0
shelf: ^1.0.0
shelf_router: ^1.0.0
http: ^0.13.0

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.0
2 changes: 1 addition & 1 deletion server/simple/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sdk:
- dev
- stable
- dev

stages:
- analysis:
Expand Down
2 changes: 1 addition & 1 deletion server/simple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ dependencies:

dev_dependencies:
http: ^0.13.0
lints: ^1.0.0
lints: ^2.0.0
test: ^1.15.0
test_process: ^2.0.0
2 changes: 1 addition & 1 deletion tool/ci.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Created with package:mono_repo v6.2.0
# Created with package:mono_repo v6.2.2

# Support built in commands on windows out of the box.
# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")
Expand Down

0 comments on commit aec34fa

Please sign in to comment.