-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix: update segment internal SPM dependencies with fixed version #708
Conversation
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
|
SDK binary size reports 📊SDK binary size of this PR
SDK binary size diff report between this PR and the main branch
|
Package.swift
Outdated
@@ -45,7 +45,7 @@ let package = Package( | |||
.package(name: "Firebase", url: "https://github.com/firebase/firebase-ios-sdk.git", "8.7.0"..<"11.0.0"), | |||
|
|||
// The version is a git commit hash. Make sure the commit is the same as what the DataPipelines CocoaPods is using. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed this comment needs to be updated 😅
Package.swift
Outdated
@@ -45,7 +45,7 @@ let package = Package( | |||
.package(name: "Firebase", url: "https://github.com/firebase/firebase-ios-sdk.git", "8.7.0"..<"11.0.0"), | |||
|
|||
// The version is a git commit hash. Make sure the commit is the same as what the DataPipelines CocoaPods is using. | |||
.package(name: "Segment", url: "https://github.com/customerio/cdp-analytics-swift.git", .exact("1.5.9+cio.1")) | |||
.package(name: "Segment", url: "https://github.com/customerio/cdp-analytics-swift.git", .exact("1.5.9+cio.2")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need the same change for pods, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do need to update the podspec files in this PR, too.
I say that because in version 1.5.9+cio.2 of our fork, the Package.swift file was modified to hard-code dependencies. But .podspec file in 1.5.9+cio.2 does not hard-code the dependencies versions.
I think what needs to happen is:
- Our iOS SDK uses a hard-coded version of our fork in Package.swift and .podspec files.
- Our fork uses hard-coded versions of dependencies in both Package.swift and .podspec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of the versions that you pointed to are not dependent on Segment
, they are also CIO forks (Segment don't support their cocoapods) so we are responsible for updating them, and hence even if they are not fixed its okay, they are not in hands of Segment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I update the forks and cocoapods releases to match the same versions, for clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 blocker conversation to resolve
Package.swift
Outdated
@@ -45,7 +45,7 @@ let package = Package( | |||
.package(name: "Firebase", url: "https://github.com/firebase/firebase-ios-sdk.git", "8.7.0"..<"11.0.0"), | |||
|
|||
// The version is a git commit hash. Make sure the commit is the same as what the DataPipelines CocoaPods is using. | |||
.package(name: "Segment", url: "https://github.com/customerio/cdp-analytics-swift.git", .exact("1.5.9+cio.1")) | |||
.package(name: "Segment", url: "https://github.com/customerio/cdp-analytics-swift.git", .exact("1.5.9+cio.2")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do need to update the podspec files in this PR, too.
I say that because in version 1.5.9+cio.2 of our fork, the Package.swift file was modified to hard-code dependencies. But .podspec file in 1.5.9+cio.2 does not hard-code the dependencies versions.
I think what needs to happen is:
- Our iOS SDK uses a hard-coded version of our fork in Package.swift and .podspec files.
- Our fork uses hard-coded versions of dependencies in both Package.swift and .podspec
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #708 +/- ##
==========================================
- Coverage 56.93% 56.91% -0.03%
==========================================
Files 139 139
Lines 3869 3869
==========================================
- Hits 2203 2202 -1
- Misses 1666 1667 +1 ☔ View full report in Codecov by Sentry. |
## [3.1.3](3.1.2...3.1.3) (2024-04-24) ### Bug Fixes * update segment internal SPM dependencies with fixed version ([#708](#708)) ([c02742e](c02742e))
in the new Segment release, the internal dependencies (sovran, JSON encoder) versions are fixed.