code_assets library
Code asset support for hook authors.
Classes
- Architecture
- A hardware architecture which the Dart VM can run on.
- BuildConfig
- Builder
- A builder to be run during a build hook.
- BuildMode
- The build mode for compiling native code assets.
- 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.
- 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 shared properties of a LinkConfig and a BuildConfig.
- IOSSdk
- For an iOS target, a build is either done for the device or the simulator.
- LinkConfig
- Linker
- A linker to be run during a link hook.
- 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()
. - Metadata
- OS
- An operating system the Dart VM runs on.
- StaticLinking
- Static linking.
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).
- 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).
- CodeAssetLinkOutputBuilder on LinkOutputBuilder
- 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(BuildConfig config, BuildOutputBuilder output)) → Future<void> - Runs a native assets build.
-
link(
List< String> arguments, Future<void> linker(LinkConfig config, LinkOutputBuilder output)) → Future<void> - Runs a native assets link.