From 68624545e6ef45e6c4d07bf76addade067479683 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Sun, 9 Apr 2023 11:41:05 +0200 Subject: [PATCH] dynamite, nextcloud: enable built_value Signed-off-by: Nikolas Rimikis --- packages/dynamite/build.yaml | 4 ++-- packages/nextcloud/build.yaml | 6 ++---- packages/nextcloud/pubspec.yaml | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/dynamite/build.yaml b/packages/dynamite/build.yaml index 73fa6bce..7625766a 100644 --- a/packages/dynamite/build.yaml +++ b/packages/dynamite/build.yaml @@ -18,5 +18,5 @@ builders: build_extensions: {'.openapi.json': ['openapi.dart']} auto_apply: root_package build_to: source - runs_before: ["json_serializable"] - applies_builders: ["json_serializable"] + runs_before: ["built_value_generator|built_value"] + applies_builders: ["built_value_generator|built_value"] diff --git a/packages/nextcloud/build.yaml b/packages/nextcloud/build.yaml index b5d3d896..3d80b246 100644 --- a/packages/nextcloud/build.yaml +++ b/packages/nextcloud/build.yaml @@ -1,7 +1,5 @@ targets: $default: builders: - json_serializable: - options: - disallow_unrecognized_keys: true - explicit_to_json: true + built_value_generator|built_value: + enabled: true diff --git a/packages/nextcloud/pubspec.yaml b/packages/nextcloud/pubspec.yaml index 2ef6e823..da7818c6 100644 --- a/packages/nextcloud/pubspec.yaml +++ b/packages/nextcloud/pubspec.yaml @@ -5,11 +5,12 @@ environment: sdk: '>=3.0.0 <4.0.0' dependencies: + built_collection: ^5.1.1 + built_value: ^8.5.0 cookie_jar: ^4.0.2 crypto: ^3.0.3 crypton: ^2.0.5 intl: ^0.18.0 - json_annotation: ^4.8.1 universal_io: ^2.2.0 version: ^3.0.2 xml: ^6.3.0 @@ -20,7 +21,6 @@ dev_dependencies: coverage: ^1.6.3 dynamite: path: ../dynamite - json_serializable: ^6.6.2 nit_picking: git: url: https://github.com/stack11/dart_nit_picking