react-native-firework-sdk 2.2.0-beta.1 → 2.2.1

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
- n1uKz1HOP5lKIFyaa+M/WugPLpM=
17
+ p9GwXR7hY19J1qP1kxgoWIAdFjg=
18
18
  </data>
19
19
  <key>Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
20
20
  <data>
@@ -168,15 +168,15 @@ public class VideoFeed: UIView, VideoFeedViewControllerDelegate {
168
168
  return
169
169
  }
170
170
 
171
- // if let subView = feedVC.view.subviews.first {
172
- // let constraints = feedVC.view.constraints
173
- // for constraint in constraints {
174
- // if (constraint.firstItem as? NSObject) == subView || (constraint.secondItem as? NSObject) == subView {
175
- // constraint.isActive = false
176
- // }
177
- // }
178
- // NSLayoutConstraint.activate(subView.constraints(equalTo: feedVC.view))
179
- // }
171
+ if let subView = feedVC.view.subviews.first {
172
+ let constraints = feedVC.view.constraints
173
+ for constraint in constraints {
174
+ if (constraint.firstItem as? NSObject) == subView || (constraint.secondItem as? NSObject) == subView {
175
+ constraint.isActive = false
176
+ }
177
+ }
178
+ NSLayoutConstraint.activate(subView.constraints(equalTo: feedVC.view))
179
+ }
180
180
 
181
181
  var viewConfiguration = convertToVideoFeedContentConfiguration()
182
182
  if viewConfiguration.itemView.autoplay.isEnabled {
@@ -28,8 +28,8 @@ extension VideoPlaybackDetails {
28
28
  [
29
29
  "videoId": videoID,
30
30
  "duration": duration,
31
- "caption": caption,
32
- "badge": badge,
31
+ "caption": caption ?? "",
32
+ "badge": badge ?? "",
33
33
  "playerSize": [
34
34
  "width": playerSize.width,
35
35
  "height": playerSize.height
@@ -96,6 +96,10 @@ extension FeedEventDetails {
96
96
  sourceStr = "dynamicContent"
97
97
  result["channel"] = channelID
98
98
  result["dynamicContentParameters"] = parameters
99
+ case .hashtagPlaylist(let channelID, let hashtagFilterExpression):
100
+ sourceStr = "hashtagPlaylist"
101
+ result["channel"] = channelID
102
+ result["hashtagFilterExpression"] = hashtagFilterExpression
99
103
  default:
100
104
  break
101
105
  }
@@ -44,4 +44,11 @@ export default interface FeedItemDetails {
44
44
  dynamicContentParameters?: {
45
45
  [key: string]: string[];
46
46
  } | null;
47
+ /**
48
+ * Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.
49
+ * Queries are specified with boolean predicates on what hashtags are there on the video.
50
+ * For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.
51
+ * Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.
52
+ */
53
+ hashtagFilterExpression?: string;
47
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-firework-sdk",
3
- "version": "2.2.0-beta.1",
3
+ "version": "2.2.1",
4
4
  "description": "Firework React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -43,4 +43,11 @@ export default interface FeedItemDetails {
43
43
  * The dynamic content parameters of the feed. The property has value when the source is dynamicContent.
44
44
  */
45
45
  dynamicContentParameters?: { [key: string]: string[] } | null;
46
+ /**
47
+ * Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.
48
+ * Queries are specified with boolean predicates on what hashtags are there on the video.
49
+ * For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.
50
+ * Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.
51
+ */
52
+ hashtagFilterExpression?: string;
46
53
  }