code_assets library

Code asset support for hook authors.

Classes

AndroidCodeConfig
Configuration provided when CodeConfig.targetOS is OS.macOS.
Architecture
A hardware architecture which the Dart VM can run on.
BuildConfig
BuildConfigBuilder
Builder
A builder to be run during a build hook.
BuildInput
BuildOutputBuilder
Builder to produce the output of a build hook.
CCompilerConfig
The configuration for a C toolchain.
CodeAsset
A code asset which respects the native application binary interface (ABI).
CodeConfig
Configuration for hook writers if code assets are supported.
DeveloperCommandPrompt
The Windows Developer Command Prompt.
DynamicLoadingBundled
The dynamic library is bundled by Dart/Flutter at build time.
DynamicLoadingSystem
The dynamic library is avaliable on the target system PATH.
HookConfig
The configuration for a build or link hook invocation.
HookConfigBuilder
HookInput
The shared properties of a LinkInput and a BuildInput.
IOSCodeConfig
Configuration provided when CodeConfig.targetOS is OS.iOS.
IOSSdk
For an iOS target, a build is either done for the device or the simulator.
Linker
A linker to be run during a link hook.
LinkInput
LinkMode
The link mode for a CodeAsset.
LinkModePreference
The preferred linkMode method for CodeAssets.
LinkOutputBuilder
Builder to produce the output of a link hook.
LookupInExecutable
The native code is embedded in executable and symbols are available through DynamicLibrary.executable().
LookupInProcess
The native code is loaded in the process and symbols are available through DynamicLibrary.process().
MacOSCodeConfig
/ Configuration provided when CodeConfig.targetOS is OS.macOS.
Metadata
OS
An operating system the Dart VM runs on.
StaticLinking
Static linking.
WindowsCCompilerConfig
Configuration provided when CodeConfig.targetOS is OS.windows.

Extension Types

CodeAssetBuildOutputBuilderAdd
Supports emitting code assets for build hooks.
CodeAssetLinkOutputBuilderAdd
Extension on LinkOutputBuilder to emit code assets.

Extensions

CodeAssetBuildOutputBuilder on EncodedAssetBuildOutputBuilder
Extension to the BuildOutputBuilder providing access to emitting code assets (only available if code assets are supported).
CodeAssetHookConfig on HookConfig
Extension to the HookConfig providing access to configuration specific to code assets (only available if code assets are supported).
CodeAssetLinkInput on LinkInputAssets
Extension to the LinkInput providing access to configuration specific to code assets as well as code asset inputs to the linker (only available if code assets are supported).
CodeAssetLinkOutputBuilder on EncodedAssetLinkOutputBuilder
Extension to the LinkOutputBuilder providing access to emitting code assets (only available if code assets are supported).
OSLibraryNaming on OS

Functions

build(List<String> arguments, Future<void> builder(BuildInput input, BuildOutputBuilder output)) Future<void>
Runs a native assets build.
Runs a native assets link.