build_support library Null safety

Classes

VersionBoundaries
VersionBoundary

Constants

dartTemplateConsoleSimple → const String
console-simple: A simple command-line application. (default)
'console-simple'
flutterTemplateApp → const String
'app'

Properties

buildSupportsAndroid bool
Always allowed for now
read-only
buildSupportsIOS bool
For now based on x-code presence.
read-only
buildSupportsLinux bool
read-only
buildSupportsMacOS bool
read-only
buildSupportsWindows bool
read-only
isFlutterSupportedSync bool
true if flutter is supported
read-only
isNodeSupportedSync bool
true if flutter is supported
final

Functions

buildInitDart() Future<void>
Setup minimum Dart support
buildInitFlutter() Future<void>
Setup minimum flutter support
dartCreateProject({String template = dartTemplateConsoleSimple, required String path}) Future<void>
flutterCreateProject({required String path, String template = flutterTemplateApp, bool? noAnalyze}) Future<void>
nodeSetupCheck(String dir) Future
Install node modules for test.
pathGetAnalysisOptionsYamlMap(String packageDir) Future<Map<String, Object?>>
pathGetPubspecYamlMap(String packageDir) Future<Map<String, Object?>>
pathPubspecAddDependency(String dir, String dependency, {List<String>? dependencyLines}) Future<bool>
Returns true if added
pathPubspecGetDependencyLines(String dir, String dependency) Future<List<String>?>
pathPubspecRemoveDependency(String dir, String dependency) Future<bool>
pubspecYamlGetSdkBoundaries(Map? map) VersionBoundaries?
pubspecYamlGetVersion(Map yaml) Version
pubspecYamlHasAnyDependencies(Map yaml, List<String> dependencies) bool
pubspecYamlSupportsFlutter(Map map) bool
pubspecYamlSupportsNode(Map map) bool
pubspecYamlSupportsTest(Map map) bool
pubspecYamlSupportsWeb(Map map) bool