-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(b-altoke-local-database): brick creation (#397)
* feat(b-altoke-local-database): Create interface reference * feat(b-altoke-local-database): create implementation on top of Drift * feat(b-altoke-local-database): create implementation on top of Isar * feat(t-local-database-alternative): create local DB alternative helper * feat(b-altoke-local-database): brick setup * chore(b-altoke-local-database): base scope setup * docs(b-altoke-local-database): update READMEs * refactor(b-altoke-local-database): drop unnecessary refs prefix * chore(b-altoke-local-database): ignore generated files * refactor(b-altoke-local-database): drop unnecessary refs prefix * feat(b-altoke-local-database): use latest version of Drift * chore(b-altoke-app): update deps for internal example * chore(b-altoke-app): internal local DB example * fix(b-altoke-app): use compatible version of `collection` * fix(b-altoke-app): ignore tasks internal example for brick * feat(b-altoke-app): more flexible code gen setup * chore(b-altoke-local-database): create brick * chore: source gen * chore: source gen * fix(b-altoke-database): proper data validity check * build(b-altoke-database): add `meta` dep * feat(b-altoke-database): task as data class * fix(b-altoke-database): drop const constructor for testing * test(b-altoke-database): add testing * fix(b-altoke-database): store trimmed description * feat(b-altoke-local-database): add Hive-based implementation * docs(b-altoke-local-database): add Hive support details * test(b-altoke-local-database): fix Hive tests * test(b-altoke-local-database): ensure test coverage * docs(b-altoke-local-database): update Hive support details * test(b-altoke-local-database): ensure test coverage * feat(b-altoke-local-database): Sembast implementation * ci: install SQLite on Windows * chore: update local spellcheck setup * chore: locate SQLite DLL * chore: locate SQLite DLL * ci: temporary remove Windows from testing OSs * ci: ignore tests related to SQLite on Windows * ci: ignore tests related to SQLite on Windows * ci: ignore tests related to SQLite on Windows and log setup * ci: use proper steps order * chore: update template * chore: update templates * chore: update templates * fix(b-altoke-app): ignore tasks internal example for brick * chore: cover TODOs * fix(b-altoke-local-database): fix template replacements * fix(b-altoke-local-database): use proper target dirs * chore(t-monorepo-elements): register local database brick * chore: use latest local DB alternatives * test(b-altoke-local-database): add E2E tests
- Loading branch information
1 parent
a0d3502
commit 4de6d7d
Showing
202 changed files
with
10,486 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Generated source files | ||
/**/__brick__/**/*.gr.dart | ||
/**/__brick__/**/*.g.dart | ||
/**/__brick__/**/external/** | ||
/**/__brick__/**/tasks/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 30 additions & 1 deletion
31
bricks/altoke_app/reference/packages/app/lib/app/state/async_initialization_pod.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,40 @@ | ||
/*remove-start*/ | ||
import 'package:altoke_app/external/external.dart'; | ||
/*remove-end*/ | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:riverpod_annotation/riverpod_annotation.dart'; | ||
|
||
part 'async_initialization_pod.g.dart'; | ||
|
||
/*w 2v w*/ | ||
/*remove-start*/ | ||
// coverage:ignore-start | ||
/*remove-end*/ | ||
@Riverpod( | ||
dependencies: [], | ||
/*w 1v 2> w*/ | ||
/*remove-start*/ | ||
// coverage:ignore-end | ||
/*remove-end*/ | ||
dependencies: [ | ||
/*remove-start*/ | ||
asyncApplicationDocumentsDirectory, | ||
asyncDriftLocalDatabase, | ||
asyncHiveInitialization, | ||
asyncIsar, | ||
/*remove-end*/ | ||
], | ||
) | ||
Future<void> asyncInitialization(Ref ref) async { | ||
// Run async initialization. | ||
/*remove-start*/ | ||
// coverage:ignore-start | ||
await ref.watch(asyncApplicationDocumentsDirectoryPod.future); | ||
await ref.watch(asyncDriftLocalDatabasePod.future); | ||
await ref.watch(asyncApplicationDocumentsDirectoryPod.future); | ||
await ref.watch(asyncHiveInitializationPod.future); | ||
await ref.watch(asyncApplicationDocumentsDirectoryPod.future); | ||
await ref.watch(asyncIsarPod.future); | ||
// coverage:ignore-end | ||
/*remove-end*/ | ||
/*w 1v w*/ | ||
} |
20 changes: 17 additions & 3 deletions
20
bricks/altoke_app/reference/packages/app/lib/app/state/async_initialization_pod.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
bricks/altoke_app/reference/packages/app/lib/external/data/data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export 'database_pod.dart'; | ||
export 'directories_pods.dart'; |
Oops, something went wrong.