Skip to content

Commit 4ab2e8f

Browse files
Nika HassaniNikaHsn
authored andcommitted
chore(analytics)!: remove deprecated apis
1 parent 365c5fb commit 4ab2e8f

File tree

4 files changed

+0
-15
lines changed

4 files changed

+0
-15
lines changed

packages/amplify_core/lib/src/types/analytics/analytics/analytics_event.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,4 @@ class AnalyticsEvent {
88

99
final String name;
1010
final CustomProperties customProperties = CustomProperties();
11-
12-
@Deprecated('Use customProperties instead')
13-
CustomProperties get properties => customProperties;
1411
}

packages/amplify_core/lib/src/types/analytics/analytics/custom_properties.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
import 'dart:collection';
55

6-
@Deprecated('Use CustomProperties instead')
7-
typedef AnalyticsProperties = CustomProperties;
8-
96
/// Provides key/value storage of typed property values of String, Double, Bool, and Int.
107
class CustomProperties {
118
CustomProperties();

packages/amplify_core/lib/src/types/analytics/analytics/user_profile.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
import 'package:amplify_core/src/types/analytics/analytics/custom_properties.dart';
55
import 'package:amplify_core/src/types/analytics/analytics/user_profile_location.dart';
66

7-
@Deprecated('Use UserProfile instead')
8-
typedef AnalyticsUserProfile = UserProfile;
9-
107
/// User specific data.
118
class UserProfile {
129
const UserProfile({
@@ -22,7 +19,4 @@ class UserProfile {
2219
final String? plan;
2320
final UserProfileLocation? location;
2421
final CustomProperties? customProperties;
25-
26-
@Deprecated('Use customProperties instead')
27-
CustomProperties? get properties => customProperties;
2822
}

packages/amplify_core/lib/src/types/analytics/analytics/user_profile_location.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
@Deprecated('Use UserProfileLocation instead')
5-
typedef AnalyticsUserProfileLocation = UserProfileLocation;
6-
74
/// Location data of a user.
85
class UserProfileLocation {
96
const UserProfileLocation({

0 commit comments

Comments
 (0)