Add a flutter doctor --android-licenses command that locates and runs the Android SDK license manager (#9892)

See https://github.com/flutter/flutter/issues/8438
This commit is contained in:
Jason Simmons
2017-05-09 10:18:45 -07:00
committed by GitHub
parent 5cec108023
commit f44ba8b9c9
5 changed files with 52 additions and 5 deletions

View File

@@ -61,6 +61,9 @@ abstract class OperatingSystemUtils {
}
List<File> _which(String execName, {bool all: false});
/// Returns the separator between items in the PATH environment variable.
String get pathVarSeparator;
}
class _PosixUtils extends OperatingSystemUtils {
@@ -120,6 +123,9 @@ class _PosixUtils extends OperatingSystemUtils {
}
return _name;
}
@override
String get pathVarSeparator => ':';
}
class _WindowsUtils extends OperatingSystemUtils {
@@ -193,6 +199,9 @@ class _WindowsUtils extends OperatingSystemUtils {
}
return _name;
}
@override
String get pathVarSeparator => ';';
}
/// Find and return the project root directory relative to the specified