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.
|
/// just use the constant defined in the Flutter SDK.
|
||||||
const kDebugMode = true;
|
const kDebugMode = true;
|
||||||
|
|
||||||
@DriftDatabase(include: {'tables.drift'})
|
@DriftDatabase(
|
||||||
|
tables: [Users],
|
||||||
|
include: {'tables.drift'},
|
||||||
|
)
|
||||||
class Database extends _$Database {
|
class Database extends _$Database {
|
||||||
static const latestSchemaVersion = 9;
|
static const latestSchemaVersion = 9;
|
||||||
|
|
||||||
|
|
|
@ -7,15 +7,17 @@ targets:
|
||||||
drift_dev:not_shared:
|
drift_dev:not_shared:
|
||||||
enabled: true
|
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:
|
built_value_generator:built_value:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
run_built_value:
|
run_built_value:
|
||||||
dependencies: ['with_built_value']
|
dependencies: ['$default']
|
||||||
builders:
|
builders:
|
||||||
# Disable all auto-applied builders from drift
|
# Disable all auto-applied builders from drift
|
||||||
drift_dev:
|
drift_dev:
|
||||||
enabled: false
|
enabled: false
|
||||||
drift_dev:preparing_builder:
|
drift_dev:preparing_builder:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
build_resolvers:transitive_digests:
|
||||||
|
enabled: false
|
||||||
|
|
|
@ -3,18 +3,13 @@ publish_to: none
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.14.0 <3.0.0'
|
sdk: '>=2.14.0 <4.0.0'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
drift: ^2.0.0-dev
|
drift: ^2.11.0
|
||||||
built_value: ^8.0.0
|
built_value: ^8.0.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
drift_dev: ^2.0.0-dev
|
drift_dev: ^2.11.0
|
||||||
built_value_generator: ^8.1.3
|
built_value_generator: ^8.1.3
|
||||||
build_runner: ^2.0.0
|
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