code_assets_testing library

Classes

AndroidCodeConfig
Configuration provided when CodeConfig.targetOS is OS.macOS.
Architecture
A hardware architecture which the Dart VM can run on.
AssetRouting
The destination for assets output in a build hook.
BuildConfig
BuildConfigBuilder
Builder
A builder to be run during a build hook.
BuildInput
BuildInputBuilder
BuildOutput
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).
CodeAssetExtension
The protocol extension for the hook/build.dart and hook/link.dart with CodeAssets and CodeConfig.
CodeConfig
Configuration for hook writers if code assets are supported.
Dependencies
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.
EncodedAsset
An encoding of a particular asset type.
HookConfig
The configuration for a build or link hook invocation.
HookConfigBuilder
HookInput
The shared properties of a LinkInput and a BuildInput.
HookInputBuilder
HookOutput
Identifier
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
LinkInputBuilder
LinkMode
The link mode for a CodeAsset.
LinkModePreference
The preferred linkMode method for CodeAssets.
LinkOutput
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.
PackageMetadata
PackageUserDefines
The user-defines for a single build hokok invocation
PackageUserDefinesSource
ProtocolExtension
An extension to the base protocol for hook/build.dart and hook/link.dart.
ResourceFile
ResourceIdentifiers
ResourceReference
StaticLinking
Static linking.
Target
ToAppBundle
Assets with this routing will be sent to the SDK to be bundled with the app.
ToBuildHooks
Assets with this routing will be sent to build hooks.
ToLinkHook
Assets with this routing will be sent to the link hook of packageName.
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

BuildConfigBuilderSetup on BuildConfigBuilder
CodeAssetBuildInputBuilder on HookConfigBuilder
Extension to initialize code specific configuration on link/build inputs.
CodeAssetBuildOutput on BuildOutputAssets
Provides access to CodeAssets from a build hook output.
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).
CodeAssetLinkOutput on LinkOutputAssets
Provides access to CodeAssets from a link hook output.
CodeAssetLinkOutputBuilder on EncodedAssetLinkOutputBuilder
Extension to the LinkOutputBuilder providing access to emitting code assets (only available if code assets are supported).
EncodedCodeAsset on EncodedAsset
OSLibraryNaming on OS

Functions

testCodeBuildHook({required dynamic mainMethod(List<String> arguments), required FutureOr<void> check(BuildInput, BuildOutput), Architecture? targetArchitecture, OS? targetOS, IOSSdk? targetIOSSdk, int? targetIOSVersion, int? targetMacOSVersion, int? targetAndroidNdkApi, CCompilerConfig? cCompiler, LinkModePreference? linkModePreference, bool? linkingEnabled}) Future<void>
Validate a code build hook; this will throw an exception on validation errors.
validateBuildInput(BuildInput input) Future<ValidationErrors>
validateBuildOutput(BuildInput input, BuildOutput output) Future<ValidationErrors>
Invoked by package:native_assets_builder
validateLinkInput(LinkInput input) Future<ValidationErrors>
validateLinkOutput(LinkInput input, LinkOutput output) Future<ValidationErrors>
Invoked by package:native_assets_builder