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
4bd6ad73
Unverified
Commit
4bd6ad73
authored
Oct 02, 2018
by
jensjoha
Committed by
GitHub
Oct 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unsafePackageSerialization when running tests (#22407)
parent
85a4591a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
compile.dart
packages/flutter_tools/lib/src/compile.dart
+7
-2
flutter_platform.dart
packages/flutter_tools/lib/src/test/flutter_platform.dart
+2
-1
No files found.
packages/flutter_tools/lib/src/compile.dart
View file @
4bd6ad73
...
...
@@ -250,7 +250,7 @@ class ResidentCompiler {
ResidentCompiler
(
this
.
_sdkRoot
,
{
bool
trackWidgetCreation
=
false
,
String
packagesPath
,
List
<
String
>
fileSystemRoots
,
String
fileSystemScheme
,
CompilerMessageConsumer
compilerMessageConsumer
=
printError
,
String
initializeFromDill
})
String
initializeFromDill
,
bool
unsafePackageSerialization
})
:
assert
(
_sdkRoot
!=
null
),
_trackWidgetCreation
=
trackWidgetCreation
,
_packagesPath
=
packagesPath
,
...
...
@@ -258,7 +258,8 @@ class ResidentCompiler {
_fileSystemScheme
=
fileSystemScheme
,
_stdoutHandler
=
_StdoutHandler
(
consumer:
compilerMessageConsumer
),
_controller
=
StreamController
<
_CompilationRequest
>(),
_initializeFromDill
=
initializeFromDill
{
_initializeFromDill
=
initializeFromDill
,
_unsafePackageSerialization
=
unsafePackageSerialization
{
// This is a URI, not a file path, so the forward slash is correct even on Windows.
if
(!
_sdkRoot
.
endsWith
(
'/'
))
_sdkRoot
=
'
$_sdkRoot
/'
;
...
...
@@ -272,6 +273,7 @@ class ResidentCompiler {
Process
_server
;
final
_StdoutHandler
_stdoutHandler
;
String
_initializeFromDill
;
bool
_unsafePackageSerialization
;
final
StreamController
<
_CompilationRequest
>
_controller
;
...
...
@@ -369,6 +371,9 @@ class ResidentCompiler {
if
(
_initializeFromDill
!=
null
)
{
command
.
addAll
(<
String
>[
'--initialize-from-dill'
,
_initializeFromDill
]);
}
if
(
_unsafePackageSerialization
==
true
)
{
command
.
add
(
'--unsafe-package-serialization'
);
}
printTrace
(
command
.
join
(
' '
));
_server
=
await
processManager
.
start
(
command
);
_server
.
stdout
...
...
packages/flutter_tools/lib/src/test/flutter_platform.dart
View file @
4bd6ad73
...
...
@@ -238,7 +238,8 @@ class _Compiler {
packagesPath:
PackageMap
.
globalPackagesPath
,
trackWidgetCreation:
trackWidgetCreation
,
compilerMessageConsumer:
reportCompilerMessage
,
initializeFromDill:
testFilePath
initializeFromDill:
testFilePath
,
unsafePackageSerialization:
true
,
);
}
...
...
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