Skip to content

Commit 42a6d33

Browse files
authored
[native assets] Graduate to preview (#2501)
1 parent 5ffcb36 commit 42a6d33

File tree

5 files changed

+24
-18
lines changed

5 files changed

+24
-18
lines changed

pkgs/test/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.26.2
2+
3+
* Graduate native assets from experiment to preview.
4+
15
## 1.26.1
26

37
* Set a debug name for test isolates.

pkgs/test/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 1.26.1
2+
version: 1.26.2
33
description: >-
44
A full featured library for writing and running Dart tests across platforms.
55
repository: https://github.com/dart-lang/test/tree/master/pkgs/test
@@ -37,7 +37,7 @@ dependencies:
3737

3838
# Use an exact version until the test_api and test_core package are stable.
3939
test_api: 0.7.6
40-
test_core: 0.6.10
40+
test_core: 0.6.11
4141

4242
typed_data: ^1.3.0
4343
web_socket_channel: '>=2.0.0 <4.0.0'
@@ -51,4 +51,4 @@ dev_dependencies:
5151
test_process: ^2.0.0
5252

5353
topics:
54-
- testing
54+
- testing

pkgs/test_core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.11
2+
3+
* Graduate native assets from experiment to preview.
4+
15
## 0.6.10
26

37
* Set a debug name for test isolates.

pkgs/test_core/lib/src/runner/vm/test_compiler.dart

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -154,19 +154,17 @@ class _TestCompilerForLanguageVersion {
154154
// If we have native assets for the host os in JIT mode, they are either
155155
// in the `.dart_tool/` in the root package or in the pub workspace.
156156
Uri? nativeAssetsYaml;
157-
if (enabledExperiments.contains('native-assets')) {
158-
final nativeAssetsYamlRootPackage =
159-
Directory.current.uri.resolve('.dart_tool/native_assets.yaml');
160-
final nativeAssetsYamlWorkspace =
161-
packageConfigUriAwaited.resolve('native_assets.yaml');
162-
for (final potentialNativeAssetsUri in [
163-
nativeAssetsYamlRootPackage,
164-
nativeAssetsYamlWorkspace
165-
]) {
166-
if (await File.fromUri(potentialNativeAssetsUri).exists()) {
167-
nativeAssetsYaml = potentialNativeAssetsUri;
168-
break;
169-
}
157+
final nativeAssetsYamlRootPackage =
158+
Directory.current.uri.resolve('.dart_tool/native_assets.yaml');
159+
final nativeAssetsYamlWorkspace =
160+
packageConfigUriAwaited.resolve('native_assets.yaml');
161+
for (final potentialNativeAssetsUri in [
162+
nativeAssetsYamlRootPackage,
163+
nativeAssetsYamlWorkspace
164+
]) {
165+
if (await File.fromUri(potentialNativeAssetsUri).exists()) {
166+
nativeAssetsYaml = potentialNativeAssetsUri;
167+
break;
170168
}
171169
}
172170

pkgs/test_core/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test_core
2-
version: 0.6.10
2+
version: 0.6.11
33
description: A basic library for writing tests and running them on the VM.
44
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core
55
issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest
@@ -29,7 +29,7 @@ dependencies:
2929
stream_channel: ^2.1.0
3030
# Use an exact version until the test_api package is stable.
3131
test_api: 0.7.6
32-
vm_service: ">=6.0.0 <16.0.0"
32+
vm_service: '>=6.0.0 <16.0.0'
3333
yaml: ^3.0.0
3434

3535
dev_dependencies:

0 commit comments

Comments
 (0)