File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
pkgs/native_assets_builder Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ class NativeAssetsBuildRunner {
189189 );
190190 if (buildPlan == null ) return null ;
191191
192- var hookResult = HookResult (encodedAssets : buildResult.encodedAssets );
192+ var linkResult = HookResult ();
193193 for (final package in buildPlan) {
194194 final inputBuilder = LinkInputBuilder ();
195195 for (final e in extensions) {
@@ -250,14 +250,17 @@ class NativeAssetsBuildRunner {
250250 );
251251 if (result == null ) return null ;
252252 final (hookOutput, hookDeps) = result;
253- hookResult = hookResult .copyAdd (hookOutput, hookDeps);
253+ linkResult = linkResult .copyAdd (hookOutput, hookDeps);
254254 }
255255
256256 final errors = [
257257 for (final e in extensions)
258- ...await e.validateApplicationAssets (hookResult.encodedAssets),
258+ ...await e.validateApplicationAssets ([
259+ ...buildResult.encodedAssets,
260+ ...linkResult.encodedAssets,
261+ ]),
259262 ];
260- if (errors.isEmpty) return hookResult ;
263+ if (errors.isEmpty) return linkResult ;
261264
262265 _printErrors ('Application asset verification failed' , errors);
263266 return null ;
Original file line number Diff line number Diff line change @@ -88,9 +88,13 @@ void main() async {
8888 );
8989 expect (linkResult, isNotNull);
9090
91+ expect (
92+ _getNames (buildResult.encodedAssets),
93+ unorderedEquals (builtHelperAssets),
94+ );
9195 expect (
9296 _getNames (linkResult! .encodedAssets),
93- unorderedEquals ([...builtHelperAssets, ... linkedAssets] ),
97+ unorderedEquals (linkedAssets),
9498 );
9599 });
96100 });
You can’t perform that action at this time.
0 commit comments