Skip to content

Commit 64a2a5d

Browse files
authored
Merge branch 'main' into merge-os_detect-package
2 parents 9d22591 + 8151b9f commit 64a2a5d

File tree

21 files changed

+1683
-4
lines changed

21 files changed

+1683
-4
lines changed

.github/ISSUE_TEMPLATE/args.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: "package:args"
3+
about: "Create a bug or file a feature request against package:args."
4+
labels: "package:args"
5+
---

.github/ISSUE_TEMPLATE/logging.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: "package:logging"
3+
about: "Create a bug or file a feature request against package:logging."
4+
labels: "package:logging"
5+
---

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
- changed-files:
2525
- any-glob-to-any-file: 'pkgs/fixnum/**'
2626

27+
"package:logging":
28+
- changed-files:
29+
- any-glob-to-any-file: 'pkgs/logging/**'
30+
2731
"package:os_detect":
2832
- changed-files:
2933
- any-glob-to-any-file: 'pkgs/os_detect/**'

.github/workflows/logging.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: package:logging
2+
3+
on:
4+
# Run CI on pushes to the main branch, and on PRs against main.
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/logging.yaml'
9+
- 'pkgs/logging/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/logging.yaml'
14+
- 'pkgs/logging/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
env:
18+
PUB_ENVIRONMENT: bot.github
19+
20+
defaults:
21+
run:
22+
working-directory: pkgs/logging/
23+
24+
jobs:
25+
# Check code formatting and static analysis.
26+
analyze:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
sdk: [dev]
32+
steps:
33+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
34+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
35+
with:
36+
sdk: ${{ matrix.sdk }}
37+
- id: install
38+
name: Install dependencies
39+
run: dart pub get
40+
- name: Check formatting
41+
run: dart format --output=none --set-exit-if-changed .
42+
if: always() && steps.install.outcome == 'success'
43+
- name: Analyze code
44+
run: dart analyze --fatal-infos
45+
if: always() && steps.install.outcome == 'success'
46+
47+
# Run tests on a matrix of platforms and sdk versions.
48+
test:
49+
needs: analyze
50+
runs-on: ${{ matrix.os }}
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
# Add macos-latest and/or windows-latest if relevant for this package.
55+
os: [ubuntu-latest]
56+
sdk: [3.4, dev]
57+
steps:
58+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
59+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
60+
with:
61+
sdk: ${{ matrix.sdk }}
62+
- id: install
63+
name: Install dependencies
64+
run: dart pub get
65+
- name: Run VM tests
66+
run: dart test --platform vm
67+
if: always() && steps.install.outcome == 'success'
68+
- name: Run Chrome tests
69+
run: dart test --platform chrome
70+
if: always() && steps.install.outcome == 'success'

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ new file please also add this. The year should be a single number stating the
3838
year the file was created (don't use a range like "2011-2012"). Additionally, if
3939
you edit an existing file, you shouldn't update the year.
4040

41-
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
41+
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
4242
// for details. All rights reserved. Use of this source code is governed by a
4343
// BSD-style license that can be found in the LICENSE file.
4444

@@ -48,4 +48,4 @@ This project follows
4848
[Google's Open Source Community Guidelines](https://opensource.google/conduct/).
4949

5050
We pledge to maintain an open and welcoming environment. For details, see our
51-
[code of conduct](https://dart.dev/code-of-conduct).
51+
[code of conduct](https://dart.dev/code-of-conduct).

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This repository is home to various Dart packages under the [dart.dev](https://pu
1414
| [convert](pkgs/convert/) | Utilities for converting between data representations. | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) |
1515
| [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) |
1616
| [fixnum](pkgs/fixnum/) | Library for 32- and 64-bit signed fixed-width integers. | [![pub package](https://img.shields.io/pub/v/fixnum.svg)](https://pub.dev/packages/fixnum) |
17+
| [logging](pkgs/logging/) | Provides APIs for debugging and error logging. | [![pub package](https://img.shields.io/pub/v/logging.svg)](https://pub.dev/packages/logging) |
1718
| [os_detect](pkgs/os_detect/) | Platform independent OS detection. | [![pub package](https://img.shields.io/pub/v/os_detect.svg)](https://pub.dev/packages/os_detect) |
1819

1920
## Publishing automation

pkgs/args/example/arg_parser/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ name: arg_parser_example
66
version: 1.0.0
77
description: An example of using ArgParser
88
publish_to: 'none'
9+
910
environment:
10-
sdk: '>=2.14.0 <3.0.0'
11+
sdk: ^3.0.0
12+
1113
dependencies:
1214
args:
1315
path: ../..

pkgs/args/example/command_runner/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ name: command_runner_example
66
version: 1.0.0
77
description: An example of using CommandRunner
88
publish_to: 'none'
9+
910
environment:
10-
sdk: '>=2.14.0 <3.0.0'
11+
sdk: ^3.0.0
12+
1113
dependencies:
1214
args:
1315
path: ../..

pkgs/logging/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.dart_tool
2+
.packages
3+
pubspec.lock

pkgs/logging/AUTHORS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Names should be added to this file with this pattern:
2+
#
3+
# For individuals:
4+
# Name <email address>
5+
#
6+
# For organizations:
7+
# Organization <fnmatch pattern>
8+
#
9+
Google Inc. <*@google.com>
10+
Anton Astashov <[email protected]>

0 commit comments

Comments
 (0)