code_assets_testing library

Classes

Architecture
A hardware architecture which the Dart VM can run on.
BuildConfig
BuildConfigBuilder
Builder
A builder to be run during a build hook.
BuildMode
The build mode for compiling native code assets.
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).
CodeConfig
Configuration for hook writers if code assets are supported.
Dependencies
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 shared properties of a LinkConfig and a BuildConfig.
HookConfigBuilder
HookOutput
Identifier
IOSSdk
For an iOS target, a build is either done for the device or the simulator.
LinkConfig
LinkConfigBuilder
Linker
A linker to be run during a link hook.
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().
Metadata
OS
An operating system the Dart VM runs on.
ResourceFile
ResourceIdentifiers
ResourceReference
StaticLinking
Static linking.
Target

Extension Types

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

Extensions

CodeAssetBuildConfig on BuildConfig
Extension to the BuildConfig providing access to configuration specific to code assets (only available if code assets are supported).
CodeAssetBuildConfigBuilder on HookConfigBuilder
Extension to initialize code specific configuration on link/build configs.
CodeAssetBuildOutput on BuildOutput
Provides access to CodeAssets from a build hook output.
CodeAssetBuildOutputBuilder on BuildOutputBuilder
Extension to the BuildOutputBuilder providing access to emitting code assets (only available if code assets are supported).
CodeAssetLinkConfig on LinkConfig
Extension to the LinkConfig 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 LinkOutput
Provides access to CodeAssets from a link hook output.
CodeAssetLinkOutputBuilder on LinkOutputBuilder
Extension to the LinkOutputBuilder providing access to emitting code assets (only available if code assets are supported).
OSLibraryNaming on OS

Functions

testCodeBuildHook({required String description, required dynamic mainMethod(List<String> arguments), required FutureOr<void> check(BuildConfig, BuildOutput), BuildMode? buildMode, Architecture? targetArchitecture, OS? targetOS, IOSSdk? targetIOSSdk, int? targetIOSVersion, int? targetMacOSVersion, int? targetAndroidNdkApi, CCompilerConfig? cCompiler, LinkModePreference? linkModePreference, required List<String> supportedAssetTypes, bool? linkingEnabled}) Future<void>
validateBuildConfig(BuildConfig config) Future<ValidationErrors>
validateBuildOutput(BuildConfig config, BuildOutput output) Future<ValidationErrors>
Invoked by package:native_assets_builder
validateCodeAssetBuildConfig(BuildConfig config) Future<ValidationErrors>
validateCodeAssetBuildOutput(BuildConfig config, BuildOutput output) Future<ValidationErrors>
validateCodeAssetInApplication(List<EncodedAsset> assets) Future<ValidationErrors>
Validates that the given code assets can be used together in an application.
validateCodeAssetLinkConfig(LinkConfig config) Future<ValidationErrors>
validateCodeAssetLinkOutput(LinkConfig config, LinkOutput output) Future<ValidationErrors>
validateLinkConfig(LinkConfig config) Future<ValidationErrors>
validateLinkOutput(LinkConfig config, LinkOutput output) Future<ValidationErrors>
Invoked by package:native_assets_builder