What a DVBuildTarget is handed: the project, the options, and the parts of the CLI's own pipeline it may use.
Properties
-
dartvelSection
→ Map<
Object?, Object?> -
The
dartvel:section of the project's pubspec.yaml, or empty.no setter -
environment
→ Map<
String, String> ? -
The environment child processes should get: the inherited one plus any
toolchain installed during this run. Null when nothing was added.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostOs → String
-
Platform.operatingSystemof the machine building.no setter - options → DVBuildOptions
-
no setter
- projectRoot → String
-
The project being built.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolchainHome → String
-
The home directory Dartvel-managed toolchains are installed under, as
<home>/.dartvel/toolchains.no setter
Methods
-
buildPlatform(
String platform, {DVPlatformVariant? variant, DVBuildOptions? options}) → Future< DVBuildTargetResult> -
Runs the free
platform's pipeline --android,ios,weband the rest -- withvariantapplied, andoptionsin place of the ones the command was given. -
ensureScaffold(
String platform) → Future< bool> -
Generates the platform directory (
web/,android/, ...) when the project has none. False, having said why, when that failed. -
hasDependency(
String package) → bool -
Whether pubspec.yaml declares
packagein any dependency section. -
isOnPath(
String executable) → bool -
Whether
executableresolves on PATH (or exists, when absolute). -
log(
String line) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
String executable, List< String> arguments, {String? workingDirectory, Map<String, String> ? environment}) → Future<ProcessResult> -
Runs
executableto completion and returns what it printed. -
stream(
String executable, List< String> arguments, {required String description, String? workingDirectory, Map<String, String> ? environment}) → Future<int?> -
Starts
executablewith its output passed through and waits for it, killing it when it exceeds DVBuildOptions.timeout. Returns its exit code, or null when it was killed (having said so). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited