Skip to content

Commit

Permalink
[flutter_migrate] Compute (#2734)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
GaryQian authored Dec 6, 2022
1 parent 95edfea commit 57e388d
Show file tree
Hide file tree
Showing 10 changed files with 2,098 additions and 61 deletions.
7 changes: 2 additions & 5 deletions packages/flutter_migrate/lib/src/base/project.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ enum SupportedPlatform {
web,
windows,
fuchsia,
root, // Special platform to represent the root project directory
}

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

/// Returns a list of platform names that are supported by the project.
List<SupportedPlatform> getSupportedPlatforms({bool includeRoot = false}) {
final List<SupportedPlatform> platforms = includeRoot
? <SupportedPlatform>[SupportedPlatform.root]
: <SupportedPlatform>[];
List<SupportedPlatform> getSupportedPlatforms() {
final List<SupportedPlatform> platforms = <SupportedPlatform>[];
if (directory.childDirectory('android').existsSync()) {
platforms.add(SupportedPlatform.android);
}
Expand Down
Loading

0 comments on commit 57e388d

Please sign in to comment.