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
8e9b7872
Unverified
Commit
8e9b7872
authored
Jun 23, 2020
by
Jonah Williams
Committed by
GitHub
Jun 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] switch linux desktop feature on (#60018)
Enable linux desktop feature on dev channel
parent
e676024d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
features.dart
packages/flutter_tools/lib/src/features.dart
+4
-0
features_test.dart
packages/flutter_tools/test/general.shard/features_test.dart
+5
-5
No files found.
packages/flutter_tools/lib/src/features.dart
View file @
8e9b7872
...
...
@@ -114,6 +114,10 @@ const Feature flutterLinuxDesktopFeature = Feature(
available:
true
,
enabledByDefault:
false
,
),
dev:
FeatureChannelSetting
(
available:
true
,
enabledByDefault:
false
,
),
);
/// The [Feature] for Windows desktop.
...
...
packages/flutter_tools/test/general.shard/features_test.dart
View file @
8e9b7872
...
...
@@ -92,7 +92,7 @@ void main() {
test
(
'flutter Linux desktop help string'
,
()
{
expect
(
flutterLinuxDesktopFeature
.
generateHelpMessage
(),
'Enable or disable Flutter for desktop on Linux. '
'This setting will take effect on the master
channel
.'
);
'This setting will take effect on the master
and dev channels
.'
);
});
test
(
'flutter Windows desktop help string'
,
()
{
...
...
@@ -306,18 +306,18 @@ void main() {
expect
(
featureFlags
.
isLinuxEnabled
,
false
);
}));
test
(
'flutter linux desktop
not
enabled with config on dev'
,
()
=>
testbed
.
run
(()
{
test
(
'flutter linux desktop enabled with config on dev'
,
()
=>
testbed
.
run
(()
{
when
(
mockFlutterVerion
.
channel
).
thenReturn
(
'dev'
);
when
<
bool
>(
mockFlutterConfig
.
getValue
(
'enable-linux-desktop'
)
as
bool
).
thenReturn
(
true
);
expect
(
featureFlags
.
isLinuxEnabled
,
fals
e
);
expect
(
featureFlags
.
isLinuxEnabled
,
tru
e
);
}));
test
(
'flutter linux desktop
not
enabled with environment variable on dev'
,
()
=>
testbed
.
run
(()
{
test
(
'flutter linux desktop enabled with environment variable on dev'
,
()
=>
testbed
.
run
(()
{
when
(
mockFlutterVerion
.
channel
).
thenReturn
(
'dev'
);
when
(
mockPlatform
.
environment
).
thenReturn
(<
String
,
String
>{
'FLUTTER_LINUX'
:
'true'
});
expect
(
featureFlags
.
isLinuxEnabled
,
fals
e
);
expect
(
featureFlags
.
isLinuxEnabled
,
tru
e
);
}));
test
(
'flutter linux desktop off by default on beta'
,
()
=>
testbed
.
run
(()
{
...
...
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