LinkConfig class abstract

The configuration for a link hook (hook/link.dart) invocation.

It consists of a subset of the fields from the BuildConfig already passed to the build hook and the assets from the build step.

Implemented types

Constructors

LinkConfig.build({required Uri outputDirectory, required String packageName, required Uri packageRoot, Architecture? targetArchitecture, required OS targetOS, IOSSdk? targetIOSSdk, CCompilerConfig? cCompiler, BuildMode? buildMode, List<String>? supportedAssetTypes, int? targetAndroidNdkApi, required Iterable<Asset> assets, required LinkModePreference linkModePreference, bool? dryRun, Version? version})
factory
LinkConfig.dryRun({required Uri outputDirectory, required String packageName, required Uri packageRoot, required OS targetOS, List<String>? supportedAssetTypes, required Iterable<Asset> assets, required LinkModePreference linkModePreference, Version? version})
factory
LinkConfig.fromArguments(List<String> arguments)
Generate the LinkConfig from the input arguments to the linking script.
factory

Properties

assets Iterable<Asset>
The list of assets to be linked. These are the assets generated by a build.dart script destined for this packages link.dart.
no setter
buildMode BuildMode
The BuildMode that the code should be compiled in.
no setterinherited
cCompiler CCompilerConfig
The configuration for invoking the C compiler.
no setterinherited
dryRun bool
Whether this run is a dry-run, which doesn't build anything.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
linkModePreference LinkModePreference
The preferred LinkMode method for NativeCodeAssets.
no setterinherited
outputDirectory Uri
The directory in which all output and intermediate artifacts should be placed.
no setterinherited
packageName String
The name of the package the assets are built for.
no setterinherited
packageRoot Uri
The root of the package the assets are built for.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedAssetTypes Iterable<String>
The asset types that the invoker of this hook supports.
no setterinherited
targetAndroidNdkApi int?
When compiling for Android, the minimum Android SDK API version to that the compiled code will be compatible with.
no setterinherited
targetArchitecture Architecture?
The architecture being compiled for.
no setterinherited
targetIOSSdk IOSSdk?
When compiling for iOS, whether to target device or simulator.
no setterinherited
targetOS OS
The operating system being compiled for.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

latestVersion → Version
The version of BuildConfig.
no setter