-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update TCA to latest * incorporate Anycodable * fix many concurrency issues
- Loading branch information
Showing
158 changed files
with
14,028 additions
and
5,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,21 +14,40 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
library: | ||
library-macos-14: | ||
name: Build and Run Unit Tests | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
xcode: ['15.2', '15.4', '16.0'] | ||
xcode: ['15.2', '15.4'] | ||
config: ['debug', 'release'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Select Xcode ${{ matrix.xcode }} | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- name: Run ${{ matrix.config }} tests | ||
run: make CONFIG=${{ matrix.config }} test-library | ||
run: make XCODE=${{ matrix.xcode }} CONFIG=${{ matrix.config }} test-library | ||
|
||
- uses: conradev/xcresulttool@v1.8.0 | ||
- uses: slidoapp/xcresulttool@v3.1.0 | ||
with: | ||
path: TestResults.xcresult | ||
path: TestResults-${{ matrix.xcode }}-${{ matrix.config }}.xcresult | ||
if: success() || failure() | ||
|
||
library-macos-15: | ||
name: Build and Run Unit Tests | ||
runs-on: macos-15 | ||
strategy: | ||
matrix: | ||
xcode: ['16.0'] | ||
config: ['debug', 'release'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Select Xcode ${{ matrix.xcode }} | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- name: Run ${{ matrix.config }} tests | ||
run: make XCODE=${{ matrix.xcode }} CONFIG=${{ matrix.config }} test-library | ||
|
||
- uses: slidoapp/[email protected] | ||
with: | ||
path: TestResults-${{ matrix.xcode }}-${{ matrix.config }}.xcresult | ||
if: success() || failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s| | |
s.author = { "Mobile @ Klaviyo" => "[email protected]" } | ||
s.source = { :git => "https://github.com/klaviyo/klaviyo-swift-sdk.git", :tag => s.version.to_s } | ||
s.swift_version = '5.7' | ||
s.platform = :ios, '13.0' | ||
s.platform = :ios, '15.0' | ||
s.source_files = 'Sources/KlaviyoCore/**/*.swift' | ||
s.dependency 'AnyCodable-FlightSchool' | ||
s.dependency 'KlaviyoSDKDependencies', '~>4.0.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "KlaviyoSDKDependencies" | ||
s.version = "4.0.0" | ||
s.summary = "Dependency for the Klaviyo SDK" | ||
s.description = <<-DESC | ||
Klaviyo external dependencies all rolled in one package | ||
DESC | ||
s.homepage = "https://github.com/klaviyo/klaviyo-swift-sdk" | ||
s.license = { :type => "MIT", :file => "LICENSE" } | ||
s.author = { "Mobile @ Klaviyo" => "[email protected]" } | ||
s.source = { :git => "https://github.com/klaviyo/klaviyo-swift-sdk.git", :tag => s.version.to_s } | ||
s.swift_version = '5.7' | ||
s.platform = :ios, '15.0' | ||
s.source_files = 'Sources/KlaviyoCore/**/*.swift' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s| | |
s.author = { "Mobile @ Klaviyo" => "[email protected]" } | ||
s.source = { :git => "https://github.com/klaviyo/klaviyo-swift-sdk.git", :tag => s.version.to_s } | ||
s.swift_version = '5.7' | ||
s.platform = :ios, '13.0' | ||
s.platform = :ios, '15.0' | ||
s.source_files = 'Sources/KlaviyoUI/**/*.swift' | ||
# update once modularization changes are merged in. | ||
s.dependency 'KlaviyoSwift', '~> 4.0.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// swift-tools-version:6.0 | ||
|
||
import CompilerPluginSupport | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "klaviyo-swift-sdk", | ||
platforms: [.iOS(.v15), .macOS(.v10_15)], | ||
products: [ | ||
.library( | ||
name: "KlaviyoSwift", | ||
targets: ["KlaviyoSwift"]), | ||
.library( | ||
name: "KlaviyoUI", | ||
targets: ["KlaviyoUI"]), | ||
.library( | ||
name: "KlaviyoSwiftExtension", | ||
targets: ["KlaviyoSwiftExtension"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.10.0"), | ||
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "1.0.2"), | ||
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.3.0") | ||
], | ||
targets: [ | ||
.target( | ||
name: "KlaviyoCore", | ||
dependencies: ["KlaviyoSDKDependencies"], | ||
path: "Sources/KlaviyoCore"), | ||
.testTarget( | ||
name: "KlaviyoCoreTests", | ||
dependencies: [ | ||
"KlaviyoCore", | ||
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"), | ||
"KlaviyoSDKDependencies" | ||
]), | ||
.target( | ||
name: "KlaviyoSwift", | ||
dependencies: [ | ||
"KlaviyoSDKDependencies", | ||
"KlaviyoCore" | ||
], | ||
path: "Sources/KlaviyoSwift", | ||
resources: [.copy("PrivacyInfo.xcprivacy")]), | ||
.testTarget( | ||
name: "KlaviyoSwiftTests", | ||
dependencies: [ | ||
"KlaviyoSwift", | ||
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"), | ||
"KlaviyoSDKDependencies", | ||
.product(name: "CombineSchedulers", package: "combine-schedulers"), | ||
"KlaviyoCore", | ||
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay") | ||
], | ||
exclude: [ | ||
"__Snapshots__" | ||
]), | ||
.target( | ||
name: "KlaviyoUI", | ||
dependencies: ["KlaviyoSwift"], | ||
path: "Sources/KlaviyoUI", | ||
resources: [.process("KlaviyoWebView/Resources")]), | ||
.testTarget( | ||
name: "KlaviyoUITests", | ||
dependencies: [ | ||
"KlaviyoSwift", | ||
"KlaviyoCore", | ||
"KlaviyoSDKDependencies" | ||
]), | ||
.target( | ||
name: "KlaviyoSwiftExtension", | ||
dependencies: [], | ||
path: "Sources/KlaviyoSwiftExtension"), | ||
|
||
// Vendorized Things | ||
.target( | ||
name: "KlaviyoSDKDependencies", | ||
dependencies: [], | ||
path: "Sources/KlaviyoSDKDependencies") | ||
], | ||
swiftLanguageModes: [.v6]) |
Oops, something went wrong.