Skip to content

Commit

Permalink
chore: remove vesion dependency becuase user agent string does not ne…
Browse files Browse the repository at this point in the history
…ed it
  • Loading branch information
Samaritan1011001 committed Apr 14, 2023
1 parent 7d53e99 commit 787a219
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ include: package:amplify_lints/library.yaml
analyzer:
exclude:
- "**/*.g.dart"
errors:
public_member_api_docs: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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>(R Function() fn) {
final globalUserAgent =
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 787a219

Please sign in to comment.