retrofit_craft_plugin 0.5.0
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, andretrofit_craft_plugin. No functional changes vs 0.4.0 — version bumped to keep the four packages in lock-step going forward. - Internal:
riverpod_craft_pluginandcraft_runnerconstraints 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: acraft_runnerproject-wide plugin (ProjectWideCraftPlugin) that scans every.dartfile underlib/for@Api-annotated retrofit classes plus the user'sEntry/Versionenums (or classes with static const fields) and emits one aggregator file (lib/app/app_api.craft.dartby 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>.pathonto the entry's baseUrl when the Version enum declares afinal String path;field — lets the URL version segment live in one place. - Handles class-name collisions across files with auto-generated
asaliases 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.