Skip to content

Commit a59cbea

Browse files
authored
[os_detect] move to pkg:web, prepare publish (#850)
1 parent 48c3c45 commit a59cbea

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/os_detect.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ jobs:
6969
run: dart test --platform vm
7070
if: always() && steps.install.outcome == 'success'
7171
- name: Run Chrome tests
72-
run: dart test --platform chrome
72+
run: dart test --platform chrome --compiler dart2wasm,dart2js
7373
if: always() && steps.install.outcome == 'success'

pkgs/os_detect/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## 2.0.3-wip
1+
## 2.0.3
22

3+
- Move to `package:web`.
34
- Require Dart 3.5
45

56
## 2.0.2

pkgs/os_detect/lib/src/osid_html.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:html';
5+
import 'package:web/web.dart';
66

77
import 'os_kind.dart' show BrowserOS;
88
import 'os_override.dart';

pkgs/os_detect/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: os_detect
2-
version: 2.0.3-wip
2+
version: 2.0.3
33
description: Platform independent OS detection.
44
repository: https://github.com/dart-lang/core/tree/main/pkgs/os_detect
55
issue_tracker: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aos_detect
@@ -9,6 +9,7 @@ environment:
99

1010
dependencies:
1111
meta: ^1.9.0
12+
web: ^1.0.0
1213

1314
dev_dependencies:
1415
dart_flutter_team_lints: ^3.0.0

0 commit comments

Comments
 (0)