File tree 2 files changed +13
-8
lines changed
pkgs/native_assets_cli/example/build/download_asset/hook 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,13 @@ jobs:
184
184
working-directory : pkgs/${{ matrix.package }}/example/build/use_dart_api/
185
185
if : ${{ matrix.package == 'native_assets_cli' && matrix.sdk == 'dev' && !matrix.breaking-change }}
186
186
187
- # TODO(https://github.com/dart-lang/native/issues/1879): Enable this when the fix has rolled into Dart.
188
- # - run: dart --enable-experiment=native-assets test
189
- # working-directory: pkgs/${{ matrix.package }}/example/build/system_library/
190
- # if: ${{ matrix.package == 'native_assets_cli' && matrix.sdk == 'dev' && !matrix.breaking-change }}
187
+ - run : dart --enable-experiment=native-assets test
188
+ working-directory : pkgs/${{ matrix.package }}/example/build/download_asset/
189
+ if : ${{ matrix.package == 'native_assets_cli' && matrix.sdk == 'dev' && !matrix.breaking-change }}
190
+
191
+ - run : dart --enable-experiment=native-assets test
192
+ working-directory : pkgs/${{ matrix.package }}/example/build/system_library/
193
+ if : ${{ matrix.package == 'native_assets_cli' && matrix.sdk == 'dev' && !matrix.breaking-change }}
191
194
192
195
- name : Install coverage
193
196
run : dart pub global activate coverage
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ void main(List<String> args) async {
33
33
);
34
34
final fileHash = await hashAsset (file);
35
35
final expectedHash =
36
- assetHashes[createTargetName (
37
- targetOS.name,
38
- targetArchitecture.name,
39
- iOSSdk? .type,
36
+ assetHashes[input.config.code.targetOS.dylibFileName (
37
+ createTargetName (
38
+ targetOS.name,
39
+ targetArchitecture.name,
40
+ iOSSdk? .type,
41
+ ),
40
42
)];
41
43
if (fileHash != expectedHash) {
42
44
throw Exception (
You can’t perform that action at this time.
0 commit comments