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
5009f44a
Commit
5009f44a
authored
Feb 19, 2016
by
Jason Simmons
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2029 from jason-simmons/font_custom_load
Generate a font manifest JSON file from flutter.yaml
parents
9323d4ed
59351a79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
flx.dart
packages/flutter_tools/lib/src/flx.dart
+6
-0
No files found.
packages/flutter_tools/lib/src/flx.dart
View file @
5009f44a
...
@@ -167,6 +167,11 @@ ArchiveFile _createAssetManifest(Map<_Asset, List<_Asset>> assets) {
...
@@ -167,6 +167,11 @@ ArchiveFile _createAssetManifest(Map<_Asset, List<_Asset>> assets) {
return
new
ArchiveFile
.
noCompress
(
key
,
content
.
length
,
content
);
return
new
ArchiveFile
.
noCompress
(
key
,
content
.
length
,
content
);
}
}
ArchiveFile
_createFontManifest
(
Map
manifestDescriptor
)
{
List
<
int
>
content
=
UTF8
.
encode
(
JSON
.
encode
(
manifestDescriptor
[
'fonts'
]));
return
new
ArchiveFile
.
noCompress
(
'FontManifest.json'
,
content
.
length
,
content
);
}
ArchiveFile
_createSnapshotFile
(
String
snapshotPath
)
{
ArchiveFile
_createSnapshotFile
(
String
snapshotPath
)
{
File
file
=
new
File
(
snapshotPath
);
File
file
=
new
File
(
snapshotPath
);
List
<
int
>
content
=
file
.
readAsBytesSync
();
List
<
int
>
content
=
file
.
readAsBytesSync
();
...
@@ -273,6 +278,7 @@ Future<int> assemble({
...
@@ -273,6 +278,7 @@ Future<int> assemble({
}
}
archive
.
addFile
(
_createAssetManifest
(
assets
));
archive
.
addFile
(
_createAssetManifest
(
assets
));
archive
.
addFile
(
_createFontManifest
(
manifestDescriptor
));
await
CipherParameters
.
get
().
seedRandom
();
await
CipherParameters
.
get
().
seedRandom
();
...
...
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