Skip to content

Commit

Permalink
Merge pull request #150 from klaviyo/as/chnl-4626-updates-to-example-app
Browse files Browse the repository at this point in the history
Updated example app with new major release
  • Loading branch information
ajaysubra authored Jan 26, 2024
2 parents bcfb37d + 79ca524 commit ec79b37
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 8 additions & 8 deletions Examples/KlaviyoSwiftExamples/CocoapodsExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ec79b37

Please sign in to comment.