NativeAssetsBuildRunner class

The programmatic API to be used by Dart launchers to invoke native builds.

These methods are invoked by launchers such as dartdev (for dart run) and flutter_tools (for flutter run and flutter build).

The native assets build runner does not support reentrancy for identical api.BuildConfig and api.LinkConfig! For more info see: https://github.com/dart-lang/native/issues/1319

Constructors

NativeAssetsBuildRunner({required Logger logger, required Uri dartExecutable, Duration? singleHookTimeout})

Properties

dartExecutable Uri
final
hashCode int
The hash code for this object.
no setterinherited
logger → Logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleHookTimeout Duration
final

Methods

build({required LinkModePreferenceImpl linkModePreference, required Target target, required Uri workingDirectory, required BuildModeImpl buildMode, CCompilerConfigImpl? cCompilerConfig, IOSSdkImpl? targetIOSSdk, int? targetIOSVersion, int? targetMacOSVersion, int? targetAndroidNdkApi, required bool includeParentEnvironment, PackageLayout? packageLayout, String? runPackageName, Iterable<String>? supportedAssetTypes, required bool linkingEnabled}) Future<BuildResult>
workingDirectory is expected to contain .dart_tool.
buildDryRun({required LinkModePreferenceImpl linkModePreference, required OSImpl targetOS, required Uri workingDirectory, required bool includeParentEnvironment, required bool linkingEnabled, PackageLayout? packageLayout, String? runPackageName, Iterable<String>? supportedAssetTypes}) Future<BuildDryRunResult>
workingDirectory is expected to contain .dart_tool.
workingDirectory is expected to contain .dart_tool.
linkDryRun({required LinkModePreferenceImpl linkModePreference, required OSImpl targetOS, required Uri workingDirectory, required bool includeParentEnvironment, PackageLayout? packageLayout, String? runPackageName, Iterable<String>? supportedAssetTypes, required BuildDryRunResult buildDryRunResult}) Future<LinkDryRunResult>
workingDirectory is expected to contain .dart_tool.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(HookConfigImpl config, HookOutputImpl output, PackageLayout packageLayout) Future<ValidateResult>

Operators

operator ==(Object other) bool
The equality operator.
inherited