diff --git a/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile b/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile index 62da1b18..2a5c524d 100644 --- a/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile +++ b/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile @@ -2,9 +2,9 @@ platform :ios, '13.0' use_frameworks! target 'CocoapodsExample' do - pod 'KlaviyoSwift', '2.4.0' + pod 'KlaviyoSwift', '3.0.1' end target 'NotificationServiceExtension' do - pod 'KlaviyoSwiftExtension', '2.4.0' + pod 'KlaviyoSwiftExtension', '3.0.1' end diff --git a/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile.lock b/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile.lock index c9dfed6f..a76b87a0 100644 --- a/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile.lock +++ b/Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile.lock @@ -1,12 +1,12 @@ PODS: - AnyCodable-FlightSchool (0.6.7) - - KlaviyoSwift (2.4.0): + - KlaviyoSwift (3.0.1): - AnyCodable-FlightSchool - - KlaviyoSwiftExtension (2.4.0) + - KlaviyoSwiftExtension (3.0.1) DEPENDENCIES: - - KlaviyoSwift (= 2.4.0) - - KlaviyoSwiftExtension (= 2.4.0) + - KlaviyoSwift (= 3.0.1) + - KlaviyoSwiftExtension (= 3.0.1) SPEC REPOS: trunk: @@ -16,9 +16,9 @@ SPEC REPOS: SPEC CHECKSUMS: AnyCodable-FlightSchool: 261cbe76757802b17d471b9059b21e6fa5edf57b - KlaviyoSwift: 9c7abb283be65363cd5e52f88fd7628cf624d867 - KlaviyoSwiftExtension: b385f5d6e23b335215659bbfa9a9a88d71f29477 + KlaviyoSwift: 6e60d72194b12995f6326b8abac0598c9a58e462 + KlaviyoSwiftExtension: 3aa3f39f2d8b25424d17cd41e1e717939dea91dd -PODFILE CHECKSUM: db75413a6fe9b262409743e8dce12e489271cdcc +PODFILE CHECKSUM: 0e01c771c2241e458c117e9ad0fc5219a42e2cf3 -COCOAPODS: 1.12.1 +COCOAPODS: 1.14.3 diff --git a/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.pbxproj b/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.pbxproj index 834ccd5b..0ad4cef3 100644 --- a/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.pbxproj +++ b/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.pbxproj @@ -782,8 +782,8 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/klaviyo/klaviyo-swift-sdk"; requirement = { - kind = exactVersion; - version = 2.4.0; + kind = upToNextMinorVersion; + minimumVersion = 3.0.0; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 330fe49f..52913981 100644 --- a/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Examples/KlaviyoSwiftExamples/SPMExample/SPMExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -14,8 +14,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/klaviyo/klaviyo-swift-sdk", "state" : { - "revision" : "bb2506d192a8cdb9396c81061a90469c1f2c1486", - "version" : "2.4.0" + "revision" : "bcfb37dac6d424a20ae8e77bbe5aafdb66e8228f", + "version" : "3.0.1" } } ], diff --git a/Examples/KlaviyoSwiftExamples/Shared/CheckOutViewController.swift b/Examples/KlaviyoSwiftExamples/Shared/CheckOutViewController.swift index 506e1704..537c62f5 100644 --- a/Examples/KlaviyoSwiftExamples/Shared/CheckOutViewController.swift +++ b/Examples/KlaviyoSwiftExamples/Shared/CheckOutViewController.swift @@ -63,7 +63,7 @@ class CheckOutViewController: UIViewController { "Items Purchased": uniqueItemsArray.map(\.name) ] - KlaviyoSDK().create(event: .init(name: .PlacedOrder, properties: propertiesDictionary, value: cartTotal)) + KlaviyoSDK().create(event: .init(name: .CustomEvent("Order placed"), properties: propertiesDictionary, value: cartTotal)) // Trigger thank you modal view let alertController = UIAlertController( diff --git a/Examples/KlaviyoSwiftExamples/Shared/MenuPageViewController.swift b/Examples/KlaviyoSwiftExamples/Shared/MenuPageViewController.swift index 66c808df..4f9d762b 100644 --- a/Examples/KlaviyoSwiftExamples/Shared/MenuPageViewController.swift +++ b/Examples/KlaviyoSwiftExamples/Shared/MenuPageViewController.swift @@ -89,7 +89,7 @@ class MenuPageViewController: UIViewController { if let vc = segue.destination as? CheckOutViewController { vc.cart = cart // EXAMPLE: of triggering checkout event - KlaviyoSDK().create(event: .init(name: .StartedCheckout)) + KlaviyoSDK().create(event: .init(name: .StartedCheckoutMetric)) } } } @@ -239,7 +239,7 @@ class MenuPageViewController: UIViewController { ] // EXAMPLE : of Checkout Started.. but no placed order # - KlaviyoSDK().create(event: .init(name: .StartedCheckout, properties: propertiesDictionary)) + KlaviyoSDK().create(event: .init(name: .StartedCheckoutMetric, properties: propertiesDictionary)) } tableView.reloadData()