Skip to content

Commit

Permalink
Chore(logging): move queued-item-store into aws_logging_cloudwatch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 authored Nov 14, 2023
1 parent bed027a commit 1fbc85e
Show file tree
Hide file tree
Showing 26 changed files with 418 additions and 316 deletions.
95 changes: 55 additions & 40 deletions .github/dependabot.yaml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .github/workflows/amplify_api_dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand All @@ -50,6 +52,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/amplify_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand All @@ -46,6 +48,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/amplify_datastore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand All @@ -46,6 +48,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/amplify_datastore_plugin_interface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand All @@ -42,6 +44,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/smithy/smithy/lib/**/*.dart'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/amplify_push_notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/notifications/push/amplify_push_notifications/**/*.dart'
Expand Down Expand Up @@ -52,6 +54,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/notifications/push/amplify_push_notifications/**/*.dart'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/amplify_push_notifications_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/notifications/push/amplify_push_notifications/example/**/*.dart'
Expand Down Expand Up @@ -48,6 +50,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/pubspec.yaml'
- 'packages/notifications/push/amplify_push_notifications/example/**/*.dart'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/aws_logging_cloudwatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/**/*.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*'
Expand All @@ -44,6 +46,8 @@ on:
- 'packages/aws_common/pubspec.yaml'
- 'packages/aws_signature_v4/lib/**/*.dart'
- 'packages/aws_signature_v4/pubspec.yaml'
- 'packages/common/amplify_db_common_dart/lib/**/*.dart'
- 'packages/common/amplify_db_common_dart/pubspec.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/**/*.dart'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/**/*.yaml'
- 'packages/logging_cloudwatch/aws_logging_cloudwatch/lib/**/*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:amplify_logging_cloudwatch/src/amplify_log_stream_name_provider.dart';
import 'package:amplify_logging_cloudwatch/src/path_provider/flutter_path_provider.dart';
import 'package:amplify_logging_cloudwatch/src/queued_item_store/dart_queued_item_store.dart';
import 'package:aws_logging_cloudwatch/aws_logging_cloudwatch.dart';

/// {@macro aws_logging_cloudwatch.cloudwatch_logger_plugin}
Expand All @@ -17,7 +16,6 @@ class AmplifyCloudWatchLoggerPlugin extends CloudWatchLoggerPlugin {
defaultLogStreamNameProvider:
AmplifyLogStreamNameProvider().defaultLogStreamName,
),
logStore: DartQueuedItemStore(null),
remoteLoggingConstraintProvider:
pluginConfig.defaultRemoteConfiguration == null
? null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ environment:

dependencies:
amplify_core: ">=1.4.0 <1.5.0"
amplify_db_common_dart: ">=0.3.0+1 <0.4.0"
aws_common: ">=0.6.0 <0.7.0"
aws_logging_cloudwatch: ^0.1.0
collection: ^1.15.0
device_info_plus: ^9.0.0
drift: ">=2.12.0 <2.13.0"
flutter:
sdk: flutter
intl: ">=0.18.0 <1.0.0"
Expand Down
Loading

0 comments on commit 1fbc85e

Please sign in to comment.