From de6b723aeea92fb611b62cb81fee4e8dcfd9ee64 Mon Sep 17 00:00:00 2001 From: Kha Truong <64438356+khatruong2009@users.noreply.github.com> Date: Fri, 17 Nov 2023 11:07:15 -0800 Subject: [PATCH] chore: pubspec change --- .github/dependabot.yaml | 14 ++++++++++++++ .../example/lib/amplifyconfiguration_logging.dart | 12 ++++++------ .../example/pubspec.yaml | 2 +- ...t => amplify_logging_cloudwatch_dart_test.dart} | 0 4 files changed, 21 insertions(+), 7 deletions(-) rename packages/logging/amplify_logging_cloudwatch_dart/test/{aws_logging_cloudwatch_test.dart => amplify_logging_cloudwatch_dart_test.dart} (100%) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index bdb45d63d0..f490d86551 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1961,7 +1961,14 @@ updates: update-types: - "version-update:semver-patch" # Ignore all repo packages + - dependency-name: "amplify_logging_cloudwatch_dart" + - dependency-name: "amplify_core" + - dependency-name: "aws_common" - dependency-name: "amplify_lints" + - dependency-name: "aws_signature_v4" + - dependency-name: "amplify_db_common_dart" + - dependency-name: "smithy" + - dependency-name: "smithy_aws" # Group dependencies which have a constraint set in the global "pubspec.yaml" groups: build_runner: @@ -1980,7 +1987,14 @@ updates: update-types: - "version-update:semver-patch" # Ignore all repo packages + - dependency-name: "amplify_logging_cloudwatch_dart" + - dependency-name: "amplify_core" + - dependency-name: "aws_common" - dependency-name: "amplify_lints" + - dependency-name: "aws_signature_v4" + - dependency-name: "amplify_db_common_dart" + - dependency-name: "smithy" + - dependency-name: "smithy_aws" # Group dependencies which have a constraint set in the global "pubspec.yaml" groups: build_runner: diff --git a/packages/logging/amplify_logging_cloudwatch/example/lib/amplifyconfiguration_logging.dart b/packages/logging/amplify_logging_cloudwatch/example/lib/amplifyconfiguration_logging.dart index c73e240584..9efb303398 100644 --- a/packages/logging/amplify_logging_cloudwatch/example/lib/amplifyconfiguration_logging.dart +++ b/packages/logging/amplify_logging_cloudwatch/example/lib/amplifyconfiguration_logging.dart @@ -1,13 +1,11 @@ const loggingconfig = '''{ + "plugins": { + "cloudWatchLoggerPluginConfiguration": { "enable": true, - "logGroupName": "", - "region": "", + "logGroupName": "test-logging-log-group", + "region": "us-west-2", "localStoreMaxSizeInMB": 5, "flushIntervalInSeconds": 60, - "defaultRemoteConfiguration": { - "endpoint": "https://.execute-api..amazonaws.com/prod/loggingconstraints", - "refreshIntervalInSeconds": 1200 - }, "loggingConstraints": { "defaultLogLevel": "ERROR", "categoryLogLevel": { @@ -24,4 +22,6 @@ const loggingconfig = '''{ } } } + } + } }'''; diff --git a/packages/logging/amplify_logging_cloudwatch_dart/example/pubspec.yaml b/packages/logging/amplify_logging_cloudwatch_dart/example/pubspec.yaml index 5a2d980660..96171f0c9d 100644 --- a/packages/logging/amplify_logging_cloudwatch_dart/example/pubspec.yaml +++ b/packages/logging/amplify_logging_cloudwatch_dart/example/pubspec.yaml @@ -7,7 +7,7 @@ environment: sdk: "^3.0.0" dependencies: - aws_logging_cloudwatch: + amplify_logging_cloudwatch_dart: path: ../ dev_dependencies: diff --git a/packages/logging/amplify_logging_cloudwatch_dart/test/aws_logging_cloudwatch_test.dart b/packages/logging/amplify_logging_cloudwatch_dart/test/amplify_logging_cloudwatch_dart_test.dart similarity index 100% rename from packages/logging/amplify_logging_cloudwatch_dart/test/aws_logging_cloudwatch_test.dart rename to packages/logging/amplify_logging_cloudwatch_dart/test/amplify_logging_cloudwatch_dart_test.dart