assistant_actions_generator 0.0.7
assistant_actions_generator: ^0.0.7 copied to clipboard
build_runner generator for assistant_actions: turns annotated Dart actions, entities and App Schema adoptions into App Intents Swift for iOS and macOS.
assistant_actions_generator #
The build_runner generator for
assistant_actions. It reads
@AssistantAction, @AssistantEntity and App Schema annotations from
lib/assistant_actions.dart and writes:
lib/assistant_actions.g.dart— the registry forAssistantActions.startand a typed handler interface per schema entity;packages/assistant_actions_app/.../AssistantActions.g.swift— the App Intents, entities, queries and schema containers;apple/AssistantShortcuts.g.swift— the App Shortcuts, for the Runner targets.
flutter pub add assistant_actions dev:build_runner dev:assistant_actions_generator
dart run build_runner build
Schema definitions come from the catalog bundled with assistant_actions
(exported from Xcode's AppIntentSchemas.sqlite), so generation doesn't need
Xcode and works on any CI. See the assistant_actions README for usage.