@@ -14,84 +14,84 @@ void main() {
1414  final  blaUri =  Uri (path:  'path/with spaces/bla.dll' );
1515  final  assets =  [
1616    Asset (
17-       name :  'foo' ,
17+       id :  'foo' ,
1818      path:  AssetAbsolutePath (fooUri),
1919      target:  Target .androidX64,
2020      linkMode:  LinkMode .dynamic ,
2121    ),
2222    Asset (
23-       name :  'foo2' ,
23+       id :  'foo2' ,
2424      path:  AssetRelativePath (foo2Uri),
2525      target:  Target .androidX64,
2626      linkMode:  LinkMode .dynamic ,
2727    ),
2828    Asset (
29-       name :  'foo3' ,
29+       id :  'foo3' ,
3030      path:  AssetSystemPath (foo3Uri),
3131      target:  Target .androidX64,
3232      linkMode:  LinkMode .dynamic ,
3333    ),
3434    Asset (
35-       name :  'foo4' ,
35+       id :  'foo4' ,
3636      path:  AssetInExecutable (),
3737      target:  Target .androidX64,
3838      linkMode:  LinkMode .dynamic ,
3939    ),
4040    Asset (
41-       name :  'foo5' ,
41+       id :  'foo5' ,
4242      path:  AssetInProcess (),
4343      target:  Target .androidX64,
4444      linkMode:  LinkMode .dynamic ,
4545    ),
4646    Asset (
47-       name :  'bar' ,
47+       id :  'bar' ,
4848      path:  AssetAbsolutePath (barUri),
4949      target:  Target .linuxArm64,
5050      linkMode:  LinkMode .static ,
5151    ),
5252    Asset (
53-       name :  'bla' ,
53+       id :  'bla' ,
5454      path:  AssetAbsolutePath (blaUri),
5555      target:  Target .windowsX64,
5656      linkMode:  LinkMode .dynamic ,
5757    ),
5858  ];
5959
60-   final  assetsYamlEncoding =  '''- name : foo 
60+   final  assetsYamlEncoding =  '''- id : foo 
6161  link_mode: dynamic 
6262  path: 
6363    path_type: absolute 
6464    uri: ${fooUri .toFilePath ()} 
6565  target: android_x64 
66- - name : foo2 
66+ - id : foo2 
6767  link_mode: dynamic 
6868  path: 
6969    path_type: relative 
7070    uri: ${foo2Uri .toFilePath ()} 
7171  target: android_x64 
72- - name : foo3 
72+ - id : foo3 
7373  link_mode: dynamic 
7474  path: 
7575    path_type: system 
7676    uri: ${foo3Uri .toFilePath ()} 
7777  target: android_x64 
78- - name : foo4 
78+ - id : foo4 
7979  link_mode: dynamic 
8080  path: 
8181    path_type: executable 
8282  target: android_x64 
83- - name : foo5 
83+ - id : foo5 
8484  link_mode: dynamic 
8585  path: 
8686    path_type: process 
8787  target: android_x64 
88- - name : bar 
88+ - id : bar 
8989  link_mode: static 
9090  path: 
9191    path_type: absolute 
9292    uri: ${barUri .toFilePath ()} 
9393  target: linux_arm64 
94- - name : bla 
94+ - id : bla 
9595  link_mode: dynamic 
9696  path: 
9797    path_type: absolute 
@@ -149,7 +149,7 @@ native-assets:
149149
150150  test ('Asset hashCode copyWith' , () async  {
151151    final  asset =  assets.first;
152-     final  asset2 =  asset.copyWith (name :  'foo321' );
152+     final  asset2 =  asset.copyWith (id :  'foo321' );
153153    expect (asset.hashCode !=  asset2.hashCode, true );
154154
155155    final  asset3 =  asset.copyWith ();
@@ -179,7 +179,7 @@ native-assets:
179179    expect (
180180        assets.first.toYamlString (),
181181        ''' 
182- name : foo
182+ id : foo
183183link_mode: dynamic 
184184path: 
185185  path_type: absolute 
0 commit comments