react-native-firework-sdk 2.2.0 → 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.
- 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 +9 -9
- package/ios/Models/NativeToRN/FireworkSDK+Json.swift +6 -2
- package/lib/typescript/models/FeedItemDetails.d.ts +7 -0
- package/package.json +1 -1
- package/src/models/FeedItemDetails.ts +7 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Info.plist
CHANGED
|
Binary file
|
|
@@ -168,15 +168,15 @@ public class VideoFeed: UIView, VideoFeedViewControllerDelegate {
|
|
|
168
168
|
return
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
@@ -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
|
}
|