data_assets library

Data asset support for hook authors.

Classes

AssetRouting
The destination for assets output in a build hook.
BuildConfig
BuildConfigBuilder
Builder
A builder to be run during a build hook.
BuildInput
BuildOutputBuilder
Builder to produce the output of a build hook.
DataAsset
Data bundled with a Dart or Flutter application.
HookConfig
The configuration for a build or link hook invocation.
HookConfigBuilder
HookInput
The shared properties of a LinkInput and a BuildInput.
Linker
A linker to be run during a link hook.
LinkInput
LinkOutputBuilder
Builder to produce the output of a link hook.
Metadata
PackageMetadata
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.

Extension Types

DataAssetBuildOutputBuilderAdd
Supports emitting code assets for build hooks.
DataAssetLinkOutputBuilderAdd
Extension on LinkOutputBuilder to emit data assets.

Extensions

AddDataAssetsDirectory on BuildOutputBuilder
DataAssetBuildOutputBuilder on EncodedAssetBuildOutputBuilder
Build output extension for data assets.
DataAssetHookConfig on HookConfig
Extension to the HookConfig providing access to configuration specific to data assets.
DataAssetLinkInput on LinkInputAssets
Link output extension for data assets.
DataAssetLinkOutputBuilder on EncodedAssetLinkOutputBuilder
Extension to the LinkOutputBuilder providing access to emitting data assets (only available if data assets are supported).
EncodedDataAsset on EncodedAsset

Functions

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