Skip to main content

assistant_actions_generator 0.0.6 copy "assistant_actions_generator: ^0.0.6" to clipboard
assistant_actions_generator: ^0.0.6 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 for AssistantActions.start and 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.

0
likes
0
points
1.12k
downloads

Publisher

verified publisherabdallahshaban.com

Weekly Downloads

build_runner generator for assistant_actions: turns annotated Dart actions, entities and App Schema adoptions into App Intents Swift for iOS and macOS.

Repository (GitHub)
View/report issues

Topics

#siri #app-intents #codegen #build-runner

License

unknown (license)

Dependencies

analyzer, build, dart_style, path, source_gen

More

Packages that depend on assistant_actions_generator