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

Build-time generator for embedding CRDT mapping documents (merge strategy definitions).

locorda_mapping_bootstrap_generator #

Build-time code generator that embeds CRDT mapping documents (merge strategy definitions) into your application's assets at compile time.

This generator is included automatically when you add locorda_dev as a dev dependency. You do not need to depend on this package directly.

What it generates #

For each @RootResource-annotated class, the generator produces a mapping_bootstrap.g.dart file that registers the CRDT merge contract (.ttl mapping document) into the app bundle so the sync engine can resolve merge strategies without a network round-trip.

Usage #

Add locorda_dev as a dev dependency — it aggregates this generator along with all other required builders:

flutter pub add dev:locorda_dev dev:build_runner
dart run build_runner build

Further reading #

  • locorda_dev — umbrella dev dependency for all Locorda generators
  • locorda — getting started guide
0
likes
140
points
--
downloads

Documentation

API reference

Publisher

verified publisherlocorda.dev

Build-time generator for embedding CRDT mapping documents (merge strategy definitions).

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

build, glob

More

Packages that depend on locorda_mapping_bootstrap_generator