From 52e81b1b8cbd58629941bff56a0d523cc6abad50 Mon Sep 17 00:00:00 2001 From: Firework Date: Wed, 1 May 2024 15:26:45 +0000 Subject: [PATCH] Update SDK to v1.21.0 --- CHANGELOG.md | 20 +++++++++++++++++++ FireworkVideo.podspec | 2 +- .../FireworkVideoSample/AppDelegate.swift | 2 +- Package.swift | 4 ++-- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3baf1d9..af25e27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ ## CHANGELOG +## [1.21.0] + +### Added +- `feedID` to the `FeedEventDetails` type. +- `VideoDetails` to the handleCustomCTAClick delegate method. +- Data Track Level API, `FireworkVideoSDK.dataTrackingLevel` to define the level of data tracking for the SDK. The default value is `.all`. +- Added the ability to override the product click action on LiveStream and Replay using the `FireworkVideoShoppingDelegate` API. +```swift +func fireworkShopping(_ fireworkShopping: FireworkVideoShopping, didTapProductVariant item: SelectedProductVariant, forVideo video: VideoDetails) -> Bool +``` + +### Deprecated +- `fireworkShopping(_:didTapLinkButtonAt:withURL:)` has been deprecated in favor of `fireworkShopping(_:didTapLinkButtonAt:fromVideo:withURL:)`. +- `handleCustomCTAClick(_:url:)` has been deprecated in favor of `handleCustomCTAClick(_:url:for:)`. + +## [1.20.1] + +### Fixed +- Certain CTA text was not properly updating under certain conditions. + ## [1.20.0] ### Added diff --git a/FireworkVideo.podspec b/FireworkVideo.podspec index ef0880b..005bcae 100644 --- a/FireworkVideo.podspec +++ b/FireworkVideo.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "FireworkVideo" - spec.version = "1.20.2" + spec.version = "1.21.0" spec.summary = "FireworkVideoSDK" spec.homepage = "https://github.com/loopsocial/firework_ios_sdk" spec.license = { :text => "Copyright 2021 Loop Now Technologies, Inc.", :type => "Copyright" } diff --git a/FireworkVideoSample/FireworkVideoSample/AppDelegate.swift b/FireworkVideoSample/FireworkVideoSample/AppDelegate.swift index e4c4596..0fee87e 100644 --- a/FireworkVideoSample/FireworkVideoSample/AppDelegate.swift +++ b/FireworkVideoSample/FireworkVideoSample/AppDelegate.swift @@ -67,7 +67,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, FireworkVideoSDKDelegate /// Implementing the FireworkVideoCTADelegate allows /// client to build custom actions on CTA clicks extension AppDelegate: FireworkVideoCTADelegate { - func handleCustomCTAClick(_ viewController: PlayerViewController, url: URL) -> Bool { + func handleCustomCTAClick(_ viewController: PlayerViewController, url: URL, for video: VideoDetails) -> Bool { // Custom action code here... // Simple dismiss example: diff --git a/Package.swift b/Package.swift index 3c724c5..dc46c7c 100644 --- a/Package.swift +++ b/Package.swift @@ -31,8 +31,8 @@ let package = Package( ], targets: [ .binaryTarget(name: "FireworkVideo", - url: "https://github.com/loopsocial/firework_ios_sdk/releases/download/v1.20.2/FireworkVideo-v1.20.2.xcframework.zip", - checksum: "f71ea0670fb6570b6305bba2ad9a7d72f5dc37a2833d6033a6225c33c2a5ad9e"), + url: "https://github.com/loopsocial/firework_ios_sdk/releases/download/v1.21.0/FireworkVideo-v1.21.0.xcframework.zip", + checksum: "8d394a70f1ee4151df4b7a081cb3e9e54455c03dac15c64b7f68c5beef6084a6"), .target(name: "FireworkMultiHostStreaming", dependencies: [ "FireworkVideo",