react-native-firework-sdk 2.8.5 → 2.8.6
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/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/_CodeSignature/CodeResources +1 -1
- package/ios/Components/VideoFeed.swift +30 -1
- package/ios/FireworkVideoUI/Podfile.lock +1 -1
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Info.plist
CHANGED
|
Binary file
|
|
@@ -50,7 +50,9 @@ public class VideoFeed: UIView, VideoFeedViewControllerDelegate, PictureInPictur
|
|
|
50
50
|
}
|
|
51
51
|
let newVideoFeedContentConfiguration = convertToVideoFeedContentConfiguration()
|
|
52
52
|
feedVC.viewConfiguration = newVideoFeedContentConfiguration
|
|
53
|
-
feedVC.layout
|
|
53
|
+
if !feedVC.layout.isEqualToFeedLayout(videoFeedLayout) {
|
|
54
|
+
feedVC.layout = videoFeedLayout
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
@objc public var playerViewConfig: VideoPlayerConfiguration? {
|
|
@@ -535,3 +537,30 @@ extension VideoFeed {
|
|
|
535
537
|
return videoConfig
|
|
536
538
|
}
|
|
537
539
|
}
|
|
540
|
+
|
|
541
|
+
extension VideoFeedLayout {
|
|
542
|
+
fileprivate func isEqualToFeedLayout(_ other: VideoFeedLayout) -> Bool {
|
|
543
|
+
if type(of: self) != type(of: other) {
|
|
544
|
+
return false
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
if self.ignoresSafeAreaLayoutGuide == other.ignoresSafeAreaLayoutGuide,
|
|
548
|
+
self.itemSpacing == other.itemSpacing,
|
|
549
|
+
self.contentInsets == other.contentInsets {
|
|
550
|
+
if let layout = self as? VideoFeedHorizontalLayout,
|
|
551
|
+
let otherLayout = other as? VideoFeedHorizontalLayout,
|
|
552
|
+
layout.itemWidthRatio == otherLayout.itemWidthRatio {
|
|
553
|
+
return true
|
|
554
|
+
} else if let layout = self as? VideoFeedGridLayout,
|
|
555
|
+
let otherLayout = other as? VideoFeedGridLayout,
|
|
556
|
+
layout.itemWidthRatio == otherLayout.itemWidthRatio,
|
|
557
|
+
layout.numberOfColumns == otherLayout.numberOfColumns {
|
|
558
|
+
return true
|
|
559
|
+
} else {
|
|
560
|
+
return false
|
|
561
|
+
}
|
|
562
|
+
} else {
|
|
563
|
+
return false
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|