-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/main' into fix/53/resolve-OutOfMemoryError-i…
…ssue
- Loading branch information
Showing
32 changed files
with
632 additions
and
99 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
...ures/merge/data/data_sources/merge_statistics_service/local_merge_statistics_service.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,17 @@ | ||
// Copyright 2024 BBK Development. All rights reserved. | ||
// Use of this source code is governed by a GPL-style license that can be found | ||
// in the LICENSE file. | ||
|
||
import 'package:vmerge/src/features/merge/merge.dart'; | ||
|
||
/// {@template local_merge_statistics_service} | ||
/// An interface that inherits from [MergeStatisticsService] and defines the | ||
/// requirements for implementations that use a local service. | ||
/// | ||
/// The [LocalMergeStatistics] type is the model type. | ||
/// {@endtemplate} | ||
abstract interface class LocalMergeStatisticsService | ||
implements MergeStatisticsService<LocalMergeStatistics> { | ||
/// {@macro local_merge_statistics_service} | ||
const LocalMergeStatisticsService(); | ||
} |
21 changes: 21 additions & 0 deletions
21
...c/features/merge/data/data_sources/merge_statistics_service/merge_statistics_service.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,21 @@ | ||
// Copyright 2024 BBK Development. All rights reserved. | ||
// Use of this source code is governed by a GPL-style license that can be found | ||
// in the LICENSE file. | ||
|
||
export 'local_merge_statistics_service.dart'; | ||
export 'object_box_merge_statistics_service.dart'; | ||
|
||
/// {@template merge_statistics_service} | ||
/// An interface that defines the requirements for implementations that provide | ||
/// merge statistics. | ||
/// | ||
/// The [M] type is the model type. | ||
/// {@endtemplate} | ||
abstract interface class MergeStatisticsService<M> { | ||
/// {@macro merge_statistics_service} | ||
const MergeStatisticsService(); | ||
|
||
Future<M> getMergeStatistics(); | ||
|
||
Future<void> saveMergeStatistics(M statistics); | ||
} |
Oops, something went wrong.