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
e48b7e99
Unverified
Commit
e48b7e99
authored
Jun 19, 2020
by
Michael Goderbauer
Committed by
GitHub
Jun 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More word substiturions (#59497)
parent
4173881b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
13 deletions
+27
-13
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+2
-2
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+18
-4
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-3
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+1
-1
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+1
-1
android_device_start_test.dart
...test/general.shard/android/android_device_start_test.dart
+2
-2
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
e48b7e99
...
@@ -644,8 +644,8 @@ class AndroidDevice extends Device {
...
@@ -644,8 +644,8 @@ class AndroidDevice extends Device {
...<
String
>[
'--ez'
,
'skia-deterministic-rendering'
,
'true'
],
...<
String
>[
'--ez'
,
'skia-deterministic-rendering'
,
'true'
],
if
(
debuggingOptions
.
traceSkia
)
if
(
debuggingOptions
.
traceSkia
)
...<
String
>[
'--ez'
,
'trace-skia'
,
'true'
],
...<
String
>[
'--ez'
,
'trace-skia'
,
'true'
],
if
(
debuggingOptions
.
trace
White
list
!=
null
)
if
(
debuggingOptions
.
trace
Allow
list
!=
null
)
...<
String
>[
'--ez'
,
'trace-
whitelist'
,
debuggingOptions
.
traceWhite
list
],
...<
String
>[
'--ez'
,
'trace-
allowlist'
,
debuggingOptions
.
traceAllow
list
],
if
(
debuggingOptions
.
traceSystrace
)
if
(
debuggingOptions
.
traceSystrace
)
...<
String
>[
'--ez'
,
'trace-systrace'
,
'true'
],
...<
String
>[
'--ez'
,
'trace-systrace'
,
'true'
],
if
(
debuggingOptions
.
endlessTraceBuffer
)
if
(
debuggingOptions
.
endlessTraceBuffer
)
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
e48b7e99
...
@@ -107,8 +107,14 @@ class RunCommand extends RunCommandBase {
...
@@ -107,8 +107,14 @@ class RunCommand extends RunCommandBase {
'By default, Flutter will not log skia code.'
,
'By default, Flutter will not log skia code.'
,
)
)
..
addOption
(
'trace-whitelist'
,
..
addOption
(
'trace-whitelist'
,
hide:
true
,
help:
'(deprecated) Use --trace-allowlist instead'
,
valueHelp:
'foo,bar'
,
)
..
addOption
(
'trace-allowlist'
,
hide:
true
,
help:
'Filters out all trace events except those that are specified in '
help:
'Filters out all trace events except those that are specified in '
'this comma separated list of whitelist
ed prefixes.'
,
'this comma separated list of allow
ed prefixes.'
,
valueHelp:
'foo,bar'
,
valueHelp:
'foo,bar'
,
)
)
..
addFlag
(
'endless-trace-buffer'
,
..
addFlag
(
'endless-trace-buffer'
,
...
@@ -147,8 +153,8 @@ class RunCommand extends RunCommandBase {
...
@@ -147,8 +153,8 @@ class RunCommand extends RunCommandBase {
hide:
!
verboseHelp
,
hide:
!
verboseHelp
,
help:
'Pass a list of comma separated flags to the Dart instance at '
help:
'Pass a list of comma separated flags to the Dart instance at '
'application startup. Flags passed through this option must be '
'application startup. Flags passed through this option must be '
'present on the
white
list defined within the Flutter engine. If '
'present on the
allow
list defined within the Flutter engine. If '
'a
non-whitelist
ed flag is encountered, the process will be '
'a
disallow
ed flag is encountered, the process will be '
'terminated immediately.
\n\n
'
'terminated immediately.
\n\n
'
'This flag is not available on the stable channel and is only '
'This flag is not available on the stable channel and is only '
'applied in debug and profile modes. This option should only '
'applied in debug and profile modes. This option should only '
...
@@ -348,6 +354,14 @@ class RunCommand extends RunCommandBase {
...
@@ -348,6 +354,14 @@ class RunCommand extends RunCommandBase {
}
}
}
}
String
get
_traceAllowlist
{
final
String
deprecatedValue
=
stringArg
(
'trace-whitelist'
);
if
(
deprecatedValue
!=
null
)
{
globals
.
printError
(
'--trace-whitelist has been deprecated, use --trace-allowlist instead'
);
}
return
stringArg
(
'trace-allowlist'
)
??
deprecatedValue
;
}
DebuggingOptions
_createDebuggingOptions
()
{
DebuggingOptions
_createDebuggingOptions
()
{
final
BuildInfo
buildInfo
=
getBuildInfo
();
final
BuildInfo
buildInfo
=
getBuildInfo
();
final
int
browserDebugPort
=
featureFlags
.
isWebEnabled
&&
argResults
.
wasParsed
(
'web-browser-debug-port'
)
final
int
browserDebugPort
=
featureFlags
.
isWebEnabled
&&
argResults
.
wasParsed
(
'web-browser-debug-port'
)
...
@@ -374,7 +388,7 @@ class RunCommand extends RunCommandBase {
...
@@ -374,7 +388,7 @@ class RunCommand extends RunCommandBase {
enableSoftwareRendering:
boolArg
(
'enable-software-rendering'
),
enableSoftwareRendering:
boolArg
(
'enable-software-rendering'
),
skiaDeterministicRendering:
boolArg
(
'skia-deterministic-rendering'
),
skiaDeterministicRendering:
boolArg
(
'skia-deterministic-rendering'
),
traceSkia:
boolArg
(
'trace-skia'
),
traceSkia:
boolArg
(
'trace-skia'
),
trace
Whitelist:
stringArg
(
'trace-whitelist'
)
,
trace
Allowlist:
_traceAllowlist
,
traceSystrace:
boolArg
(
'trace-systrace'
),
traceSystrace:
boolArg
(
'trace-systrace'
),
endlessTraceBuffer:
boolArg
(
'endless-trace-buffer'
),
endlessTraceBuffer:
boolArg
(
'endless-trace-buffer'
),
dumpSkpOnShaderCompilation:
dumpSkpOnShaderCompilation
,
dumpSkpOnShaderCompilation:
dumpSkpOnShaderCompilation
,
...
...
packages/flutter_tools/lib/src/device.dart
View file @
e48b7e99
...
@@ -646,7 +646,7 @@ class DebuggingOptions {
...
@@ -646,7 +646,7 @@ class DebuggingOptions {
this
.
enableSoftwareRendering
=
false
,
this
.
enableSoftwareRendering
=
false
,
this
.
skiaDeterministicRendering
=
false
,
this
.
skiaDeterministicRendering
=
false
,
this
.
traceSkia
=
false
,
this
.
traceSkia
=
false
,
this
.
trace
White
list
,
this
.
trace
Allow
list
,
this
.
traceSystrace
=
false
,
this
.
traceSystrace
=
false
,
this
.
endlessTraceBuffer
=
false
,
this
.
endlessTraceBuffer
=
false
,
this
.
dumpSkpOnShaderCompilation
=
false
,
this
.
dumpSkpOnShaderCompilation
=
false
,
...
@@ -676,7 +676,7 @@ class DebuggingOptions {
...
@@ -676,7 +676,7 @@ class DebuggingOptions {
this
.
webRunHeadless
=
false
,
this
.
webRunHeadless
=
false
,
this
.
webBrowserDebugPort
,
this
.
webBrowserDebugPort
,
this
.
cacheSkSL
=
false
,
this
.
cacheSkSL
=
false
,
this
.
trace
White
list
,
this
.
trace
Allow
list
,
})
:
debuggingEnabled
=
false
,
})
:
debuggingEnabled
=
false
,
useTestFonts
=
false
,
useTestFonts
=
false
,
startPaused
=
false
,
startPaused
=
false
,
...
@@ -704,7 +704,7 @@ class DebuggingOptions {
...
@@ -704,7 +704,7 @@ class DebuggingOptions {
final
bool
enableSoftwareRendering
;
final
bool
enableSoftwareRendering
;
final
bool
skiaDeterministicRendering
;
final
bool
skiaDeterministicRendering
;
final
bool
traceSkia
;
final
bool
traceSkia
;
final
String
trace
White
list
;
final
String
trace
Allow
list
;
final
bool
traceSystrace
;
final
bool
traceSystrace
;
final
bool
endlessTraceBuffer
;
final
bool
endlessTraceBuffer
;
final
bool
dumpSkpOnShaderCompilation
;
final
bool
dumpSkpOnShaderCompilation
;
...
...
packages/flutter_tools/lib/src/ios/devices.dart
View file @
e48b7e99
...
@@ -380,7 +380,7 @@ class IOSDevice extends Device {
...
@@ -380,7 +380,7 @@ class IOSDevice extends Device {
if
(
debuggingOptions
.
enableSoftwareRendering
)
'--enable-software-rendering'
,
if
(
debuggingOptions
.
enableSoftwareRendering
)
'--enable-software-rendering'
,
if
(
debuggingOptions
.
skiaDeterministicRendering
)
'--skia-deterministic-rendering'
,
if
(
debuggingOptions
.
skiaDeterministicRendering
)
'--skia-deterministic-rendering'
,
if
(
debuggingOptions
.
traceSkia
)
'--trace-skia'
,
if
(
debuggingOptions
.
traceSkia
)
'--trace-skia'
,
if
(
debuggingOptions
.
trace
Whitelist
!=
null
)
'--trace-whitelist="
${debuggingOptions.traceWhite
list}
"'
,
if
(
debuggingOptions
.
trace
Allowlist
!=
null
)
'--trace-allowlist="
${debuggingOptions.traceAllow
list}
"'
,
if
(
debuggingOptions
.
endlessTraceBuffer
)
'--endless-trace-buffer'
,
if
(
debuggingOptions
.
endlessTraceBuffer
)
'--endless-trace-buffer'
,
if
(
debuggingOptions
.
dumpSkpOnShaderCompilation
)
'--dump-skp-on-shader-compilation'
,
if
(
debuggingOptions
.
dumpSkpOnShaderCompilation
)
'--dump-skp-on-shader-compilation'
,
if
(
debuggingOptions
.
verboseSystemLogs
)
'--verbose-logging'
,
if
(
debuggingOptions
.
verboseSystemLogs
)
'--verbose-logging'
,
...
...
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
e48b7e99
...
@@ -422,7 +422,7 @@ class IOSSimulator extends Device {
...
@@ -422,7 +422,7 @@ class IOSSimulator extends Device {
if
(
debuggingOptions
.
disableServiceAuthCodes
)
'--disable-service-auth-codes'
,
if
(
debuggingOptions
.
disableServiceAuthCodes
)
'--disable-service-auth-codes'
,
if
(
debuggingOptions
.
skiaDeterministicRendering
)
'--skia-deterministic-rendering'
,
if
(
debuggingOptions
.
skiaDeterministicRendering
)
'--skia-deterministic-rendering'
,
if
(
debuggingOptions
.
useTestFonts
)
'--use-test-fonts'
,
if
(
debuggingOptions
.
useTestFonts
)
'--use-test-fonts'
,
if
(
debuggingOptions
.
trace
Whitelist
!=
null
)
'--trace-whitelist="
${debuggingOptions.traceWhite
list}
"'
,
if
(
debuggingOptions
.
trace
Allowlist
!=
null
)
'--trace-allowlist="
${debuggingOptions.traceAllow
list}
"'
,
'--observatory-port=
${debuggingOptions.hostVmServicePort ?? 0}
'
,
'--observatory-port=
${debuggingOptions.hostVmServicePort ?? 0}
'
,
],
],
];
];
...
...
packages/flutter_tools/test/general.shard/android/android_device_start_test.dart
View file @
e48b7e99
...
@@ -244,7 +244,7 @@ void main() {
...
@@ -244,7 +244,7 @@ void main() {
'--ez'
,
'enable-software-rendering'
,
'true'
,
'--ez'
,
'enable-software-rendering'
,
'true'
,
'--ez'
,
'skia-deterministic-rendering'
,
'true'
,
'--ez'
,
'skia-deterministic-rendering'
,
'true'
,
'--ez'
,
'trace-skia'
,
'true'
,
'--ez'
,
'trace-skia'
,
'true'
,
'--ez'
,
'trace-
white
list'
,
'bar,baz'
,
'--ez'
,
'trace-
allow
list'
,
'bar,baz'
,
'--ez'
,
'trace-systrace'
,
'true'
,
'--ez'
,
'trace-systrace'
,
'true'
,
'--ez'
,
'endless-trace-buffer'
,
'true'
,
'--ez'
,
'endless-trace-buffer'
,
'true'
,
'--ez'
,
'dump-skp-on-shader-compilation'
,
'true'
,
'--ez'
,
'dump-skp-on-shader-compilation'
,
'true'
,
...
@@ -272,7 +272,7 @@ void main() {
...
@@ -272,7 +272,7 @@ void main() {
enableSoftwareRendering:
true
,
enableSoftwareRendering:
true
,
skiaDeterministicRendering:
true
,
skiaDeterministicRendering:
true
,
traceSkia:
true
,
traceSkia:
true
,
trace
White
list:
'bar,baz'
,
trace
Allow
list:
'bar,baz'
,
traceSystrace:
true
,
traceSystrace:
true
,
endlessTraceBuffer:
true
,
endlessTraceBuffer:
true
,
dumpSkpOnShaderCompilation:
true
,
dumpSkpOnShaderCompilation:
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