diff --git a/LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m b/LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m index ff64a2cc..b2dbbafb 100644 --- a/LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m +++ b/LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m @@ -3,7 +3,7 @@ // Leanplum // // Created by Andrew First on 4/30/12. -// Copyright (c) 2012 Leanplum, Inc. All rights reserved. +// Copyright (c) 2022 Leanplum, Inc. All rights reserved. // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file diff --git a/LeanplumSDK/LeanplumSDK/Classes/Internal/LeanplumInternal.h b/LeanplumSDK/LeanplumSDK/Classes/Internal/LeanplumInternal.h index 075e355f..3d7658cf 100644 --- a/LeanplumSDK/LeanplumSDK/Classes/Internal/LeanplumInternal.h +++ b/LeanplumSDK/LeanplumSDK/Classes/Internal/LeanplumInternal.h @@ -3,7 +3,7 @@ // Leanplum // // Created by Andrew First on 4/30/15. -// Copyright (c) 2015 Leanplum, Inc. All rights reserved. +// Copyright (c) 2022 Leanplum, Inc. All rights reserved. // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file diff --git a/LeanplumSDK/LeanplumSDK/Classes/Leanplum.h b/LeanplumSDK/LeanplumSDK/Classes/Leanplum.h index acad153c..3feaea8a 100644 --- a/LeanplumSDK/LeanplumSDK/Classes/Leanplum.h +++ b/LeanplumSDK/LeanplumSDK/Classes/Leanplum.h @@ -2,7 +2,7 @@ // Leanplum.h // Leanplum iOS SDK Version 2.0.6 // -// Copyright (c) 2012 Leanplum, Inc. All rights reserved. +// Copyright (c) 2022 Leanplum, Inc. All rights reserved. // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/ApiConfig.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/ApiConfig.swift index e24b4973..efa3ea3f 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/ApiConfig.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/ApiConfig.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 11.02.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/ContentMerger.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/ContentMerger.swift index 0661f0bc..2f1a0226 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/ContentMerger.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/ContentMerger.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 18.05.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Bundle+Extensions.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Bundle+Extensions.swift index bcc263be..7dedc0ee 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Bundle+Extensions.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Bundle+Extensions.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Milos Jakovljevic on 24.12.21. -// +// Copyright © 2021 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Dictionary+MapKeys.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Dictionary+MapKeys.swift index cdc59165..19297a19 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Dictionary+MapKeys.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Extensions/Dictionary+MapKeys.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 6.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Leanplum.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Leanplum.swift index 7ead0bf1..98344e6f 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Leanplum.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Leanplum.swift @@ -2,8 +2,8 @@ // Leanplum.swift // LeanplumSDK // -// Created by Milos Jakovljevic on 4.5.22.. -// +// Created by Milos Jakovljevic on 4.5.22. +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/LPCTNotificationsManager.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/LPCTNotificationsManager.swift index abcea0cc..938739ca 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/LPCTNotificationsManager.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/LPCTNotificationsManager.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 12.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation // Use @_implementationOnly to *not* expose CleverTapSDK to the Leanplum-Swift header diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+API.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+API.swift index c664bac5..f59fda43 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+API.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+API.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 6.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. @objc public extension MigrationManager { diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+Constants.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+Constants.swift index cccf5589..0590692a 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+Constants.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+Constants.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 2.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+ResponseHandler.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+ResponseHandler.swift index 7e00b0ed..f414be9d 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+ResponseHandler.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager+ResponseHandler.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 3.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager.swift index 95d95b29..a297d7c9 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationManager.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 13.07.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation @@ -32,7 +32,7 @@ import Foundation @PropUserDefaults(key: Constants.AttributeMappingsKey, defaultValue: [:]) var attributeMappings: [String: String] - @MigrationStateUserDefaults(key: Constants.HashKey, defaultValue: .undefined) + @MigrationStateUserDefaults(key: Constants.MigrationStateKey, defaultValue: .undefined) var migrationState: MigrationState { didSet { if oldValue != migrationState { diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationState.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationState.swift index f09df9b8..50a84822 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationState.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/MigrationState.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 2.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper+Utilities.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper+Utilities.swift index 2779e432..1b056fb3 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper+Utilities.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper+Utilities.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 6.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation // Use @_implementationOnly to *not* expose CleverTapSDK to the Leanplum-Swift header diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper.swift index 3b93c412..1feb0e41 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 9.07.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation // Use @_implementationOnly to *not* expose CleverTapSDK to the Leanplum-Swift header @@ -87,7 +87,8 @@ class CTWrapper: Wrapper { // MARK: Tracking func track(_ eventName: String?, value: Double, info: String?, params: [String: Any]) { // message impression events come with event: nil - guard let eventName = eventName else { + // do not track Push Delivered in CT + guard let eventName = eventName, eventName != PUSH_DELIVERED_EVENT_NAME else { return } diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/IdentityManager.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/IdentityManager.swift index 5408b3e8..7353643b 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/IdentityManager.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/IdentityManager.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 6.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/Wrapper.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/Wrapper.swift index d1230cfd..9fc2f313 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/Wrapper.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/Wrapper.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 6.10.22. -// +// Copyright © 2022 Leanplum. All rights reserved. protocol Wrapper { /// Launches the wrapper instance, diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/NSObject+Notifications.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/NSObject+Notifications.swift index 1ea59a2e..fbfa37ac 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/NSObject+Notifications.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/NSObject+Notifications.swift @@ -3,7 +3,7 @@ // Leanplum-iOS-SDK // // Created by Nikola Zagorchev on 30.09.21. -// Copyright © 2021 Leanplum. All rights reserved. +// Copyright © 2022 Leanplum. All rights reserved. import Foundation import UIKit diff --git a/LeanplumSDK/LeanplumSDK/ClassesSwift/User.swift b/LeanplumSDK/LeanplumSDK/ClassesSwift/User.swift index 9ce80a11..724f3cd1 100644 --- a/LeanplumSDK/LeanplumSDK/ClassesSwift/User.swift +++ b/LeanplumSDK/LeanplumSDK/ClassesSwift/User.swift @@ -3,7 +3,7 @@ // LeanplumSDK // // Created by Nikola Zagorchev on 25.02.22. -// +// Copyright © 2022 Leanplum. All rights reserved. import Foundation