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.
@@ -14,7 +14,7 @@
14
14
  </data>
15
15
  <key>Info.plist</key>
16
16
  <data>
17
- hAVAVy3FzlD1t1FmUuzckE738WA=
17
+ dRwGqwAERLUXdGSS28BxDgMmbF8=
18
18
  </data>
19
19
  <key>Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
20
20
  <data>
@@ -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 = videoFeedLayout
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
+ }
@@ -13,4 +13,4 @@ SPEC CHECKSUMS:
13
13
 
14
14
  PODFILE CHECKSUM: b8d50fd1ccf28eaa3033fe13c43ca09199e1e245
15
15
 
16
- COCOAPODS: 1.13.0
16
+ COCOAPODS: 1.14.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-firework-sdk",
3
- "version": "2.8.5",
3
+ "version": "2.8.6",
4
4
  "description": "Firework React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",