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
66667507
Unverified
Commit
66667507
authored
May 19, 2021
by
Jonah Williams
Committed by
GitHub
May 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] adjust some feature settings (#82851)
parent
574dfc38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
features.dart
packages/flutter_tools/lib/src/features.dart
+4
-0
features_test.dart
packages/flutter_tools/test/general.shard/features_test.dart
+13
-0
No files found.
packages/flutter_tools/lib/src/features.dart
View file @
66667507
...
@@ -301,6 +301,10 @@ const Feature windowsUwpEmbedding = Feature(
...
@@ -301,6 +301,10 @@ const Feature windowsUwpEmbedding = Feature(
available:
true
,
available:
true
,
enabledByDefault:
false
,
enabledByDefault:
false
,
),
),
dev:
FeatureChannelSetting
(
available:
true
,
enabledByDefault:
false
,
),
);
);
/// A [Feature] is a process for conditionally enabling tool features.
/// A [Feature] is a process for conditionally enabling tool features.
...
...
packages/flutter_tools/test/general.shard/features_test.dart
View file @
66667507
...
@@ -467,6 +467,19 @@ void main() {
...
@@ -467,6 +467,19 @@ void main() {
expect
(
featureFlags
.
isWindowsUwpEnabled
,
true
);
expect
(
featureFlags
.
isWindowsUwpEnabled
,
true
);
});
});
testWithoutContext
(
'Flutter Windows UWP desktop off by default on dev'
,
()
{
final
FeatureFlags
featureFlags
=
createFlags
(
'dev'
);
expect
(
featureFlags
.
isWindowsUwpEnabled
,
false
);
});
testWithoutContext
(
'Flutter Windows UWP desktop enabled with config on dev'
,
()
{
final
FeatureFlags
featureFlags
=
createFlags
(
'dev'
);
testConfig
.
setValue
(
'enable-windows-uwp-desktop'
,
true
);
expect
(
featureFlags
.
isWindowsUwpEnabled
,
true
);
});
testWithoutContext
(
'Flutter Windows UWP desktop off by default on stable'
,
()
{
testWithoutContext
(
'Flutter Windows UWP desktop off by default on stable'
,
()
{
final
FeatureFlags
featureFlags
=
createFlags
(
'stable'
);
final
FeatureFlags
featureFlags
=
createFlags
(
'stable'
);
...
...
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