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
41a91109
Commit
41a91109
authored
Dec 19, 2019
by
Dan Field
Committed by
Flutter GitHub Bot
Dec 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments (#47473)
parent
b011ea54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
assets.dart
...es/flutter_tools/lib/src/build_system/targets/assets.dart
+5
-0
bundle.dart
packages/flutter_tools/lib/src/bundle.dart
+5
-0
No files found.
packages/flutter_tools/lib/src/build_system/targets/assets.dart
View file @
41a91109
...
...
@@ -34,6 +34,11 @@ Future<Depfile> copyAssets(Environment environment, Directory outputDirectory) a
assetBundle
.
entries
.
entries
.
map
<
Future
<
void
>>((
MapEntry
<
String
,
DevFSContent
>
entry
)
async
{
final
PoolResource
resource
=
await
pool
.
request
();
try
{
// This will result in strange looking files, for example files with `/`
// on Windows or files that end up getting URI encoded such as `#.ext`
// to `%23.ext`. However, we have to keep it this way since the
// platform channels in the framework will URI encode these values,
// and the native APIs will look for files this way.
final
File
file
=
fs
.
file
(
fs
.
path
.
join
(
outputDirectory
.
path
,
entry
.
key
));
outputs
.
add
(
file
);
file
.
parent
.
createSync
(
recursive:
true
);
...
...
packages/flutter_tools/lib/src/bundle.dart
View file @
41a91109
...
...
@@ -195,6 +195,11 @@ Future<void> writeBundle(
assetEntries
.
entries
.
map
<
Future
<
void
>>((
MapEntry
<
String
,
DevFSContent
>
entry
)
async
{
final
PoolResource
resource
=
await
pool
.
request
();
try
{
// This will result in strange looking files, for example files with `/`
// on Windows or files that end up getting URI encoded such as `#.ext`
// to `%23.ext`. However, we have to keep it this way since the
// platform channels in the framework will URI encode these values,
// and the native APIs will look for files this way.
final
File
file
=
fs
.
file
(
fs
.
path
.
join
(
bundleDir
.
path
,
entry
.
key
));
file
.
parent
.
createSync
(
recursive:
true
);
await
file
.
writeAsBytes
(
await
entry
.
value
.
contentsAsBytes
());
...
...
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