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
bd6b5cef
Unverified
Commit
bd6b5cef
authored
Aug 21, 2022
by
Zachary Anderson
Committed by
GitHub
Aug 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] Enable custom devices on all channels (#109953)
parent
957a8da4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
features.dart
packages/flutter_tools/lib/src/features.dart
+6
-0
features_test.dart
packages/flutter_tools/test/general.shard/features_test.dart
+15
-0
No files found.
packages/flutter_tools/lib/src/features.dart
View file @
bd6b5cef
...
...
@@ -196,6 +196,12 @@ const Feature flutterCustomDevicesFeature = Feature(
master:
FeatureChannelSetting
(
available:
true
,
),
beta:
FeatureChannelSetting
(
available:
true
,
),
stable:
FeatureChannelSetting
(
available:
true
,
),
);
/// The fast hot reload feature for https://github.com/flutter/flutter/issues/61407.
...
...
packages/flutter_tools/test/general.shard/features_test.dart
View file @
bd6b5cef
...
...
@@ -384,5 +384,20 @@ void main() {
});
}
// Custom devices on all channels
for
(
final
String
channel
in
<
String
>[
'master'
,
'beta'
,
'stable'
])
{
testWithoutContext
(
'Custom devices are enabled with flag on
$channel
'
,
()
{
final
FeatureFlags
featureFlags
=
createFlags
(
channel
);
testConfig
.
setValue
(
'enable-custom-devices'
,
true
);
expect
(
featureFlags
.
areCustomDevicesEnabled
,
true
);
});
testWithoutContext
(
'Custom devices are enabled with environment variable on
$channel
'
,
()
{
final
FeatureFlags
featureFlags
=
createFlags
(
channel
);
platform
.
environment
=
<
String
,
String
>{
'FLUTTER_CUSTOM_DEVICES'
:
'true'
};
expect
(
featureFlags
.
areCustomDevicesEnabled
,
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