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
ae1881e4
Commit
ae1881e4
authored
Nov 15, 2016
by
John McCutchan
Committed by
Todd Volkert
Nov 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of empty --project-assets option (#6873)
parent
2b84d1ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
asset.dart
packages/flutter_tools/lib/src/asset.dart
+2
-0
asset_bundle_test.dart
packages/flutter_tools/test/asset_bundle_test.dart
+4
-0
No files found.
packages/flutter_tools/lib/src/asset.dart
View file @
ae1881e4
...
...
@@ -69,6 +69,8 @@ class AssetBundle {
List
<
String
>
assets
=
projectAssets
.
split
(
','
);
for
(
String
asset
in
assets
)
{
if
(
asset
==
''
)
continue
;
final
String
assetPath
=
path
.
join
(
projectRoot
,
asset
);
final
String
archivePath
=
asset
;
entries
.
add
(
...
...
packages/flutter_tools/test/asset_bundle_test.dart
View file @
ae1881e4
...
...
@@ -28,6 +28,10 @@ void main() {
test
(
'does not need a rebuild'
,
()
async
{
expect
(
new
AssetBundle
.
fixed
(
null
,
null
).
needsBuild
(),
isFalse
);
});
test
(
'empty string'
,
()
async
{
AssetBundle
ab
=
new
AssetBundle
.
fixed
(
''
,
''
);
expect
(
ab
.
entries
,
isEmpty
);
});
test
(
'single entry'
,
()
async
{
AssetBundle
ab
=
new
AssetBundle
.
fixed
(
''
,
'apple.txt'
);
expect
(
ab
.
entries
,
isNotEmpty
);
...
...
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