-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: dart FileStorage refactor and unit tests added
- Loading branch information
1 parent
53ef002
commit 0506c77
Showing
9 changed files
with
318 additions
and
28 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/logging_cloudwatch/amplify_logging_cloudwatch/.gitignore
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
4 changes: 3 additions & 1 deletion
4
packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/file_storage/file_storage.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
24 changes: 24 additions & 0 deletions
24
...ges/logging_cloudwatch/aws_logging_cloudwatch/lib/src/file_storage/file_storage_stub.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,24 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import 'package:amplify_core/amplify_core.dart'; | ||
import 'package:aws_logging_cloudwatch/src/file_storage/file_storage.dart'; | ||
|
||
/// File storage implementation for saving and loading constraint locally | ||
class FileStorageImpl implements FileStorage { | ||
/// File storage implementation for saving and loading constraint locally | ||
FileStorageImpl(this.pathProvider); | ||
|
||
/// Path provider to get the application support path | ||
final AppPathProvider pathProvider; | ||
|
||
@override | ||
Future<String?> loadConstraint(String fileName) async { | ||
throw UnimplementedError(); | ||
} | ||
|
||
@override | ||
Future<void> saveConstraintLocally(String fileName, String content) async { | ||
throw UnimplementedError(); | ||
} | ||
} |
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
4 changes: 4 additions & 0 deletions
4
packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/plugin_config.g.dart
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
Oops, something went wrong.