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
517c08e8
Unverified
Commit
517c08e8
authored
Oct 03, 2019
by
Jonah Williams
Committed by
GitHub
Oct 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make output directory a build input (#41862)
parent
439dc5cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
build_system.dart
...ages/flutter_tools/lib/src/build_system/build_system.dart
+1
-2
build_system_test.dart
...ls/test/general.shard/build_system/build_system_test.dart
+7
-0
No files found.
packages/flutter_tools/lib/src/build_system/build_system.dart
View file @
517c08e8
...
...
@@ -292,8 +292,7 @@ class Environment {
buffer
.
write
(
key
);
buffer
.
write
(
defines
[
key
]);
}
// in case there was no configuration, provide some value.
buffer
.
write
(
'Flutter is awesome'
);
buffer
.
write
(
outputDir
.
path
);
final
String
output
=
buffer
.
toString
();
final
Digest
digest
=
md5
.
convert
(
utf8
.
encode
(
output
));
buildPrefix
=
hex
.
encode
(
digest
.
bytes
);
...
...
packages/flutter_tools/test/general.shard/build_system/build_system_test.dart
View file @
517c08e8
...
...
@@ -334,6 +334,13 @@ void main() {
await
buildSystem
.
build
(
target
,
environment
);
expect
(
called
,
1
);
}));
test
(
'output directory is an input to the build'
,
()
=>
testbed
.
run
(()
async
{
final
Environment
environmentA
=
Environment
(
projectDir:
fs
.
currentDirectory
,
outputDir:
fs
.
directory
(
'a'
));
final
Environment
environmentB
=
Environment
(
projectDir:
fs
.
currentDirectory
,
outputDir:
fs
.
directory
(
'b'
));
expect
(
environmentA
.
buildDir
.
path
,
isNot
(
environmentB
.
buildDir
.
path
));
}));
}
class
MockPlatform
extends
Mock
implements
Platform
{}
...
...
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