react-native-firework-sdk 2.10.0 → 2.11.0
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/gradle.properties +1 -1
- package/android/src/main/java/com/fireworksdk/bridge/components/storyblock/StoryBlockFragment.kt +18 -1
- package/android/src/main/java/com/fireworksdk/bridge/components/videofeed/FWVideoFeed.kt +4 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWSDKInitOptionsModel.kt +0 -1
- package/android/src/main/java/com/fireworksdk/bridge/models/FWSDKInitOptionsModelDeserializer.kt +0 -3
- package/android/src/main/java/com/fireworksdk/bridge/models/FWSDKInitOptionsModelSerializer.kt +0 -2
- package/android/src/main/java/com/fireworksdk/bridge/models/FWSdkInitResultModel.kt +6 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWTrackPurchaseModel.kt +9 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWTrackPurchaseModelDeserializer.kt +45 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWTrackPurchaseModelSerializer.kt +34 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedItemDetailsModel.kt +1 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlaybackDetails.kt +1 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModel.kt +2 -1
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelDeserializer.kt +4 -1
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelSerializer.kt +2 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerLogoConfigurationModel.kt +8 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerLogoConfigurationModelDeserializer.kt +23 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerLogoConfigurationModelSerializer.kt +18 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWEventName.kt +2 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWVideoPlayerLogoOption.kt +19 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/FWReactNativeSDK.kt +103 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWStoryBlockManager.kt +12 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWVideoFeedManager.kt +8 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FireworkSDKInterface.kt +2 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWLiveStreamModule.kt +2 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWVideoShoppingModule.kt +22 -9
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt +78 -122
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/utils/FWEventUtils.kt +34 -9
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWConfigUtil.kt +13 -0
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWFragmentUtil.kt +3 -3
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWGlobalDataUtil.kt +5 -2
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWModelUtils.kt +64 -0
- package/ios/Components/ReplayBadgeConfiguration.swift +12 -0
- package/ios/Components/StoryBlock.swift +31 -0
- package/ios/Components/StoryBlockConfiguration.swift +1 -0
- package/ios/Components/StoryBlockManager.m +24 -0
- package/ios/Components/StoryBlockManager.swift +6 -3
- package/ios/Components/VideoFeed.swift +18 -3
- package/ios/Components/VideoFeedConfiguration.swift +1 -0
- package/ios/Components/VideoFeedManager.m +4 -1
- package/ios/Components/VideoFeedManager.swift +6 -3
- package/ios/Components/VideoPlayerConfiguration.swift +1 -0
- package/ios/FWReactNativeSDK.swift +14 -0
- package/ios/FireworkSdk.xcodeproj/project.pbxproj +4 -0
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule+CTA.swift +17 -15
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule+EventTracking.swift +1 -11
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.m +1 -0
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.swift +80 -81
- package/ios/Modules/FireworkSDKModule/SDKInitOptions.swift +9 -5
- package/ios/Modules/Shopping/ShoppingModule.swift +10 -74
- package/lib/commonjs/FireworkSDK.js +30 -25
- package/lib/commonjs/FireworkSDK.js.map +1 -1
- package/lib/commonjs/VideoShopping.js +6 -12
- package/lib/commonjs/VideoShopping.js.map +1 -1
- package/lib/commonjs/components/StoryBlock.js +54 -3
- package/lib/commonjs/components/StoryBlock.js.map +1 -1
- package/lib/commonjs/components/VideoFeed.js +46 -4
- package/lib/commonjs/components/VideoFeed.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/FWNativeErrorAction.js +14 -0
- package/lib/commonjs/models/FWNativeErrorAction.js.map +1 -0
- package/lib/commonjs/models/ReplayBadgeConfiguration.js +2 -0
- package/lib/commonjs/models/ReplayBadgeConfiguration.js.map +1 -0
- package/lib/commonjs/modules/FireworkSDKModule.js.map +1 -1
- package/lib/module/FireworkSDK.js +29 -25
- package/lib/module/FireworkSDK.js.map +1 -1
- package/lib/module/VideoShopping.js +6 -12
- package/lib/module/VideoShopping.js.map +1 -1
- package/lib/module/components/StoryBlock.js +53 -3
- package/lib/module/components/StoryBlock.js.map +1 -1
- package/lib/module/components/VideoFeed.js +42 -4
- package/lib/module/components/VideoFeed.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/FWNativeErrorAction.js +7 -0
- package/lib/module/models/FWNativeErrorAction.js.map +1 -0
- package/lib/module/models/ReplayBadgeConfiguration.js +2 -0
- package/lib/module/models/ReplayBadgeConfiguration.js.map +1 -0
- package/lib/module/modules/FireworkSDKModule.js.map +1 -1
- package/lib/typescript/VideoShopping.d.ts +2 -2
- package/lib/typescript/components/StoryBlock.d.ts +18 -1
- package/lib/typescript/components/VideoFeed.d.ts +7 -1
- package/lib/typescript/index.d.ts +2 -2
- package/lib/typescript/models/FWEvents.d.ts +26 -3
- package/lib/typescript/models/FWNativeErrorAction.d.ts +4 -0
- package/lib/typescript/models/FeedItemDetails.d.ts +6 -1
- package/lib/typescript/models/ReplayBadgeConfiguration.d.ts +7 -0
- package/lib/typescript/models/StoryBlockConfiguration.d.ts +6 -1
- package/lib/typescript/models/VideoFeedConfiguration.d.ts +6 -0
- package/lib/typescript/models/VideoPlayerConfiguration.d.ts +6 -1
- package/lib/typescript/modules/FireworkSDKModule.d.ts +1 -0
- package/package.json +1 -5
- package/react-native-firework-sdk.podspec +3 -5
- package/src/FireworkSDK.ts +27 -24
- package/src/VideoShopping.ts +9 -11
- package/src/components/StoryBlock.tsx +69 -7
- package/src/components/VideoFeed.tsx +57 -12
- package/src/index.ts +2 -0
- package/src/models/FWEvents.ts +28 -3
- package/src/models/FWNativeErrorAction.ts +4 -0
- package/src/models/FeedItemDetails.ts +7 -1
- package/src/models/ReplayBadgeConfiguration.ts +7 -0
- package/src/models/StoryBlockConfiguration.ts +6 -1
- package/src/models/VideoFeedConfiguration.ts +6 -0
- package/src/models/VideoPlayerConfiguration.ts +6 -1
- package/src/modules/FireworkSDKModule.ts +1 -0
- package/FireworkVideoUI.xcframework/Info.plist +0 -40
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Headers/FireworkVideoUI-Swift.h +0 -280
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Headers/FireworkVideoUI.h +0 -18
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.abi.json +0 -1313
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -42
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.swiftinterface +0 -42
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/module.modulemap +0 -11
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Headers/FireworkVideoUI-Swift.h +0 -556
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Headers/FireworkVideoUI.h +0 -18
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -1313
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -42
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -42
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -1313
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -42
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -42
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/module.modulemap +0 -11
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/_CodeSignature/CodeResources +0 -245
- package/ios/FireworkVideoUI/FireworkVideoUI/FireworkVideoUI.docc/FireworkVideoUI.md +0 -13
- package/ios/FireworkVideoUI/FireworkVideoUI/FireworkVideoUI.h +0 -18
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/AppLanguageManager.swift +0 -154
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/Foundation/Bundle+AppLanguage.swift +0 -73
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/Foundation/NumberFormatter+AppLanguage.swift +0 -25
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/Foundation/URLSession+AppLanguage.swift +0 -52
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UIImageView+AppLanguage.swift +0 -60
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UILabel+AppLanguage.swift +0 -98
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UITextField+AppLanguage.swift +0 -97
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UITextView+AppLanguage.swift +0 -97
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UIView+AppLanguage.swift +0 -71
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UIViewController+AppLanguage.swift +0 -48
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UIWindow+AppLanguage.swift +0 -26
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/LanguageUtil.swift +0 -43
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/LayoutFlip/Extensions/Foundation/NSObject+LayoutFlip.swift +0 -42
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/LayoutFlip/Extensions/UIKit/CALayer+LayoutFlip.swift +0 -149
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/LayoutFlip/Extensions/UIKit/UILabel+LayoutFlip.swift +0 -35
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/LayoutFlip/Extensions/UIKit/UIView+LayoutFlip.swift +0 -202
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/LayoutFlip/LayoutFlipManager.swift +0 -59
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/Utils/Extensions/Foundation/DispatchQueue+Once.swift +0 -32
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/Utils/Extensions/Foundation/String+Base64.swift +0 -18
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/Utils/Extensions/UIKit/UIView+UIHierarchy.swift +0 -46
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/Utils/Swizzle.swift +0 -37
- package/ios/FireworkVideoUI/FireworkVideoUI.xcodeproj/project.pbxproj +0 -766
- package/ios/FireworkVideoUI/FireworkVideoUI.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/FireworkVideoUI/FireworkVideoUI.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/FireworkVideoUI/FireworkVideoUITests/FireworkVideoUITests.swift +0 -37
- package/ios/FireworkVideoUI/Podfile +0 -15
- package/ios/FireworkVideoUI/Podfile.lock +0 -16
- package/ios/scripts/react_native_firework_sdk_pods.rb +0 -27
|
@@ -12,17 +12,19 @@ import {
|
|
|
12
12
|
|
|
13
13
|
import FireworkSDK from '../FireworkSDK';
|
|
14
14
|
import type AdConfiguration from '../models/AdConfiguration';
|
|
15
|
+
import type ButtonInfo from '../models/ButtonInfo';
|
|
15
16
|
import type FWError from '../models/FWError';
|
|
16
17
|
import { FWEventName } from '../models/FWEventName';
|
|
18
|
+
import { FWNativeErrorAction } from '../models/FWNativeErrorAction';
|
|
17
19
|
import type VideoFeedConfiguration from '../models/VideoFeedConfiguration';
|
|
18
20
|
import type { VideoFeedSource } from '../models/VideoFeedSource';
|
|
19
21
|
import type VideoPlayerConfiguration from '../models/VideoPlayerConfiguration';
|
|
22
|
+
import type VideoPlayerNativeConfiguration from '../models/VideoPlayerNativeConfiguration';
|
|
20
23
|
import { FireworkSDKModuleEventEmitter } from '../modules/FireworkSDKModule';
|
|
21
24
|
import FWGlobalState from '../utils/FWGlobalState';
|
|
25
|
+
import gennerateJsonKey from '../utils/FWJsonUtil';
|
|
22
26
|
import FWLoggerUtil from '../utils/FWLoggerUtil';
|
|
23
27
|
import FWVideoFeed from './FWVideoFeed';
|
|
24
|
-
import type VideoPlayerNativeConfiguration from '../models/VideoPlayerNativeConfiguration';
|
|
25
|
-
import type ButtonInfo from '../models/ButtonInfo';
|
|
26
28
|
|
|
27
29
|
export type VideoFeedMode = 'row' | 'column' | 'grid';
|
|
28
30
|
|
|
@@ -101,7 +103,6 @@ export interface IVideoFeedProps {
|
|
|
101
103
|
* 1. Loading successfully but the back end returns an empty list.
|
|
102
104
|
* 2. The load failed and list is empty.
|
|
103
105
|
* onVideoFeedLoadFinished will also be triggered when onVideoFeedEmpty is triggered.
|
|
104
|
-
* Only supported on Android.
|
|
105
106
|
*/
|
|
106
107
|
onVideoFeedEmpty?: (error?: FWError) => void;
|
|
107
108
|
/**
|
|
@@ -112,6 +113,12 @@ export interface IVideoFeedProps {
|
|
|
112
113
|
* Stop Picture in Picture callback. Only supported on iOS.
|
|
113
114
|
*/
|
|
114
115
|
onVideoFeedDidStopPictureInPicture?: (error?: FWError) => void;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* The host app could use this callback to get feed id.
|
|
119
|
+
* The feed id can be used for conversion tracking.
|
|
120
|
+
*/
|
|
121
|
+
onVideoFeedGetFeedId?: (feedId: string) => void;
|
|
115
122
|
}
|
|
116
123
|
|
|
117
124
|
interface IVideoFeedState {
|
|
@@ -154,12 +161,14 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
154
161
|
if (Platform.OS === 'android') {
|
|
155
162
|
commandId = commandId.toString();
|
|
156
163
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
commandId,
|
|
161
|
-
[]
|
|
164
|
+
let reactTag: number | null = findNodeHandle(nativeNodeHandle);
|
|
165
|
+
FWLoggerUtil.log(
|
|
166
|
+
`StoryBlock refresh commandId: ${commandId} nativeNodeHandle: ${nativeNodeHandle} reactTag: ${reactTag}`
|
|
162
167
|
);
|
|
168
|
+
if (!nativeNodeHandle || !reactTag) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
UIManager.dispatchViewManagerCommand(reactTag, commandId, []);
|
|
163
172
|
};
|
|
164
173
|
|
|
165
174
|
private _onVideoFeedLoadFinished = (event: NativeSyntheticEvent<any>) => {
|
|
@@ -168,7 +177,7 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
168
177
|
);
|
|
169
178
|
const { onVideoFeedLoadFinished, onVideoFeedEmpty } = this.props;
|
|
170
179
|
|
|
171
|
-
const { name, reason } = event.nativeEvent;
|
|
180
|
+
const { name, reason, action } = event.nativeEvent;
|
|
172
181
|
|
|
173
182
|
if (onVideoFeedLoadFinished) {
|
|
174
183
|
if (name) {
|
|
@@ -177,8 +186,17 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
177
186
|
error.reason = reason;
|
|
178
187
|
}
|
|
179
188
|
onVideoFeedLoadFinished(error);
|
|
180
|
-
if (
|
|
181
|
-
|
|
189
|
+
if (Platform.OS === 'android') {
|
|
190
|
+
if (
|
|
191
|
+
action === FWNativeErrorAction.loadingFirstPage ||
|
|
192
|
+
!this._loaded
|
|
193
|
+
) {
|
|
194
|
+
onVideoFeedEmpty?.(error);
|
|
195
|
+
}
|
|
196
|
+
} else {
|
|
197
|
+
if (!this._loaded) {
|
|
198
|
+
onVideoFeedEmpty?.(error);
|
|
199
|
+
}
|
|
182
200
|
}
|
|
183
201
|
} else {
|
|
184
202
|
onVideoFeedLoadFinished();
|
|
@@ -248,6 +266,19 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
248
266
|
}
|
|
249
267
|
};
|
|
250
268
|
|
|
269
|
+
private _onVideoFeedGetFeedId = (event: NativeSyntheticEvent<any>) => {
|
|
270
|
+
FWLoggerUtil.log(
|
|
271
|
+
`VideoFeed onVideoFeedGetFeedId ${JSON.stringify(event.nativeEvent)}`
|
|
272
|
+
);
|
|
273
|
+
const { onVideoFeedGetFeedId } = this.props;
|
|
274
|
+
|
|
275
|
+
const { feedId } = event.nativeEvent;
|
|
276
|
+
|
|
277
|
+
if (onVideoFeedGetFeedId) {
|
|
278
|
+
onVideoFeedGetFeedId(feedId ?? '');
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
|
|
251
282
|
/**
|
|
252
283
|
* @ignore
|
|
253
284
|
*/
|
|
@@ -387,11 +418,19 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
387
418
|
const shareBaseURL = videoPlayerConfiguration?.shareBaseURL;
|
|
388
419
|
const ctaWidth = videoPlayerConfiguration?.ctaWidth;
|
|
389
420
|
const buttonConfiguration = videoPlayerConfiguration?.buttonConfiguration;
|
|
421
|
+
const videoPlayerLogoConfigurationJsonKey = gennerateJsonKey(
|
|
422
|
+
videoPlayerConfiguration?.videoPlayerLogoConfiguration
|
|
423
|
+
);
|
|
390
424
|
const showVideoDetailTitle = videoPlayerConfiguration?.showVideoDetailTitle;
|
|
391
425
|
const requiresAds = adConfiguration?.requiresAds;
|
|
392
426
|
const adsFetchTimeout = adConfiguration?.adsFetchTimeout;
|
|
393
427
|
const vastAttributesString = this._generateVastAttributesString();
|
|
394
|
-
|
|
428
|
+
const replayBadgeVideoFeedConfigurationJsonKey = gennerateJsonKey(
|
|
429
|
+
videoFeedConfiguration?.replayBadge
|
|
430
|
+
);
|
|
431
|
+
const replayBadgeVideoPlayerConfigurationJsonKey = gennerateJsonKey(
|
|
432
|
+
videoPlayerConfiguration?.replayBadgeConfiguration
|
|
433
|
+
);
|
|
395
434
|
let key = `gShareBaseURL:${gShareBaseURL}`;
|
|
396
435
|
if (Platform.OS === 'ios') {
|
|
397
436
|
key += `_appLanguage:${appLanguage}`;
|
|
@@ -470,12 +509,17 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
470
509
|
key += `_buttonConfiguration.pauseButton:${this._generateButtonInfoString(
|
|
471
510
|
buttonConfiguration?.pauseButton
|
|
472
511
|
)}`;
|
|
512
|
+
key += `_videoPlayerLogoConfiguration:${videoPlayerLogoConfigurationJsonKey}`;
|
|
473
513
|
key += `_showVideoDetailTitle:${showVideoDetailTitle}`;
|
|
474
514
|
}
|
|
475
515
|
|
|
476
516
|
key += `_requiresAds:${requiresAds}`;
|
|
477
517
|
key += `_adsFetchTimeout:${adsFetchTimeout}`;
|
|
478
518
|
key += `_vastAttributes:${vastAttributesString}`;
|
|
519
|
+
key += `_replayBadgeVideoFeedConfiguration:${replayBadgeVideoFeedConfigurationJsonKey}`;
|
|
520
|
+
key += `_replayBadgeVideoPlayerConfiguration:${replayBadgeVideoPlayerConfigurationJsonKey}`;
|
|
521
|
+
|
|
522
|
+
console.log('video feed key', key);
|
|
479
523
|
|
|
480
524
|
return (
|
|
481
525
|
<FWVideoFeed
|
|
@@ -493,6 +537,7 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
493
537
|
onVideoFeedDidStopPictureInPicture={
|
|
494
538
|
this._onVideoFeedDidStopPictureInPicture
|
|
495
539
|
}
|
|
540
|
+
onVideoFeedGetFeedId={this._onVideoFeedGetFeedId}
|
|
496
541
|
mode={mode ?? 'row'}
|
|
497
542
|
/>
|
|
498
543
|
);
|
package/src/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ import type ButtonInfo from './models/ButtonInfo';
|
|
|
27
27
|
import type FeedItemDetails from './models/FeedItemDetails';
|
|
28
28
|
import type FWError from './models/FWError';
|
|
29
29
|
import type {
|
|
30
|
+
CustomClickCartIconEvent,
|
|
30
31
|
CustomClickLinkButtonEvent,
|
|
31
32
|
CustomCTAClickEvent,
|
|
32
33
|
CustomTapProductCardEvent,
|
|
@@ -120,6 +121,7 @@ export {
|
|
|
120
121
|
AndroidFontInfo,
|
|
121
122
|
ButtonInfo,
|
|
122
123
|
CustomClickCartIconCallback,
|
|
124
|
+
CustomClickCartIconEvent,
|
|
123
125
|
CustomClickLinkButtonCallback,
|
|
124
126
|
CustomClickLinkButtonEvent,
|
|
125
127
|
CustomCTAClickCallback,
|
package/src/models/FWEvents.ts
CHANGED
|
@@ -16,13 +16,13 @@ export interface SDKInitEvent {
|
|
|
16
16
|
|
|
17
17
|
export interface PlayerHandler {
|
|
18
18
|
/**
|
|
19
|
-
* Pause
|
|
19
|
+
* Pause The video playback associated with this CTA.
|
|
20
20
|
* Only supported on iOS
|
|
21
21
|
*/
|
|
22
22
|
pause: () => void;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Resume
|
|
25
|
+
* Resume The video playback associated with this CTA.
|
|
26
26
|
* Only supported on iOS
|
|
27
27
|
*/
|
|
28
28
|
resume: () => void;
|
|
@@ -39,6 +39,11 @@ export interface CustomCTAClickEvent {
|
|
|
39
39
|
* Only supported on iOS
|
|
40
40
|
*/
|
|
41
41
|
playerHandler?: PlayerHandler;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The video playback details for the event.
|
|
45
|
+
*/
|
|
46
|
+
video: VideoPlaybackDetails;
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
export interface VideoPlaybackEvent {
|
|
@@ -63,6 +68,10 @@ export interface ShoppingCTAEvent {
|
|
|
63
68
|
* A unique identifier of the product unit.
|
|
64
69
|
*/
|
|
65
70
|
unitId: string;
|
|
71
|
+
/**
|
|
72
|
+
* The video playback details for the event.
|
|
73
|
+
*/
|
|
74
|
+
video: VideoPlaybackDetails;
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
export interface UpdateProductDetailsEvent {
|
|
@@ -70,6 +79,10 @@ export interface UpdateProductDetailsEvent {
|
|
|
70
79
|
* A unique identifier list of the products.
|
|
71
80
|
*/
|
|
72
81
|
productIds: string[];
|
|
82
|
+
/**
|
|
83
|
+
* The video playback details for the event.
|
|
84
|
+
*/
|
|
85
|
+
video: VideoPlaybackDetails;
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
export interface CustomClickLinkButtonEvent {
|
|
@@ -85,6 +98,11 @@ export interface CustomClickLinkButtonEvent {
|
|
|
85
98
|
* A unique identifier of the product unit.
|
|
86
99
|
*/
|
|
87
100
|
unitId: string;
|
|
101
|
+
/**
|
|
102
|
+
* The video playback details for the event.
|
|
103
|
+
* Only supported on Android.
|
|
104
|
+
*/
|
|
105
|
+
video?: VideoPlaybackDetails;
|
|
88
106
|
}
|
|
89
107
|
|
|
90
108
|
export interface CustomTapProductCardEvent {
|
|
@@ -101,7 +119,7 @@ export interface CustomTapProductCardEvent {
|
|
|
101
119
|
*/
|
|
102
120
|
unitId: string;
|
|
103
121
|
/**
|
|
104
|
-
*
|
|
122
|
+
* The video playback details for the event.
|
|
105
123
|
*/
|
|
106
124
|
video: VideoPlaybackDetails;
|
|
107
125
|
/**
|
|
@@ -120,3 +138,10 @@ export interface LiveStreamChatEvent {
|
|
|
120
138
|
message: LiveStreamMessageDetails;
|
|
121
139
|
liveStream: LiveStreamEventDetails;
|
|
122
140
|
}
|
|
141
|
+
|
|
142
|
+
export interface CustomClickCartIconEvent {
|
|
143
|
+
/**
|
|
144
|
+
* The video playback details for the event.
|
|
145
|
+
*/
|
|
146
|
+
video: VideoPlaybackDetails;
|
|
147
|
+
}
|
|
@@ -49,5 +49,11 @@ export default interface FeedItemDetails {
|
|
|
49
49
|
* For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.
|
|
50
50
|
* Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.
|
|
51
51
|
*/
|
|
52
|
-
hashtagFilterExpression?: string;
|
|
52
|
+
hashtagFilterExpression?: string | null;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The feed id for the item.
|
|
56
|
+
* Only supported on Android.
|
|
57
|
+
*/
|
|
58
|
+
feedId?: string | null;
|
|
53
59
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReplayBadgeConfiguration } from './ReplayBadgeConfiguration';
|
|
1
2
|
import type VideoPlayerButtonConfiguration from './VideoPlayerButtonConfiguration';
|
|
2
3
|
import type { VideoPlayerCTADelay } from './VideoPlayerCTADelay';
|
|
3
4
|
import type { VideoPlayerCTAStyle } from './VideoPlayerCTAStyle';
|
|
@@ -73,7 +74,11 @@ export interface StoryBlockConfiguration {
|
|
|
73
74
|
/**
|
|
74
75
|
* Specifies the logo configuration
|
|
75
76
|
* Defaults to { option: 'disabled' }
|
|
76
|
-
* Only supported on iOS.
|
|
77
77
|
*/
|
|
78
78
|
videoPlayerLogoConfiguration?: VideoPlayerLogoConfiguration;
|
|
79
|
+
/**
|
|
80
|
+
* The configuration of replay badge.
|
|
81
|
+
* Only supported on iOS.
|
|
82
|
+
*/
|
|
83
|
+
replayBadgeConfiguration?: ReplayBadgeConfiguration;
|
|
79
84
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type IOSFontInfo from './IOSFontInfo';
|
|
2
2
|
import type AndroidFontInfo from './AndroidFontInfo';
|
|
3
3
|
import type GradientDrawable from './GradientDrawable';
|
|
4
|
+
import type { ReplayBadgeConfiguration } from './ReplayBadgeConfiguration';
|
|
4
5
|
|
|
5
6
|
export interface VideoFeedTitleConfiguration {
|
|
6
7
|
/**
|
|
@@ -135,4 +136,9 @@ export default interface VideoFeedConfiguration {
|
|
|
135
136
|
* Defaults to 2.
|
|
136
137
|
*/
|
|
137
138
|
gridColumns?: number;
|
|
139
|
+
/**
|
|
140
|
+
* The configuration of replay badge.
|
|
141
|
+
* Only supported on iOS.
|
|
142
|
+
*/
|
|
143
|
+
replayBadge?: ReplayBadgeConfiguration;
|
|
138
144
|
}
|
|
@@ -5,6 +5,7 @@ import type { VideoPlayerCTAWidth } from './VideoPlayerCTAWidth';
|
|
|
5
5
|
import type { VideoPlayerCompleteAction } from './VideoPlayerCompleteAction';
|
|
6
6
|
import type { VideoPlayerStyle } from './VideoPlayerStyle';
|
|
7
7
|
import type { VideoPlayerLogoConfiguration } from './VideoPlayerLogoConfiguration';
|
|
8
|
+
import type { ReplayBadgeConfiguration } from './ReplayBadgeConfiguration';
|
|
8
9
|
|
|
9
10
|
export default interface VideoPlayerConfiguration {
|
|
10
11
|
/**
|
|
@@ -71,7 +72,11 @@ export default interface VideoPlayerConfiguration {
|
|
|
71
72
|
/**
|
|
72
73
|
* Specifies the logo configuration
|
|
73
74
|
* Defaults to { option: 'disabled' }
|
|
74
|
-
* Only supported on iOS.
|
|
75
75
|
*/
|
|
76
76
|
videoPlayerLogoConfiguration?: VideoPlayerLogoConfiguration;
|
|
77
|
+
/**
|
|
78
|
+
* The configuration of replay badge.
|
|
79
|
+
* Only supported on iOS.
|
|
80
|
+
*/
|
|
81
|
+
replayBadgeConfiguration?: ReplayBadgeConfiguration;
|
|
77
82
|
}
|
|
@@ -19,6 +19,7 @@ const FireworkSDKModule = NativeModules.FireworkSDK
|
|
|
19
19
|
|
|
20
20
|
interface IFireworkSDKModule extends NativeModule {
|
|
21
21
|
init(options?: SDKInitOptions): Promise<any>;
|
|
22
|
+
markInitCalled(): Promise<boolean>;
|
|
22
23
|
openVideoPlayer(url: string, config?: VideoPlayerNativeConfiguration): void;
|
|
23
24
|
setVideoFeedClickCallbackEnabled(enabled: boolean): void; // Only supported on iOS
|
|
24
25
|
setCustomCTAClickEnabled(enabled: boolean): void;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>AvailableLibraries</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-arm64_x86_64-simulator</string>
|
|
10
|
-
<key>LibraryPath</key>
|
|
11
|
-
<string>FireworkVideoUI.framework</string>
|
|
12
|
-
<key>SupportedArchitectures</key>
|
|
13
|
-
<array>
|
|
14
|
-
<string>arm64</string>
|
|
15
|
-
<string>x86_64</string>
|
|
16
|
-
</array>
|
|
17
|
-
<key>SupportedPlatform</key>
|
|
18
|
-
<string>ios</string>
|
|
19
|
-
<key>SupportedPlatformVariant</key>
|
|
20
|
-
<string>simulator</string>
|
|
21
|
-
</dict>
|
|
22
|
-
<dict>
|
|
23
|
-
<key>LibraryIdentifier</key>
|
|
24
|
-
<string>ios-arm64</string>
|
|
25
|
-
<key>LibraryPath</key>
|
|
26
|
-
<string>FireworkVideoUI.framework</string>
|
|
27
|
-
<key>SupportedArchitectures</key>
|
|
28
|
-
<array>
|
|
29
|
-
<string>arm64</string>
|
|
30
|
-
</array>
|
|
31
|
-
<key>SupportedPlatform</key>
|
|
32
|
-
<string>ios</string>
|
|
33
|
-
</dict>
|
|
34
|
-
</array>
|
|
35
|
-
<key>CFBundlePackageType</key>
|
|
36
|
-
<string>XFWK</string>
|
|
37
|
-
<key>XCFrameworkFormatVersion</key>
|
|
38
|
-
<string>1.0</string>
|
|
39
|
-
</dict>
|
|
40
|
-
</plist>
|
|
Binary file
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
#if 0
|
|
2
|
-
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
|
|
4
|
-
#ifndef FIREWORKVIDEOUI_SWIFT_H
|
|
5
|
-
#define FIREWORKVIDEOUI_SWIFT_H
|
|
6
|
-
#pragma clang diagnostic push
|
|
7
|
-
#pragma clang diagnostic ignored "-Wgcc-compat"
|
|
8
|
-
|
|
9
|
-
#if !defined(__has_include)
|
|
10
|
-
# define __has_include(x) 0
|
|
11
|
-
#endif
|
|
12
|
-
#if !defined(__has_attribute)
|
|
13
|
-
# define __has_attribute(x) 0
|
|
14
|
-
#endif
|
|
15
|
-
#if !defined(__has_feature)
|
|
16
|
-
# define __has_feature(x) 0
|
|
17
|
-
#endif
|
|
18
|
-
#if !defined(__has_warning)
|
|
19
|
-
# define __has_warning(x) 0
|
|
20
|
-
#endif
|
|
21
|
-
|
|
22
|
-
#if __has_include(<swift/objc-prologue.h>)
|
|
23
|
-
# include <swift/objc-prologue.h>
|
|
24
|
-
#endif
|
|
25
|
-
|
|
26
|
-
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
27
|
-
#pragma clang diagnostic ignored "-Wauto-import"
|
|
28
|
-
#if defined(__OBJC__)
|
|
29
|
-
#include <Foundation/Foundation.h>
|
|
30
|
-
#endif
|
|
31
|
-
#if defined(__cplusplus)
|
|
32
|
-
#include <cstdint>
|
|
33
|
-
#include <cstddef>
|
|
34
|
-
#include <cstdbool>
|
|
35
|
-
#else
|
|
36
|
-
#include <stdint.h>
|
|
37
|
-
#include <stddef.h>
|
|
38
|
-
#include <stdbool.h>
|
|
39
|
-
#endif
|
|
40
|
-
|
|
41
|
-
#if !defined(SWIFT_TYPEDEFS)
|
|
42
|
-
# define SWIFT_TYPEDEFS 1
|
|
43
|
-
# if __has_include(<uchar.h>)
|
|
44
|
-
# include <uchar.h>
|
|
45
|
-
# elif !defined(__cplusplus)
|
|
46
|
-
typedef uint_least16_t char16_t;
|
|
47
|
-
typedef uint_least32_t char32_t;
|
|
48
|
-
# endif
|
|
49
|
-
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
|
50
|
-
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
|
51
|
-
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
|
52
|
-
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
|
53
|
-
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
|
54
|
-
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
|
55
|
-
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
|
56
|
-
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
|
57
|
-
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
|
58
|
-
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
|
59
|
-
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
|
60
|
-
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
61
|
-
#endif
|
|
62
|
-
|
|
63
|
-
#if !defined(SWIFT_PASTE)
|
|
64
|
-
# define SWIFT_PASTE_HELPER(x, y) x##y
|
|
65
|
-
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
|
66
|
-
#endif
|
|
67
|
-
#if !defined(SWIFT_METATYPE)
|
|
68
|
-
# define SWIFT_METATYPE(X) Class
|
|
69
|
-
#endif
|
|
70
|
-
#if !defined(SWIFT_CLASS_PROPERTY)
|
|
71
|
-
# if __has_feature(objc_class_property)
|
|
72
|
-
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
73
|
-
# else
|
|
74
|
-
# define SWIFT_CLASS_PROPERTY(...)
|
|
75
|
-
# endif
|
|
76
|
-
#endif
|
|
77
|
-
|
|
78
|
-
#if __has_attribute(objc_runtime_name)
|
|
79
|
-
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
80
|
-
#else
|
|
81
|
-
# define SWIFT_RUNTIME_NAME(X)
|
|
82
|
-
#endif
|
|
83
|
-
#if __has_attribute(swift_name)
|
|
84
|
-
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
85
|
-
#else
|
|
86
|
-
# define SWIFT_COMPILE_NAME(X)
|
|
87
|
-
#endif
|
|
88
|
-
#if __has_attribute(objc_method_family)
|
|
89
|
-
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
90
|
-
#else
|
|
91
|
-
# define SWIFT_METHOD_FAMILY(X)
|
|
92
|
-
#endif
|
|
93
|
-
#if __has_attribute(noescape)
|
|
94
|
-
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
95
|
-
#else
|
|
96
|
-
# define SWIFT_NOESCAPE
|
|
97
|
-
#endif
|
|
98
|
-
#if __has_attribute(ns_consumed)
|
|
99
|
-
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
100
|
-
#else
|
|
101
|
-
# define SWIFT_RELEASES_ARGUMENT
|
|
102
|
-
#endif
|
|
103
|
-
#if __has_attribute(warn_unused_result)
|
|
104
|
-
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
105
|
-
#else
|
|
106
|
-
# define SWIFT_WARN_UNUSED_RESULT
|
|
107
|
-
#endif
|
|
108
|
-
#if __has_attribute(noreturn)
|
|
109
|
-
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
110
|
-
#else
|
|
111
|
-
# define SWIFT_NORETURN
|
|
112
|
-
#endif
|
|
113
|
-
#if !defined(SWIFT_CLASS_EXTRA)
|
|
114
|
-
# define SWIFT_CLASS_EXTRA
|
|
115
|
-
#endif
|
|
116
|
-
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
117
|
-
# define SWIFT_PROTOCOL_EXTRA
|
|
118
|
-
#endif
|
|
119
|
-
#if !defined(SWIFT_ENUM_EXTRA)
|
|
120
|
-
# define SWIFT_ENUM_EXTRA
|
|
121
|
-
#endif
|
|
122
|
-
#if !defined(SWIFT_CLASS)
|
|
123
|
-
# if __has_attribute(objc_subclassing_restricted)
|
|
124
|
-
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
|
125
|
-
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
126
|
-
# else
|
|
127
|
-
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
128
|
-
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
129
|
-
# endif
|
|
130
|
-
#endif
|
|
131
|
-
#if !defined(SWIFT_RESILIENT_CLASS)
|
|
132
|
-
# if __has_attribute(objc_class_stub)
|
|
133
|
-
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
|
134
|
-
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
135
|
-
# else
|
|
136
|
-
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
|
137
|
-
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
138
|
-
# endif
|
|
139
|
-
#endif
|
|
140
|
-
|
|
141
|
-
#if !defined(SWIFT_PROTOCOL)
|
|
142
|
-
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
143
|
-
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
144
|
-
#endif
|
|
145
|
-
|
|
146
|
-
#if !defined(SWIFT_EXTENSION)
|
|
147
|
-
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
148
|
-
#endif
|
|
149
|
-
|
|
150
|
-
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
151
|
-
# if __has_attribute(objc_designated_initializer)
|
|
152
|
-
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
153
|
-
# else
|
|
154
|
-
# define OBJC_DESIGNATED_INITIALIZER
|
|
155
|
-
# endif
|
|
156
|
-
#endif
|
|
157
|
-
#if !defined(SWIFT_ENUM_ATTR)
|
|
158
|
-
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
|
159
|
-
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
160
|
-
# else
|
|
161
|
-
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
162
|
-
# endif
|
|
163
|
-
#endif
|
|
164
|
-
#if !defined(SWIFT_ENUM)
|
|
165
|
-
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
166
|
-
# if __has_feature(generalized_swift_name)
|
|
167
|
-
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
168
|
-
# else
|
|
169
|
-
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
170
|
-
# endif
|
|
171
|
-
#endif
|
|
172
|
-
#if !defined(SWIFT_UNAVAILABLE)
|
|
173
|
-
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
174
|
-
#endif
|
|
175
|
-
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
|
176
|
-
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
|
177
|
-
#endif
|
|
178
|
-
#if !defined(SWIFT_AVAILABILITY)
|
|
179
|
-
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
180
|
-
#endif
|
|
181
|
-
#if !defined(SWIFT_WEAK_IMPORT)
|
|
182
|
-
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
183
|
-
#endif
|
|
184
|
-
#if !defined(SWIFT_DEPRECATED)
|
|
185
|
-
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
|
186
|
-
#endif
|
|
187
|
-
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
188
|
-
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
189
|
-
#endif
|
|
190
|
-
#if __has_feature(attribute_diagnose_if_objc)
|
|
191
|
-
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
192
|
-
#else
|
|
193
|
-
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
194
|
-
#endif
|
|
195
|
-
#if defined(__OBJC__)
|
|
196
|
-
#if !defined(IBSegueAction)
|
|
197
|
-
# define IBSegueAction
|
|
198
|
-
#endif
|
|
199
|
-
#endif
|
|
200
|
-
#if !defined(SWIFT_EXTERN)
|
|
201
|
-
# if defined(__cplusplus)
|
|
202
|
-
# define SWIFT_EXTERN extern "C"
|
|
203
|
-
# else
|
|
204
|
-
# define SWIFT_EXTERN extern
|
|
205
|
-
# endif
|
|
206
|
-
#endif
|
|
207
|
-
#if !defined(SWIFT_CALL)
|
|
208
|
-
# define SWIFT_CALL __attribute__((swiftcall))
|
|
209
|
-
#endif
|
|
210
|
-
#if defined(__cplusplus)
|
|
211
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
212
|
-
# define SWIFT_NOEXCEPT noexcept
|
|
213
|
-
#endif
|
|
214
|
-
#else
|
|
215
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
216
|
-
# define SWIFT_NOEXCEPT
|
|
217
|
-
#endif
|
|
218
|
-
#endif
|
|
219
|
-
#if defined(__cplusplus)
|
|
220
|
-
#if !defined(SWIFT_CXX_INT_DEFINED)
|
|
221
|
-
#define SWIFT_CXX_INT_DEFINED
|
|
222
|
-
namespace swift {
|
|
223
|
-
using Int = ptrdiff_t;
|
|
224
|
-
using UInt = size_t;
|
|
225
|
-
}
|
|
226
|
-
#endif
|
|
227
|
-
#endif
|
|
228
|
-
#if defined(__OBJC__)
|
|
229
|
-
#if __has_feature(modules)
|
|
230
|
-
#if __has_warning("-Watimport-in-framework-header")
|
|
231
|
-
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
232
|
-
#endif
|
|
233
|
-
#endif
|
|
234
|
-
|
|
235
|
-
#endif
|
|
236
|
-
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
237
|
-
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
238
|
-
#if __has_warning("-Wpragma-clang-attribute")
|
|
239
|
-
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
240
|
-
#endif
|
|
241
|
-
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
242
|
-
#pragma clang diagnostic ignored "-Wnullability"
|
|
243
|
-
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
244
|
-
|
|
245
|
-
#if __has_attribute(external_source_symbol)
|
|
246
|
-
# pragma push_macro("any")
|
|
247
|
-
# undef any
|
|
248
|
-
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FireworkVideoUI",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
249
|
-
# pragma pop_macro("any")
|
|
250
|
-
#endif
|
|
251
|
-
|
|
252
|
-
#if defined(__OBJC__)
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
#endif
|
|
270
|
-
#if defined(__cplusplus)
|
|
271
|
-
#endif
|
|
272
|
-
#if __has_attribute(external_source_symbol)
|
|
273
|
-
# pragma clang attribute pop
|
|
274
|
-
#endif
|
|
275
|
-
#pragma clang diagnostic pop
|
|
276
|
-
#endif
|
|
277
|
-
|
|
278
|
-
#else
|
|
279
|
-
#error unsupported Swift architecture
|
|
280
|
-
#endif
|
package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Headers/FireworkVideoUI.h
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FireworkVideoUI.h
|
|
3
|
-
// FireworkVideoUI
|
|
4
|
-
//
|
|
5
|
-
// Created by linjie jiang on 4/25/23.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
//! Project version number for FireworkVideoUI.
|
|
11
|
-
FOUNDATION_EXPORT double FireworkVideoUIVersionNumber;
|
|
12
|
-
|
|
13
|
-
//! Project version string for FireworkVideoUI.
|
|
14
|
-
FOUNDATION_EXPORT const unsigned char FireworkVideoUIVersionString[];
|
|
15
|
-
|
|
16
|
-
// In this header, you should import all the public headers of your framework using statements like #import <FireworkVideoUI/PublicHeader.h>
|
|
17
|
-
|
|
18
|
-
|