From b30c21e577dd71758fef9fc32436daf849c2eab9 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Sat, 8 Feb 2020 20:43:57 +0100 Subject: [PATCH] Mention non-shared builder in changelog --- docs/content/en/docs/Advanced Features/builder_options.md | 6 +++++- moor/CHANGELOG.md | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/content/en/docs/Advanced Features/builder_options.md b/docs/content/en/docs/Advanced Features/builder_options.md index 53ca48dc..39c474ff 100644 --- a/docs/content/en/docs/Advanced Features/builder_options.md +++ b/docs/content/en/docs/Advanced Features/builder_options.md @@ -99,7 +99,7 @@ In general, we recommend not enabling these options unless you need to. There ar Starting with moor 2.4, it's possible to use classes generated by moor in other builders. Due to technicalities related to Dart's build system and `source_gen`, this approach requires a custom configuration -and minor code changes. +and minor code changes. Put this content in a file called `build.yaml` next to your `pubspec.yaml`: ```yaml targets: @@ -110,6 +110,10 @@ targets: enabled: false moor_generator|moor_generator_not_shared: enabled: true + # If needed, you can configure the builder like this: + # options: + # skip_verification_code: true + # use_experimental_inference: true # Run built_value_generator when moor is done, which is not in this target. built_value_generator|built_value: diff --git a/moor/CHANGELOG.md b/moor/CHANGELOG.md index 81386e10..1b836fca 100644 --- a/moor/CHANGELOG.md +++ b/moor/CHANGELOG.md @@ -8,6 +8,7 @@ [#260](https://github.com/simolus3/moor/issues/260). - Fix a crash when opening a transaction without using it ([#361](https://github.com/simolus3/moor/issues/361)) - New `mapFromCompanion` method in generated tables to convert a `UpdateCompanion` to a model. +- Support generated moor classes in other builders (like `built_value`). Details [in the docs](https://moor.simonbinder.eu/docs/advanced-features/builder_options/) ## 2.3.0