Skip to content

Commit 57e388d

Browse files
authored
[flutter_migrate] Compute (#2734)
* Compute * Licenses: * Licenses for test * Merge with depenencies * Address comments p1 * Separate out logging from logic * Refactor into smaller methods * Improve logging and verbose usages * Diferentiate merge skip vs total skip * More docs * Remove additional skip * Fix custom merge tests * Mocked environment * Formatting * TImeouts * Use separate enum to address project directories including root * tests passing * Fix analyzer * address comments, formatting * Test robustness * Fix update locks test * formatting * logging for CI test failures * Canonicalize test paths * Canonizalize both sides of tests * Address comments, fix tests * Formatting * Gradle locks test
1 parent 95edfea commit 57e388d

File tree

10 files changed

+2098
-61
lines changed

10 files changed

+2098
-61
lines changed

packages/flutter_migrate/lib/src/base/project.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ enum SupportedPlatform {
1616
web,
1717
windows,
1818
fuchsia,
19-
root, // Special platform to represent the root project directory
2019
}
2120

2221
class FlutterProjectFactory {
@@ -61,10 +60,8 @@ class FlutterProject {
6160
File get metadataFile => directory.childFile('.metadata');
6261

6362
/// Returns a list of platform names that are supported by the project.
64-
List<SupportedPlatform> getSupportedPlatforms({bool includeRoot = false}) {
65-
final List<SupportedPlatform> platforms = includeRoot
66-
? <SupportedPlatform>[SupportedPlatform.root]
67-
: <SupportedPlatform>[];
63+
List<SupportedPlatform> getSupportedPlatforms() {
64+
final List<SupportedPlatform> platforms = <SupportedPlatform>[];
6865
if (directory.childDirectory('android').existsSync()) {
6966
platforms.add(SupportedPlatform.android);
7067
}

0 commit comments

Comments
 (0)