@shortkitsdk/react-native 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/shortkit/reactnative/ShortKitBridge.kt +34 -2
- package/android/src/main/java/com/shortkit/reactnative/ShortKitModule.kt +5 -5
- package/ios/ReactCarouselOverlayHost.swift +30 -18
- package/ios/ReactOverlayHost.swift +65 -67
- package/ios/ShortKitBridge.swift +80 -20
- package/ios/ShortKitModule.mm +13 -4
- package/ios/ShortKitSDK.xcframework/Info.plist +2 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +1 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Info.plist +5 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +672 -97
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +15 -5
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +15 -5
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources +11 -11
- package/ios/ShortKitSDK.xcframework/{ios-arm64-simulator → ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +1 -0
- package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Info.plist +5 -1
- package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2488 -281
- package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +65 -5
- package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +65 -5
- package/ios/{ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json} +8233 -3592
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +925 -0
- package/ios/{ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc} +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +925 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/_CodeSignature/CodeResources +212 -0
- package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +1838 -206
- package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +51 -1
- package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +51 -1
- package/ios/ShortKitSDK.xcframework.dev-backup/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework.dev-backup/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources +168 -0
- package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +6 -6
- package/ios/ShortKitSDK.xcframework.dev-backup/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/_CodeSignature/CodeResources +2 -2
- package/package.json +1 -1
- package/src/ShortKitContext.ts +11 -0
- package/src/ShortKitFeed.tsx +20 -9
- package/src/ShortKitOverlaySurface.tsx +20 -6
- package/src/ShortKitProvider.tsx +4 -2
- package/src/ShortKitWidget.tsx +3 -3
- package/src/index.ts +1 -0
- package/src/specs/NativeShortKitModule.ts +5 -2
- package/src/types.ts +9 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Info.plist +0 -16
- package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Modules/module.modulemap +0 -4
- package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -418
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +0 -28917
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -824
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -824
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -418
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -824
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -824
- package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework.bak2/Info.plist +0 -43
- package/ios/ShortKitSDK.xcframework.bak2/ios-arm64/ShortKitSDK.framework/Info.plist +0 -16
- package/ios/ShortKitSDK.xcframework.bak2/ios-arm64/ShortKitSDK.framework/Modules/module.modulemap +0 -4
- package/ios/ShortKitSDK.xcframework.bak2/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework.bak2/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/module.modulemap +0 -0
- package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/Info.plist +4 -4
- /package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -0
- /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Info.plist +0 -0
- /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/module.modulemap +0 -0
- /package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -0
- /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Info.plist +0 -0
- /package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -0
- /package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- /package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -0
- /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/module.modulemap +0 -0
|
@@ -210,9 +210,10 @@ public struct FeedConfig : Swift.Codable {
|
|
|
210
210
|
public var autoplay: Swift.Bool
|
|
211
211
|
public var feedSource: ShortKitSDK.FeedSource
|
|
212
212
|
public var coldStartEnabled: Swift.Bool
|
|
213
|
+
public var pullToRefreshEnabled: Swift.Bool
|
|
213
214
|
public var filter: ShortKitSDK.FeedFilter?
|
|
214
215
|
public var preload: ShortKitSDK.FeedPreload?
|
|
215
|
-
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
216
|
+
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
216
217
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
217
218
|
public init(from decoder: any Swift.Decoder) throws
|
|
218
219
|
}
|
|
@@ -275,12 +276,12 @@ extension ShortKitSDK.AdOverlayMode : Swift.Codable {
|
|
|
275
276
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
276
277
|
}
|
|
277
278
|
public protocol ShortKitDelegate : AnyObject {
|
|
278
|
-
func
|
|
279
|
+
func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
|
|
279
280
|
func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
|
|
280
281
|
func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
|
|
281
282
|
}
|
|
282
283
|
extension ShortKitSDK.ShortKitDelegate {
|
|
283
|
-
public func
|
|
284
|
+
public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
|
|
284
285
|
public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
|
|
285
286
|
public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
|
|
286
287
|
}
|
|
@@ -327,6 +328,7 @@ extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDelegat
|
|
|
327
328
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewWillBeginDragging(_ scrollView: UIKit.UIScrollView)
|
|
328
329
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
|
|
329
330
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
|
|
331
|
+
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScrollToTop(_ scrollView: UIKit.UIScrollView)
|
|
330
332
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
|
|
331
333
|
}
|
|
332
334
|
extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDataSourcePrefetching {
|
|
@@ -340,6 +342,12 @@ extension ShortKitSDK.ShortKitFeedViewController : ShortKitSDK.ShortKitAdDelegat
|
|
|
340
342
|
@_Concurrency.MainActor @preconcurrency public func adDidFail(_ ad: ShortKitSDK.PreparedAd, error: ShortKitSDK.AdError)
|
|
341
343
|
@_Concurrency.MainActor @preconcurrency public func adDidReceiveClick(_ ad: ShortKitSDK.PreparedAd)
|
|
342
344
|
}
|
|
345
|
+
public enum ShortKitRefreshState : Swift.Sendable {
|
|
346
|
+
case idle
|
|
347
|
+
case pulling(progress: CoreFoundation.CGFloat)
|
|
348
|
+
case triggered
|
|
349
|
+
case refreshing
|
|
350
|
+
}
|
|
343
351
|
public enum AdError : Swift.Error, Swift.Equatable {
|
|
344
352
|
case noFill
|
|
345
353
|
case timeout
|
|
@@ -840,7 +848,8 @@ public struct PlayerConfig {
|
|
|
840
848
|
public var loop: Swift.Bool
|
|
841
849
|
public var muteOnStart: Swift.Bool
|
|
842
850
|
public var videoOverlay: ShortKitSDK.VideoOverlayMode
|
|
843
|
-
public
|
|
851
|
+
public var feedConfig: ShortKitSDK.FeedConfig
|
|
852
|
+
public init(cornerRadius: CoreFoundation.CGFloat = 12, clickAction: ShortKitSDK.PlayerClickAction = .feed, autoplay: Swift.Bool = true, loop: Swift.Bool = true, muteOnStart: Swift.Bool = true, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
|
|
844
853
|
}
|
|
845
854
|
@_Concurrency.MainActor @preconcurrency public struct ShortKitPlayerView : SwiftUI.UIViewControllerRepresentable {
|
|
846
855
|
@_Concurrency.MainActor @preconcurrency public init(shortKit: ShortKitSDK.ShortKit, config: ShortKitSDK.PlayerConfig = PlayerConfig())
|
|
@@ -893,7 +902,8 @@ public struct WidgetConfig {
|
|
|
893
902
|
public var rotationInterval: Foundation.TimeInterval
|
|
894
903
|
public var clickAction: ShortKitSDK.PlayerClickAction
|
|
895
904
|
public var cardOverlay: ShortKitSDK.VideoOverlayMode
|
|
896
|
-
public
|
|
905
|
+
public var feedConfig: ShortKitSDK.FeedConfig
|
|
906
|
+
public init(cardCount: Swift.Int = 3, cardSpacing: CoreFoundation.CGFloat = 8, cornerRadius: CoreFoundation.CGFloat = 12, autoplay: Swift.Bool = true, muteOnStart: Swift.Bool = true, loop: Swift.Bool = true, rotationInterval: Foundation.TimeInterval = 10, clickAction: ShortKitSDK.PlayerClickAction = .feed, cardOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
|
|
897
907
|
}
|
|
898
908
|
extension ShortKitSDK.AdQuartile : Swift.Equatable {}
|
|
899
909
|
extension ShortKitSDK.AdQuartile : Swift.Hashable {}
|
|
Binary file
|
|
@@ -210,9 +210,10 @@ public struct FeedConfig : Swift.Codable {
|
|
|
210
210
|
public var autoplay: Swift.Bool
|
|
211
211
|
public var feedSource: ShortKitSDK.FeedSource
|
|
212
212
|
public var coldStartEnabled: Swift.Bool
|
|
213
|
+
public var pullToRefreshEnabled: Swift.Bool
|
|
213
214
|
public var filter: ShortKitSDK.FeedFilter?
|
|
214
215
|
public var preload: ShortKitSDK.FeedPreload?
|
|
215
|
-
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
216
|
+
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
216
217
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
217
218
|
public init(from decoder: any Swift.Decoder) throws
|
|
218
219
|
}
|
|
@@ -275,12 +276,12 @@ extension ShortKitSDK.AdOverlayMode : Swift.Codable {
|
|
|
275
276
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
276
277
|
}
|
|
277
278
|
public protocol ShortKitDelegate : AnyObject {
|
|
278
|
-
func
|
|
279
|
+
func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
|
|
279
280
|
func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
|
|
280
281
|
func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
|
|
281
282
|
}
|
|
282
283
|
extension ShortKitSDK.ShortKitDelegate {
|
|
283
|
-
public func
|
|
284
|
+
public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
|
|
284
285
|
public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
|
|
285
286
|
public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
|
|
286
287
|
}
|
|
@@ -327,6 +328,7 @@ extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDelegat
|
|
|
327
328
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewWillBeginDragging(_ scrollView: UIKit.UIScrollView)
|
|
328
329
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
|
|
329
330
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
|
|
331
|
+
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScrollToTop(_ scrollView: UIKit.UIScrollView)
|
|
330
332
|
@_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
|
|
331
333
|
}
|
|
332
334
|
extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDataSourcePrefetching {
|
|
@@ -340,6 +342,12 @@ extension ShortKitSDK.ShortKitFeedViewController : ShortKitSDK.ShortKitAdDelegat
|
|
|
340
342
|
@_Concurrency.MainActor @preconcurrency public func adDidFail(_ ad: ShortKitSDK.PreparedAd, error: ShortKitSDK.AdError)
|
|
341
343
|
@_Concurrency.MainActor @preconcurrency public func adDidReceiveClick(_ ad: ShortKitSDK.PreparedAd)
|
|
342
344
|
}
|
|
345
|
+
public enum ShortKitRefreshState : Swift.Sendable {
|
|
346
|
+
case idle
|
|
347
|
+
case pulling(progress: CoreFoundation.CGFloat)
|
|
348
|
+
case triggered
|
|
349
|
+
case refreshing
|
|
350
|
+
}
|
|
343
351
|
public enum AdError : Swift.Error, Swift.Equatable {
|
|
344
352
|
case noFill
|
|
345
353
|
case timeout
|
|
@@ -840,7 +848,8 @@ public struct PlayerConfig {
|
|
|
840
848
|
public var loop: Swift.Bool
|
|
841
849
|
public var muteOnStart: Swift.Bool
|
|
842
850
|
public var videoOverlay: ShortKitSDK.VideoOverlayMode
|
|
843
|
-
public
|
|
851
|
+
public var feedConfig: ShortKitSDK.FeedConfig
|
|
852
|
+
public init(cornerRadius: CoreFoundation.CGFloat = 12, clickAction: ShortKitSDK.PlayerClickAction = .feed, autoplay: Swift.Bool = true, loop: Swift.Bool = true, muteOnStart: Swift.Bool = true, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
|
|
844
853
|
}
|
|
845
854
|
@_Concurrency.MainActor @preconcurrency public struct ShortKitPlayerView : SwiftUI.UIViewControllerRepresentable {
|
|
846
855
|
@_Concurrency.MainActor @preconcurrency public init(shortKit: ShortKitSDK.ShortKit, config: ShortKitSDK.PlayerConfig = PlayerConfig())
|
|
@@ -893,7 +902,8 @@ public struct WidgetConfig {
|
|
|
893
902
|
public var rotationInterval: Foundation.TimeInterval
|
|
894
903
|
public var clickAction: ShortKitSDK.PlayerClickAction
|
|
895
904
|
public var cardOverlay: ShortKitSDK.VideoOverlayMode
|
|
896
|
-
public
|
|
905
|
+
public var feedConfig: ShortKitSDK.FeedConfig
|
|
906
|
+
public init(cardCount: Swift.Int = 3, cardSpacing: CoreFoundation.CGFloat = 8, cornerRadius: CoreFoundation.CGFloat = 12, autoplay: Swift.Bool = true, muteOnStart: Swift.Bool = true, loop: Swift.Bool = true, rotationInterval: Foundation.TimeInterval = 10, clickAction: ShortKitSDK.PlayerClickAction = .feed, cardOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
|
|
897
907
|
}
|
|
898
908
|
extension ShortKitSDK.AdQuartile : Swift.Equatable {}
|
|
899
909
|
extension ShortKitSDK.AdQuartile : Swift.Hashable {}
|
|
Binary file
|
package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources
CHANGED
|
@@ -6,27 +6,27 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Headers/ShortKitSDK-Swift.h</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
sPBFo6JMKGiSEYfBXQhwdOb2UzQ=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Info.plist</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
H6W9wSQeXsl3VaugOv7xV0jTyoI=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
YYqFINlTEgYgeMVBETLhWT7A3yo=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
uUKC+NjbgWf5a6aDw/N6/Dt9Ebs=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
JKXiL4d/fVvJOKp7tTNEID2myLE=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
uUKC+NjbgWf5a6aDw/N6/Dt9Ebs=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/module.modulemap</key>
|
|
32
32
|
<data>
|
|
@@ -39,35 +39,35 @@
|
|
|
39
39
|
<dict>
|
|
40
40
|
<key>hash2</key>
|
|
41
41
|
<data>
|
|
42
|
-
|
|
42
|
+
TRmw/MDu/LhQLmbWGfeLyMOoRfyBwA9sRbyyn0p3Q3c=
|
|
43
43
|
</data>
|
|
44
44
|
</dict>
|
|
45
45
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
46
46
|
<dict>
|
|
47
47
|
<key>hash2</key>
|
|
48
48
|
<data>
|
|
49
|
-
|
|
49
|
+
FQCbqY2O3A384LEZyqkGKF9gcRMamvNt/q/MNtu5V4U=
|
|
50
50
|
</data>
|
|
51
51
|
</dict>
|
|
52
52
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
53
53
|
<dict>
|
|
54
54
|
<key>hash2</key>
|
|
55
55
|
<data>
|
|
56
|
-
|
|
56
|
+
lbmpfDs1PFsVC8eCPY39+KHQnJ8j3rmmrawo9TCrNHc=
|
|
57
57
|
</data>
|
|
58
58
|
</dict>
|
|
59
59
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
60
60
|
<dict>
|
|
61
61
|
<key>hash2</key>
|
|
62
62
|
<data>
|
|
63
|
-
|
|
63
|
+
DwgcCoxviNZ+lzCyxoAl1xBdY0G1FXpPbvmuISVRSJ4=
|
|
64
64
|
</data>
|
|
65
65
|
</dict>
|
|
66
66
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
67
67
|
<dict>
|
|
68
68
|
<key>hash2</key>
|
|
69
69
|
<data>
|
|
70
|
-
|
|
70
|
+
lbmpfDs1PFsVC8eCPY39+KHQnJ8j3rmmrawo9TCrNHc=
|
|
71
71
|
</data>
|
|
72
72
|
</dict>
|
|
73
73
|
<key>Modules/module.modulemap</key>
|
|
@@ -360,6 +360,7 @@ SWIFT_CLASS("_TtC11ShortKitSDK26ShortKitFeedViewController")
|
|
|
360
360
|
- (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
|
|
361
361
|
- (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
|
|
362
362
|
- (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
|
|
363
|
+
- (void)scrollViewDidScrollToTop:(UIScrollView * _Nonnull)scrollView;
|
|
363
364
|
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
364
365
|
@end
|
|
365
366
|
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
<key>CFBundlePackageType</key>
|
|
12
12
|
<string>FMWK</string>
|
|
13
13
|
<key>CFBundleVersion</key>
|
|
14
|
-
<string>
|
|
14
|
+
<string>0.2.15</string>
|
|
15
|
+
<key>CFBundleShortVersionString</key>
|
|
16
|
+
<string>0.2.15</string>
|
|
17
|
+
<key>MinimumOSVersion</key>
|
|
18
|
+
<string>16.0</string>
|
|
15
19
|
</dict>
|
|
16
20
|
</plist>
|