Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
82cfa25a
Unverified
Commit
82cfa25a
authored
Apr 22, 2021
by
Jonah Williams
Committed by
GitHub
Apr 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] fix asset directory paths for UWP (#80984)
parent
c5a3ee7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
install_manifest.dart
packages/flutter_tools/lib/src/windows/install_manifest.dart
+2
-2
install_manifest_test.dart
...ols/test/general.shard/windows/install_manifest_test.dart
+7
-7
No files found.
packages/flutter_tools/lib/src/windows/install_manifest.dart
View file @
82cfa25a
...
@@ -41,10 +41,10 @@ Future<void> createManifest({
...
@@ -41,10 +41,10 @@ Future<void> createManifest({
if
(
buildInfo
.
mode
.
isPrecompiled
)
{
if
(
buildInfo
.
mode
.
isPrecompiled
)
{
outputs
.
add
(
buildDirectory
.
childFile
(
'app.so'
));
outputs
.
add
(
buildDirectory
.
childFile
(
'app.so'
));
}
else
{
}
else
{
outputs
.
add
(
buildDirectory
.
childDirectory
(
'flutter_assets'
).
childFile
(
'kernel_blob.bin'
));
outputs
.
add
(
buildDirectory
.
parent
.
childDirectory
(
'flutter_assets'
).
childFile
(
'kernel_blob.bin'
));
}
}
for
(
final
String
key
in
assetBundle
.
entries
.
keys
)
{
for
(
final
String
key
in
assetBundle
.
entries
.
keys
)
{
outputs
.
add
(
buildDirectory
.
childDirectory
(
'flutter_assets'
).
childFile
(
key
));
outputs
.
add
(
buildDirectory
.
parent
.
childDirectory
(
'flutter_assets'
).
childFile
(
key
));
}
}
outputs
.
add
(
project
.
ephemeralDirectory
.
childFile
(
'flutter_windows_winuwp.dll'
));
outputs
.
add
(
project
.
ephemeralDirectory
.
childFile
(
'flutter_windows_winuwp.dll'
));
outputs
.
add
(
project
.
ephemeralDirectory
.
childFile
(
'flutter_windows_winuwp.dll.pdb'
));
outputs
.
add
(
project
.
ephemeralDirectory
.
childFile
(
'flutter_windows_winuwp.dll.pdb'
));
...
...
packages/flutter_tools/test/general.shard/windows/install_manifest_test.dart
View file @
82cfa25a
...
@@ -44,8 +44,8 @@ void main() {
...
@@ -44,8 +44,8 @@ void main() {
final
File
manifest
=
flutterProject
.
windowsUwp
.
ephemeralDirectory
.
childFile
(
'install_manifest'
);
final
File
manifest
=
flutterProject
.
windowsUwp
.
ephemeralDirectory
.
childFile
(
'install_manifest'
);
expect
(
manifest
,
exists
);
expect
(
manifest
,
exists
);
expect
(
manifest
.
readAsLinesSync
(),
unorderedEquals
(<
String
>[
expect
(
manifest
.
readAsLinesSync
(),
unorderedEquals
(<
String
>[
'C:/build/
winuwp/
flutter_assets/kernel_blob.bin'
,
'C:/build/flutter_assets/kernel_blob.bin'
,
'C:/build/
winuwp/
flutter_assets/AssetManifest.json'
,
'C:/build/flutter_assets/AssetManifest.json'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll.pdb'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll.pdb'
,
'C:/winuwp/flutter/ephemeral/icudtl.dat'
,
'C:/winuwp/flutter/ephemeral/icudtl.dat'
,
...
@@ -75,7 +75,7 @@ void main() {
...
@@ -75,7 +75,7 @@ void main() {
expect
(
manifest
,
exists
);
expect
(
manifest
,
exists
);
expect
(
manifest
.
readAsLinesSync
(),
unorderedEquals
(<
String
>[
expect
(
manifest
.
readAsLinesSync
(),
unorderedEquals
(<
String
>[
'C:/build/winuwp/app.so'
,
'C:/build/winuwp/app.so'
,
'C:/build/
winuwp/
flutter_assets/AssetManifest.json'
,
'C:/build/flutter_assets/AssetManifest.json'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll.pdb'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll.pdb'
,
'C:/winuwp/flutter/ephemeral/icudtl.dat'
'C:/winuwp/flutter/ephemeral/icudtl.dat'
...
@@ -129,10 +129,10 @@ flutter:
...
@@ -129,10 +129,10 @@ flutter:
expect
(
manifest
,
exists
);
expect
(
manifest
,
exists
);
expect
(
manifest
.
readAsLinesSync
(),
unorderedEquals
(<
String
>[
expect
(
manifest
.
readAsLinesSync
(),
unorderedEquals
(<
String
>[
'C:/build/winuwp/app.so'
,
'C:/build/winuwp/app.so'
,
'C:/build/
winuwp/
flutter_assets/assets/foo.png'
,
'C:/build/flutter_assets/assets/foo.png'
,
'C:/build/
winuwp/
flutter_assets/AssetManifest.json'
,
'C:/build/flutter_assets/AssetManifest.json'
,
'C:/build/
winuwp/
flutter_assets/FontManifest.json'
,
'C:/build/flutter_assets/FontManifest.json'
,
'C:/build/
winuwp/
flutter_assets/NOTICES'
,
'C:/build/flutter_assets/NOTICES'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll.pdb'
,
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll.pdb'
,
'C:/winuwp/flutter/ephemeral/icudtl.dat'
'C:/winuwp/flutter/ephemeral/icudtl.dat'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment