Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CT Wrapper small fixes #524

Merged
merged 3 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion LeanplumSDK/LeanplumSDK/Classes/Leanplum.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion LeanplumSDK/LeanplumSDK/ClassesSwift/ApiConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 11.02.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion LeanplumSDK/LeanplumSDK/ClassesSwift/ContentMerger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 18.05.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Milos Jakovljevic on 24.12.21.
//
// Copyright © 2021 Leanplum. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 6.10.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down
4 changes: 2 additions & 2 deletions LeanplumSDK/LeanplumSDK/ClassesSwift/Leanplum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 6.10.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

@objc public extension MigrationManager {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 2.10.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 3.10.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 13.07.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 2.10.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 6.10.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion LeanplumSDK/LeanplumSDK/ClassesSwift/User.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LeanplumSDK
//
// Created by Nikola Zagorchev on 25.02.22.
//
// Copyright © 2022 Leanplum. All rights reserved.

import Foundation

Expand Down