retrofit_craft_plugin 0.5.0 copy "retrofit_craft_plugin: ^0.5.0" to clipboard
retrofit_craft_plugin: ^0.5.0 copied to clipboard

craft_runner plugin that generates a grouped, versioned retrofit API client aggregator.

0.5.0 #

  • Synchronized release across riverpod_craft_plugin, craft_runner, retrofit_craft, and retrofit_craft_plugin. No functional changes vs 0.4.0 — version bumped to keep the four packages in lock-step going forward.
  • Internal: riverpod_craft_plugin and craft_runner constraints bumped to ^0.5.0.

0.4.0 #

Initial pub.dev release. Versioned in lock-step with retrofit_craft, craft_runner, and riverpod_craft_plugin.

  • RetrofitApiPlugin: a craft_runner project-wide plugin (ProjectWideCraftPlugin) that scans every .dart file under lib/ for @Api-annotated retrofit classes plus the user's Entry / Version enums (or classes with static const fields) and emits one aggregator file (lib/app/app_api.craft.dart by default).
  • Accepts annotation arguments as Entry.identity, Entry.identity (property access), or the Dart 3.6+ dot-shorthand .identity.
  • Configurable via riverpod_craft.yaml: default_entry, default_version, entry_path, version_path, output, root_class_name.
  • Concatenates Version.<name>.path onto the entry's baseUrl when the Version enum declares a final String path; field — lets the URL version segment live in one place.
  • Handles class-name collisions across files with auto-generated as aliases on imports.
  • Validates: unknown entry/version, mixed versioned+unversioned within a group, duplicate versions, missing required entry — each as a clear diagnostic that aborts generation.
0
likes
140
points
76
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

craft_runner plugin that generates a grouped, versioned retrofit API client aggregator.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, path, riverpod_craft_plugin, yaml

More

Packages that depend on retrofit_craft_plugin