Skip to content

Commit

Permalink
Merge pull request #205 from klaviyo/as/rel-400
Browse files Browse the repository at this point in the history
4.0.0 release branch
  • Loading branch information
ajaysubra authored Sep 26, 2024
2 parents 7170b38 + 1bc691e commit 896e2d3
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion KlaviyoSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "KlaviyoSwift"
s.version = "3.2.0"
s.version = "4.0.0"
s.summary = "Incorporate Klaviyo's event and person tracking and push notifications functionality into iOS applications"

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion KlaviyoSwiftExtension.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "KlaviyoSwiftExtension"
s.version = "3.2.0"
s.version = "4.0.0"
s.summary = "Incorporate Klaviyo's rich push notifications functionality into your iOS applications"

s.description = <<-DESC
Expand Down
7 changes: 7 additions & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

This guide outlines how developers can migrate from older versions of our SDK to newer ones.

## Migrating to v4.0.0

### `Event.EventName` enum:

- We have removed the PascalCase names in the `Event.EventName` enum, leaving only the camelCase names. You will need to remove any references to the old PascalCase names. See [Migrating to v3.3.0](https://github.com/klaviyo/klaviyo-swift-sdk/blob/as/rel-400/MIGRATION_GUIDE.md#migrating-to-v330) below for more details.
- We have removed the `.OpenedPush` case (there is no camelCase replacement), as this is intended for internal use only. You will need to remove any references to the `.OpenedPush` case.

## Migrating to v3.3.0

We've updated the case names in the `Event.EventName` enum from PascalCase to camelCase, to be consistent with [Swift naming conventions](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/enumerations/).
Expand Down
2 changes: 1 addition & 1 deletion Sources/KlaviyoCore/Utils/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
import Foundation

public let __klaviyoSwiftName = "swift"
public let __klaviyoSwiftVersion = "3.2.0"
public let __klaviyoSwiftVersion = "4.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"OS Version" : "1.1.1",
"Push Token" : "",
"SDK Name" : "swift",
"SDK Version" : "3.2.0",
"SDK Version" : "4.0.0",
"stuff" : 2
},
"time" : "2009-02-13T23:31:30Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"manufacturer" : "Orange",
"os_name" : "iOS",
"os_version" : "1.1.1",
"sdk_version" : "3.2.0"
"sdk_version" : "4.0.0"
},
"enablement_status" : "AUTHORIZED",
"platform" : "ios",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"manufacturer" : "Orange",
"os_name" : "iOS",
"os_version" : "1.1.1",
"sdk_version" : "3.2.0"
"sdk_version" : "4.0.0"
},
"enablement_status" : "AUTHORIZED",
"platform" : "ios",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- "deflate"
▿ (2 elements)
- key: "User-Agent"
- value: "FooApp/1.2.3 (com.klaviyo.fooapp; build:1; iOS 1.1.1) klaviyo-ios/3.2.0"
- value: "FooApp/1.2.3 (com.klaviyo.fooapp; build:1; iOS 1.1.1) klaviyo-ios/4.0.0"
▿ (2 elements)
- key: "X-Klaviyo-Mobile"
- value: "1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- "FooApp/1.2.3 (com.klaviyo.fooapp; build:1; iOS 1.1.1) klaviyo-ios/3.2.0"
- "FooApp/1.2.3 (com.klaviyo.fooapp; build:1; iOS 1.1.1) klaviyo-ios/4.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"manufacturer" : "Orange",
"os_name" : "iOS",
"os_version" : "1.1.1",
"sdk_version" : "3.2.0"
"sdk_version" : "4.0.0"
},
"pushBackground" : "AVAILABLE",
"pushEnablement" : "AUTHORIZED",
Expand All @@ -42,7 +42,7 @@
"manufacturer" : "Orange",
"os_name" : "iOS",
"os_version" : "1.1.1",
"sdk_version" : "3.2.0"
"sdk_version" : "4.0.0"
},
"enablement_status" : "AUTHORIZED",
"platform" : "ios",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- manufacturer: "Orange"
- osName: "iOS"
- osVersion: "1.1.1"
- sdkVersion: "3.2.0"
- sdkVersion: "4.0.0"
- pushBackground: PushBackground.available
- pushEnablement: PushEnablement.authorized
- pushToken: "blob_token"
Expand Down

0 comments on commit 896e2d3

Please sign in to comment.