From fff2ae6c6f9a0176e8abf37ec6a3aff9dc0141d6 Mon Sep 17 00:00:00 2001 From: Istvan Soos Date: Fri, 5 Aug 2022 19:26:40 +0200 Subject: [PATCH] Expand broadNative runtime with nativeJit. --- CHANGELOG.md | 1 + lib/src/tag/_specs.dart | 1 + test/tag/tag_end2end_test.dart | 27 ++++++++++++++++++++++----- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f314e1526..b87fbd538 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.21.16 - Explain `HEAD` request for URL checks. +- Expand `broadNative` runtime with `nativeJit`. ## 0.21.15 diff --git a/lib/src/tag/_specs.dart b/lib/src/tag/_specs.dart index b4b8be73d..666ddb234 100644 --- a/lib/src/tag/_specs.dart +++ b/lib/src/tag/_specs.dart @@ -104,6 +104,7 @@ class Runtime { static final broadNative = Runtime('native', { ..._onAllPlatforms, ..._onAllNative, + ..._onNativeJit, 'ui', }); diff --git a/test/tag/tag_end2end_test.dart b/test/tag/tag_end2end_test.dart index 5b26e909b..f4e574931 100644 --- a/test/tag/tag_end2end_test.dart +++ b/test/tag/tag_end2end_test.dart @@ -91,7 +91,13 @@ int fourtyTwo() => 42; await descriptor.create(); final tagger = Tagger(p.join(descriptor.io.path, 'my_package')); _expectTagging(tagger.sdkTags, tags: {'sdk:dart'}); - _expectTagging(tagger.platformTags, tags: isEmpty); + _expectTagging(tagger.platformTags, tags: { + 'platform:android', + 'platform:ios', + 'platform:windows', + 'platform:linux', + 'platform:macos', + }); _expectTagging(tagger.runtimeTags, tags: {'runtime:native-jit'}); _expectTagging(tagger.flutterPluginTags, tags: isEmpty); }); @@ -161,7 +167,13 @@ int fourtyTwo() => 42; await descriptor.create(); final tagger = Tagger(p.join(descriptor.io.path, 'my_package')); _expectTagging(tagger.sdkTags, tags: {'sdk:dart'}); - _expectTagging(tagger.platformTags, tags: isEmpty); + _expectTagging(tagger.platformTags, tags: { + 'platform:android', + 'platform:ios', + 'platform:windows', + 'platform:linux', + 'platform:macos', + }); _expectTagging(tagger.runtimeTags, tags: { 'runtime:native-jit', }); @@ -369,10 +381,15 @@ int fourtyThree() => 43; 'Package is not compatible with the Flutter SDK. Because:')), ]); _expectTagging(tagger.platformTags, - tags: isEmpty, + tags: { + 'platform:android', + 'platform:ios', + 'platform:windows', + 'platform:linux', + 'platform:macos', + }, explanations: contains( - _explanation( - finding: 'Package not compatible with platform Android'), + _explanation(finding: 'Package not compatible with platform Web'), )); _expectTagging(tagger.runtimeTags, tags: { 'runtime:native-jit'