diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/analysis_options.yaml b/packages/notifications/push/amplify_push_notifications_pinpoint/analysis_options.yaml index 7f150b80760..5a5fe52406b 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/analysis_options.yaml +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/analysis_options.yaml @@ -3,5 +3,3 @@ include: package:amplify_lints/library.yaml analyzer: exclude: - "**/*.g.dart" - errors: - public_member_api_docs: ignore diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart index e35af956832..3ed95f3ae9d 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart @@ -13,7 +13,6 @@ import 'package:amplify_analytics_pinpoint_dart/src/impl/analytics_client/analyt import 'package:amplify_analytics_pinpoint_dart/src/sdk/src/pinpoint/model/channel_type.dart'; import 'package:amplify_core/amplify_core.dart'; import 'package:amplify_push_notifications_pinpoint/src/event_info_type.dart'; -import 'package:amplify_push_notifications_pinpoint/src/version.dart'; import 'package:amplify_secure_storage/amplify_secure_storage.dart'; import 'package:flutter/widgets.dart'; @@ -39,8 +38,9 @@ class PinpointProvider implements ServiceProviderClient { 'pinpoint.campaign.treatment_id'; bool _isInitialized = false; - static final userAgent = - 'amplify-flutter/${packageVersion.split('+').first}/pushnotifications'; + /// UserAgent string for Push Notifications made public for testing + @visibleForTesting + static const userAgent = 'pushnotifications'; static R _withUserAgent(R Function() fn) { final globalUserAgent = diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/version.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/version.dart deleted file mode 100644 index 7f7775ea78e..00000000000 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/version.dart +++ /dev/null @@ -1,2 +0,0 @@ -// Generated code. Do not modify. -const packageVersion = '1.0.0-next.0'; diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml b/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml index 90ac098981e..9a69d0a8c80 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml @@ -24,7 +24,6 @@ dev_dependencies: amplify_lints: ^2.0.0 amplify_test: any build_runner: ^2.3.3 - build_version: ^2.1.1 built_value_generator: 8.4.4 flutter_test: sdk: flutter