discontinuedPackage native_assets_cli has been discontinued and replaced by hooks.

targetArchitecture property

Architecture get targetArchitecture

The architecture the code code asset should be built for.

The build and link hooks are invoked once per targetArchitecture. If the invoker produces multi-architecture applications, the invoker is responsible for combining the CodeAssets for individual architectures into a universal binary. So, the build and link hook implementations are not responsible for providing universal binaries.

Implementation

Architecture get targetArchitecture =>
    ArchitectureSyntax.fromSyntax(_syntax.targetArchitecture);