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

Build-time generator that embeds Locorda CRDT merge contracts (mapping documents) into your app bundle at compile time for offline-first cold-start.

locorda_mapping_bootstrap_generator #

pub package license

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
194
downloads

Documentation

API reference

Publisher

verified publisherlocorda.dev

Weekly Downloads

Build-time generator that embeds Locorda CRDT merge contracts (mapping documents) into your app bundle at compile time for offline-first cold-start.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#build #code-generation #crdt

License

MIT (license)

Dependencies

build, glob

More

Packages that depend on locorda_mapping_bootstrap_generator