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

4.0.0 release branch #205

Merged
merged 15 commits into from
Sep 26, 2024
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 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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cocoapods are not yet setup correctly for release since it's needing a actual tag on the repo. For now did something to get CI happy but once I publish a tag and SPM I'll fix cocoapods.

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
Loading