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
2f80384a
Unverified
Commit
2f80384a
authored
Dec 13, 2021
by
Jia Hao
Committed by
GitHub
Dec 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] Remove --enable-background-compilation (#94012)
parent
08f779a3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
32 deletions
+25
-32
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+0
-1
custom_device.dart
...s/flutter_tools/lib/src/custom_devices/custom_device.dart
+2
-3
desktop_device.dart
packages/flutter_tools/lib/src/desktop_device.dart
+0
-1
android_device_start_test.dart
...test/general.shard/android/android_device_start_test.dart
+0
-2
desktop_device_test.dart
...flutter_tools/test/general.shard/desktop_device_test.dart
+23
-25
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
2f80384a
...
@@ -629,7 +629,6 @@ class AndroidDevice extends Device {
...
@@ -629,7 +629,6 @@ class AndroidDevice extends Device {
'shell'
,
'am'
,
'start'
,
'shell'
,
'am'
,
'start'
,
'-a'
,
'android.intent.action.RUN'
,
'-a'
,
'android.intent.action.RUN'
,
'-f'
,
'0x20000000'
,
// FLAG_ACTIVITY_SINGLE_TOP
'-f'
,
'0x20000000'
,
// FLAG_ACTIVITY_SINGLE_TOP
'--ez'
,
'enable-background-compilation'
,
'true'
,
'--ez'
,
'enable-dart-profiling'
,
'true'
,
'--ez'
,
'enable-dart-profiling'
,
'true'
,
if
(
traceStartup
)
if
(
traceStartup
)
...<
String
>[
'--ez'
,
'trace-startup'
,
'true'
],
...<
String
>[
'--ez'
,
'trace-startup'
,
'true'
],
...
...
packages/flutter_tools/lib/src/custom_devices/custom_device.dart
View file @
2f80384a
...
@@ -280,7 +280,7 @@ class CustomDeviceAppSession {
...
@@ -280,7 +280,7 @@ class CustomDeviceAppSession {
/// [debuggingOptions] and [route] can be null.
/// [debuggingOptions] and [route] can be null.
///
///
/// For example, `_getEngineOptions(null, false, null)` will return
/// For example, `_getEngineOptions(null, false, null)` will return
/// `['enable-dart-profiling=true'
, 'enable-background-compilation=true'
]`
/// `['enable-dart-profiling=true']`
List
<
String
>
_getEngineOptions
(
DebuggingOptions
debuggingOptions
,
bool
traceStartup
,
String
?
route
)
{
List
<
String
>
_getEngineOptions
(
DebuggingOptions
debuggingOptions
,
bool
traceStartup
,
String
?
route
)
{
final
List
<
String
>
options
=
<
String
>[];
final
List
<
String
>
options
=
<
String
>[];
...
@@ -289,7 +289,6 @@ class CustomDeviceAppSession {
...
@@ -289,7 +289,6 @@ class CustomDeviceAppSession {
}
}
addFlag
(
'enable-dart-profiling=true'
);
addFlag
(
'enable-dart-profiling=true'
);
addFlag
(
'enable-background-compilation=true'
);
if
(
traceStartup
)
{
if
(
traceStartup
)
{
addFlag
(
'trace-startup=true'
);
addFlag
(
'trace-startup=true'
);
...
@@ -363,7 +362,7 @@ class CustomDeviceAppSession {
...
@@ -363,7 +362,7 @@ class CustomDeviceAppSession {
/// [debuggingOptions] and [route] can be null.
/// [debuggingOptions] and [route] can be null.
///
///
/// For example, `_getEngineOptionsForCmdline(null, false, null)` will return
/// For example, `_getEngineOptionsForCmdline(null, false, null)` will return
/// `--enable-dart-profiling=true
--enable-background-compilation=true
`
/// `--enable-dart-profiling=true`
String
_getEngineOptionsForCmdline
(
DebuggingOptions
debuggingOptions
,
bool
traceStartup
,
String
?
route
)
{
String
_getEngineOptionsForCmdline
(
DebuggingOptions
debuggingOptions
,
bool
traceStartup
,
String
?
route
)
{
return
_getEngineOptions
(
debuggingOptions
,
traceStartup
,
route
).
map
((
String
e
)
=>
'--
$e
'
).
join
(
' '
);
return
_getEngineOptions
(
debuggingOptions
,
traceStartup
,
route
).
map
((
String
e
)
=>
'--
$e
'
).
join
(
' '
);
}
}
...
...
packages/flutter_tools/lib/src/desktop_device.dart
View file @
2f80384a
...
@@ -235,7 +235,6 @@ abstract class DesktopDevice extends Device {
...
@@ -235,7 +235,6 @@ abstract class DesktopDevice extends Device {
}
}
addFlag
(
'enable-dart-profiling=true'
);
addFlag
(
'enable-dart-profiling=true'
);
addFlag
(
'enable-background-compilation=true'
);
if
(
traceStartup
)
{
if
(
traceStartup
)
{
addFlag
(
'trace-startup=true'
);
addFlag
(
'trace-startup=true'
);
...
...
packages/flutter_tools/test/general.shard/android/android_device_start_test.dart
View file @
2f80384a
...
@@ -103,7 +103,6 @@ void main() {
...
@@ -103,7 +103,6 @@ void main() {
'android.intent.action.RUN'
,
'android.intent.action.RUN'
,
'-f'
,
'-f'
,
'0x20000000'
,
'0x20000000'
,
'--ez'
,
'enable-background-compilation'
,
'true'
,
'--ez'
,
'enable-dart-profiling'
,
'true'
,
'--ez'
,
'enable-dart-profiling'
,
'true'
,
'FlutterActivity'
,
'FlutterActivity'
,
],
],
...
@@ -231,7 +230,6 @@ void main() {
...
@@ -231,7 +230,6 @@ void main() {
'-f'
,
'-f'
,
'0x20000000'
,
'0x20000000'
,
// The DebuggingOptions arguments go here.
// The DebuggingOptions arguments go here.
'--ez'
,
'enable-background-compilation'
,
'true'
,
'--ez'
,
'enable-dart-profiling'
,
'true'
,
'--ez'
,
'enable-dart-profiling'
,
'true'
,
'--ez'
,
'enable-software-rendering'
,
'true'
,
'--ez'
,
'enable-software-rendering'
,
'true'
,
'--ez'
,
'skia-deterministic-rendering'
,
'true'
,
'--ez'
,
'skia-deterministic-rendering'
,
'true'
,
...
...
packages/flutter_tools/test/general.shard/desktop_device_test.dart
View file @
2f80384a
...
@@ -144,26 +144,25 @@ void main() {
...
@@ -144,26 +144,25 @@ void main() {
completer:
completer
,
completer:
completer
,
environment:
const
<
String
,
String
>{
environment:
const
<
String
,
String
>{
'FLUTTER_ENGINE_SWITCH_1'
:
'enable-dart-profiling=true'
,
'FLUTTER_ENGINE_SWITCH_1'
:
'enable-dart-profiling=true'
,
'FLUTTER_ENGINE_SWITCH_2'
:
'enable-background-compilation=true'
,
'FLUTTER_ENGINE_SWITCH_2'
:
'trace-startup=true'
,
'FLUTTER_ENGINE_SWITCH_3'
:
'trace-startup=true'
,
'FLUTTER_ENGINE_SWITCH_3'
:
'enable-software-rendering=true'
,
'FLUTTER_ENGINE_SWITCH_4'
:
'enable-software-rendering=true'
,
'FLUTTER_ENGINE_SWITCH_4'
:
'skia-deterministic-rendering=true'
,
'FLUTTER_ENGINE_SWITCH_5'
:
'skia-deterministic-rendering=true'
,
'FLUTTER_ENGINE_SWITCH_5'
:
'trace-skia=true'
,
'FLUTTER_ENGINE_SWITCH_6'
:
'trace-skia=true'
,
'FLUTTER_ENGINE_SWITCH_6'
:
'trace-allowlist=foo,bar'
,
'FLUTTER_ENGINE_SWITCH_7'
:
'trace-allowlist=foo,bar'
,
'FLUTTER_ENGINE_SWITCH_7'
:
'trace-skia-allowlist=skia.a,skia.b'
,
'FLUTTER_ENGINE_SWITCH_8'
:
'trace-skia-allowlist=skia.a,skia.b'
,
'FLUTTER_ENGINE_SWITCH_8'
:
'trace-systrace=true'
,
'FLUTTER_ENGINE_SWITCH_9'
:
'trace-systrace=true'
,
'FLUTTER_ENGINE_SWITCH_9'
:
'endless-trace-buffer=true'
,
'FLUTTER_ENGINE_SWITCH_10'
:
'endless-trace-buffer=true'
,
'FLUTTER_ENGINE_SWITCH_10'
:
'dump-skp-on-shader-compilation=true'
,
'FLUTTER_ENGINE_SWITCH_11'
:
'dump-skp-on-shader-compilation=true'
,
'FLUTTER_ENGINE_SWITCH_11'
:
'cache-sksl=true'
,
'FLUTTER_ENGINE_SWITCH_12'
:
'cache-sksl=true'
,
'FLUTTER_ENGINE_SWITCH_12'
:
'purge-persistent-cache=true'
,
'FLUTTER_ENGINE_SWITCH_13'
:
'purge-persistent-cache=true'
,
'FLUTTER_ENGINE_SWITCH_13'
:
'enable-checked-mode=true'
,
'FLUTTER_ENGINE_SWITCH_14'
:
'enable-checked-mode=true'
,
'FLUTTER_ENGINE_SWITCH_14'
:
'verify-entry-points=true'
,
'FLUTTER_ENGINE_SWITCH_15'
:
'verify-entry-points=true'
,
'FLUTTER_ENGINE_SWITCH_15'
:
'start-paused=true'
,
'FLUTTER_ENGINE_SWITCH_16'
:
'start-paused=true'
,
'FLUTTER_ENGINE_SWITCH_16'
:
'disable-service-auth-codes=true'
,
'FLUTTER_ENGINE_SWITCH_17'
:
'disable-service-auth-codes=true'
,
'FLUTTER_ENGINE_SWITCH_17'
:
'dart-flags=--null_assertions'
,
'FLUTTER_ENGINE_SWITCH_18'
:
'dart-flags=--null_assertions'
,
'FLUTTER_ENGINE_SWITCH_18'
:
'use-test-fonts=true'
,
'FLUTTER_ENGINE_SWITCH_19'
:
'use-test-fonts=true'
,
'FLUTTER_ENGINE_SWITCH_19'
:
'verbose-logging=true'
,
'FLUTTER_ENGINE_SWITCH_20'
:
'verbose-logging=true'
,
'FLUTTER_ENGINE_SWITCHES'
:
'19'
'FLUTTER_ENGINE_SWITCHES'
:
'20'
}
}
),
),
]);
]);
...
@@ -207,11 +206,10 @@ void main() {
...
@@ -207,11 +206,10 @@ void main() {
completer:
completer
,
completer:
completer
,
environment:
const
<
String
,
String
>{
environment:
const
<
String
,
String
>{
'FLUTTER_ENGINE_SWITCH_1'
:
'enable-dart-profiling=true'
,
'FLUTTER_ENGINE_SWITCH_1'
:
'enable-dart-profiling=true'
,
'FLUTTER_ENGINE_SWITCH_2'
:
'enable-background-compilation=true'
,
'FLUTTER_ENGINE_SWITCH_2'
:
'trace-startup=true'
,
'FLUTTER_ENGINE_SWITCH_3'
:
'trace-startup=true'
,
'FLUTTER_ENGINE_SWITCH_3'
:
'trace-allowlist=foo,bar'
,
'FLUTTER_ENGINE_SWITCH_4'
:
'trace-allowlist=foo,bar'
,
'FLUTTER_ENGINE_SWITCH_4'
:
'cache-sksl=true'
,
'FLUTTER_ENGINE_SWITCH_5'
:
'cache-sksl=true'
,
'FLUTTER_ENGINE_SWITCHES'
:
'4'
'FLUTTER_ENGINE_SWITCHES'
:
'5'
}
}
),
),
]);
]);
...
...
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