mirror of https://github.com/AMT-Cheif/drift.git
Fix example builds
This commit is contained in:
parent
043d41ee73
commit
1f7954d6a9
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue