diff --git a/examples/migrations_example/lib/database.dart b/examples/migrations_example/lib/database.dart index 399f7b3b..f933fcc5 100644 --- a/examples/migrations_example/lib/database.dart +++ b/examples/migrations_example/lib/database.dart @@ -11,7 +11,10 @@ part 'database.g.dart'; /// just use the constant defined in the Flutter SDK. const kDebugMode = true; -@DriftDatabase(include: {'tables.drift'}) +@DriftDatabase( + tables: [Users], + include: {'tables.drift'}, +) class Database extends _$Database { static const latestSchemaVersion = 9; diff --git a/examples/with_built_value/build.yaml b/examples/with_built_value/build.yaml index 2dd82a63..4878939b 100644 --- a/examples/with_built_value/build.yaml +++ b/examples/with_built_value/build.yaml @@ -7,15 +7,17 @@ targets: drift_dev:not_shared: enabled: true - # Run built_value_generator when drift is done! + # Run built_value_generator when drift is done (so after this target) built_value_generator:built_value: enabled: false run_built_value: - dependencies: ['with_built_value'] + dependencies: ['$default'] builders: # Disable all auto-applied builders from drift drift_dev: enabled: false drift_dev:preparing_builder: enabled: false + build_resolvers:transitive_digests: + enabled: false diff --git a/examples/with_built_value/pubspec.yaml b/examples/with_built_value/pubspec.yaml index 5c1dabf1..7a8c0a20 100644 --- a/examples/with_built_value/pubspec.yaml +++ b/examples/with_built_value/pubspec.yaml @@ -3,18 +3,13 @@ publish_to: none version: 1.0.0 environment: - sdk: '>=2.14.0 <3.0.0' + sdk: '>=2.14.0 <4.0.0' dependencies: - drift: ^2.0.0-dev + drift: ^2.11.0 built_value: ^8.0.0 dev_dependencies: - drift_dev: ^2.0.0-dev + drift_dev: ^2.11.0 built_value_generator: ^8.1.3 build_runner: ^2.0.0 - -# built_value_generator does not yet support the latest version of the analyzer -# but there will be no problems after updating the analyzer to 5 version -dependency_overrides: - analyzer: ^5.0.0