react-native-firework-sdk 2.18.13 → 2.18.14
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/models/FWVideoFeedConfigModel.kt +0 -8
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedConfigModelDeserializer.kt +0 -19
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedConfigModelSerializer.kt +0 -17
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoShoppingProduct.kt +0 -12
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoShoppingProductDeserializer.kt +0 -36
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoShoppingProductSerializer.kt +0 -24
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FireworkSDKInterface.kt +0 -1
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWVideoShoppingModule.kt +3 -17
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt +0 -14
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWConfigUtil.kt +1 -13
- package/ios/Components/StoryBlock.swift +0 -8
- package/ios/Components/StoryBlockManager.m +0 -11
- package/ios/Models/NativeToRN/FireworkEventName.swift +0 -1
- package/ios/Models/RNToNative/RCTConvert+FireworkSDKModule.swift +0 -13
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.m +0 -1
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.swift +0 -14
- package/ios/Modules/Shopping/Product.swift +0 -12
- package/ios/Modules/Shopping/ShoppingModule.swift +0 -35
- package/lib/commonjs/FireworkSDK.js +0 -18
- package/lib/commonjs/FireworkSDK.js.map +1 -1
- package/lib/commonjs/components/StoryBlock.js +0 -7
- package/lib/commonjs/components/StoryBlock.js.map +1 -1
- package/lib/commonjs/components/VideoFeed.js +0 -15
- package/lib/commonjs/components/VideoFeed.js.map +1 -1
- package/lib/commonjs/index.js +0 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/FWEventName.js +0 -1
- package/lib/commonjs/models/FWEventName.js.map +1 -1
- package/lib/commonjs/modules/FireworkSDKModule.js.map +1 -1
- package/lib/module/FireworkSDK.js +0 -18
- package/lib/module/FireworkSDK.js.map +1 -1
- package/lib/module/components/StoryBlock.js +0 -7
- package/lib/module/components/StoryBlock.js.map +1 -1
- package/lib/module/components/VideoFeed.js +0 -15
- package/lib/module/components/VideoFeed.js.map +1 -1
- package/lib/module/index.js +1 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/FWEventName.js +0 -1
- package/lib/module/models/FWEventName.js.map +1 -1
- package/lib/module/modules/FireworkSDKModule.js.map +1 -1
- package/lib/typescript/commonjs/src/FireworkSDK.d.ts +0 -7
- package/lib/typescript/commonjs/src/FireworkSDK.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/StoryBlock.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/StoryBlock.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/VideoFeed.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/FWEventName.d.ts +0 -1
- package/lib/typescript/commonjs/src/models/FWEventName.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/Product.d.ts +0 -40
- package/lib/typescript/commonjs/src/models/Product.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/ProductUnit.d.ts +0 -4
- package/lib/typescript/commonjs/src/models/ProductUnit.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/VideoFeedConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoFeedConfiguration.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/FireworkSDKModule.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/FireworkSDKModule.d.ts.map +1 -1
- package/lib/typescript/module/src/FireworkSDK.d.ts +0 -7
- package/lib/typescript/module/src/FireworkSDK.d.ts.map +1 -1
- package/lib/typescript/module/src/components/StoryBlock.d.ts +3 -4
- package/lib/typescript/module/src/components/StoryBlock.d.ts.map +1 -1
- package/lib/typescript/module/src/components/VideoFeed.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/FWEventName.d.ts +0 -1
- package/lib/typescript/module/src/models/FWEventName.d.ts.map +1 -1
- package/lib/typescript/module/src/models/Product.d.ts +0 -40
- package/lib/typescript/module/src/models/Product.d.ts.map +1 -1
- package/lib/typescript/module/src/models/ProductUnit.d.ts +0 -4
- package/lib/typescript/module/src/models/ProductUnit.d.ts.map +1 -1
- package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts +1 -0
- package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts +0 -2
- package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts.map +1 -1
- package/package.json +3 -3
- package/react_native_firework_sdk.podspec +1 -1
- package/src/FireworkSDK.ts +0 -23
- package/src/components/StoryBlock.tsx +3 -19
- package/src/components/VideoFeed.tsx +0 -29
- package/src/index.tsx +0 -2
- package/src/models/FWEventName.ts +0 -1
- package/src/models/Product.ts +0 -40
- package/src/models/ProductUnit.ts +0 -4
- package/src/models/VideoFeedConfiguration.ts +1 -0
- package/src/modules/FireworkSDKModule.ts +0 -4
- package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWShortVideoPlayerVersion.kt +0 -6
- package/lib/commonjs/models/ShortVideoPlayerDesignVersion.js +0 -13
- package/lib/commonjs/models/ShortVideoPlayerDesignVersion.js.map +0 -1
- package/lib/module/models/ShortVideoPlayerDesignVersion.js +0 -9
- package/lib/module/models/ShortVideoPlayerDesignVersion.js.map +0 -1
- package/lib/typescript/commonjs/src/models/ShortVideoPlayerDesignVersion.d.ts +0 -6
- package/lib/typescript/commonjs/src/models/ShortVideoPlayerDesignVersion.d.ts.map +0 -1
- package/lib/typescript/module/src/models/ShortVideoPlayerDesignVersion.d.ts +0 -6
- package/lib/typescript/module/src/models/ShortVideoPlayerDesignVersion.d.ts.map +0 -1
- package/src/models/ShortVideoPlayerDesignVersion.ts +0 -6
|
@@ -13,7 +13,6 @@ data class FWVideoFeedConfigModel(
|
|
|
13
13
|
val gridColumns: Int? = null,
|
|
14
14
|
val itemSpacing: Int? = null,
|
|
15
15
|
val aspectRatio: Double? = null,
|
|
16
|
-
val contentPadding: FWPaddingModel? = null,
|
|
17
16
|
) {
|
|
18
17
|
|
|
19
18
|
data class FWTitleModel(
|
|
@@ -30,11 +29,4 @@ data class FWVideoFeedConfigModel(
|
|
|
30
29
|
val hidden: Boolean? = null,
|
|
31
30
|
val iconWidth: Int? = null,
|
|
32
31
|
)
|
|
33
|
-
|
|
34
|
-
data class FWPaddingModel(
|
|
35
|
-
val top: Int? = null,
|
|
36
|
-
val right: Int? = null,
|
|
37
|
-
val bottom: Int? = null,
|
|
38
|
-
val left: Int? = null,
|
|
39
|
-
)
|
|
40
32
|
}
|
package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedConfigModelDeserializer.kt
CHANGED
|
@@ -15,7 +15,6 @@ object FWVideoFeedConfigModelDeserializer {
|
|
|
15
15
|
private const val ENABLE_AUTOPLAY_KEY = "enableAutoplay"
|
|
16
16
|
private const val GRID_COLUMNS_KEY = "gridColumns"
|
|
17
17
|
private const val ITEM_SPACING_KEY = "itemSpacing"
|
|
18
|
-
private const val CONTENT_PADDING_KEY = "contentPadding"
|
|
19
18
|
|
|
20
19
|
private const val HIDDEN_KEY = "hidden"
|
|
21
20
|
private const val TEXT_COLOR_KEY = "textColor"
|
|
@@ -39,7 +38,6 @@ object FWVideoFeedConfigModelDeserializer {
|
|
|
39
38
|
val enableAutoplay = if (responseJson.has(ENABLE_AUTOPLAY_KEY)) responseJson.optBoolean(ENABLE_AUTOPLAY_KEY) else null
|
|
40
39
|
val gridColumns = if (!responseJson.isNull(GRID_COLUMNS_KEY)) responseJson.optInt(GRID_COLUMNS_KEY) else null
|
|
41
40
|
val itemSpacing = if (!responseJson.isNull(ITEM_SPACING_KEY)) responseJson.optInt(ITEM_SPACING_KEY) else null
|
|
42
|
-
val contentPadding = if (responseJson.has(CONTENT_PADDING_KEY)) deserializeContentPadding(responseJson.optJSONObject(CONTENT_PADDING_KEY)) else null
|
|
43
41
|
|
|
44
42
|
return FWVideoFeedConfigModel(
|
|
45
43
|
backgroundColor = backgroundColor,
|
|
@@ -52,7 +50,6 @@ object FWVideoFeedConfigModelDeserializer {
|
|
|
52
50
|
gridColumns = gridColumns,
|
|
53
51
|
itemSpacing = itemSpacing,
|
|
54
52
|
aspectRatio = aspectRatio,
|
|
55
|
-
contentPadding = contentPadding,
|
|
56
53
|
)
|
|
57
54
|
}
|
|
58
55
|
|
|
@@ -89,20 +86,4 @@ object FWVideoFeedConfigModelDeserializer {
|
|
|
89
86
|
iconWidth = iconWidth,
|
|
90
87
|
)
|
|
91
88
|
}
|
|
92
|
-
|
|
93
|
-
private fun deserializeContentPadding(paddingJson: JSONObject?): FWVideoFeedConfigModel.FWPaddingModel? {
|
|
94
|
-
paddingJson ?: return null
|
|
95
|
-
|
|
96
|
-
val top = if (!paddingJson.isNull("top")) paddingJson.optInt("top") else null
|
|
97
|
-
val right = if (!paddingJson.isNull("right")) paddingJson.optInt("right") else null
|
|
98
|
-
val bottom = if (!paddingJson.isNull("bottom")) paddingJson.optInt("bottom") else null
|
|
99
|
-
val left = if (!paddingJson.isNull("left")) paddingJson.optInt("left") else null
|
|
100
|
-
|
|
101
|
-
return FWVideoFeedConfigModel.FWPaddingModel(
|
|
102
|
-
top = top,
|
|
103
|
-
right = right,
|
|
104
|
-
bottom = bottom,
|
|
105
|
-
left = left,
|
|
106
|
-
)
|
|
107
|
-
}
|
|
108
89
|
}
|
package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedConfigModelSerializer.kt
CHANGED
|
@@ -15,7 +15,6 @@ object FWVideoFeedConfigModelSerializer {
|
|
|
15
15
|
private const val ENABLE_AUTOPLAY_KEY = "enableAutoplay"
|
|
16
16
|
private const val GRID_COLUMNS_KEY = "gridColumns"
|
|
17
17
|
private const val ITEM_SPACING_KEY = "itemSpacing"
|
|
18
|
-
private const val CONTENT_PADDING_KEY = "contentPadding"
|
|
19
18
|
|
|
20
19
|
private const val HIDDEN_KEY = "hidden"
|
|
21
20
|
private const val TEXT_COLOR_KEY = "textColor"
|
|
@@ -26,11 +25,6 @@ object FWVideoFeedConfigModelSerializer {
|
|
|
26
25
|
|
|
27
26
|
private const val ICON_WIDTH_KEY = "iconWidth"
|
|
28
27
|
|
|
29
|
-
private const val PADDING_TOP_KEY = "top"
|
|
30
|
-
private const val PADDING_RIGHT_KEY = "right"
|
|
31
|
-
private const val PADDING_BOTTOM_KEY = "bottom"
|
|
32
|
-
private const val PADDING_LEFT_KEY = "left"
|
|
33
|
-
|
|
34
28
|
fun serialize(model: FWVideoFeedConfigModel?): JSONObject? {
|
|
35
29
|
model ?: return null
|
|
36
30
|
val jsonObject = JSONObject()
|
|
@@ -44,7 +38,6 @@ object FWVideoFeedConfigModelSerializer {
|
|
|
44
38
|
jsonObject.put(ENABLE_AUTOPLAY_KEY, model.enableAutoplay)
|
|
45
39
|
jsonObject.put(GRID_COLUMNS_KEY, model.gridColumns)
|
|
46
40
|
jsonObject.put(ITEM_SPACING_KEY, model.itemSpacing)
|
|
47
|
-
jsonObject.put(CONTENT_PADDING_KEY, serializePadding(model.contentPadding))
|
|
48
41
|
return jsonObject
|
|
49
42
|
}
|
|
50
43
|
|
|
@@ -67,14 +60,4 @@ object FWVideoFeedConfigModelSerializer {
|
|
|
67
60
|
jsonObject.put(ICON_WIDTH_KEY, model.iconWidth)
|
|
68
61
|
return jsonObject
|
|
69
62
|
}
|
|
70
|
-
|
|
71
|
-
private fun serializePadding(model: FWVideoFeedConfigModel.FWPaddingModel?): JSONObject? {
|
|
72
|
-
model ?: return null
|
|
73
|
-
val jsonObject = JSONObject()
|
|
74
|
-
jsonObject.put(PADDING_TOP_KEY, model.top)
|
|
75
|
-
jsonObject.put(PADDING_RIGHT_KEY, model.right)
|
|
76
|
-
jsonObject.put(PADDING_BOTTOM_KEY, model.bottom)
|
|
77
|
-
jsonObject.put(PADDING_LEFT_KEY, model.left)
|
|
78
|
-
return jsonObject
|
|
79
|
-
}
|
|
80
63
|
}
|
|
@@ -3,27 +3,15 @@ package com.fireworksdk.bridge.models
|
|
|
3
3
|
data class FWVideoShoppingProduct(
|
|
4
4
|
val productId: String? = null,
|
|
5
5
|
val name: String? = null,
|
|
6
|
-
val subtitle: String? = null,
|
|
7
|
-
val currency: String? = null,
|
|
8
6
|
val description: String? = null,
|
|
9
7
|
val units: List<FWVideoProductUnit>? = null,
|
|
10
8
|
val isAvailable: Boolean = true,
|
|
11
|
-
val mainProductImage: String? = null,
|
|
12
|
-
val isDisabled: Boolean? = null,
|
|
13
|
-
val hidePrice: Boolean? = null,
|
|
14
|
-
val customCTATitleTranslation: String? = null,
|
|
15
|
-
val hidePrimaryCTA: Boolean? = null,
|
|
16
|
-
val customCTATarget: String? = null,
|
|
17
|
-
val customCTAUrl: String? = null,
|
|
18
|
-
val customCTATitle: String? = null,
|
|
19
|
-
val hidden: Boolean? = null,
|
|
20
9
|
) {
|
|
21
10
|
|
|
22
11
|
data class FWVideoProductUnit(
|
|
23
12
|
val unitId: String? = null,
|
|
24
13
|
val name: String? = null,
|
|
25
14
|
val price: FWVideoProductPrice? = null,
|
|
26
|
-
val originalPrice: FWVideoProductPrice? = null,
|
|
27
15
|
val url: String? = null,
|
|
28
16
|
val imageUrl: String? = null,
|
|
29
17
|
val options: List<FWVideoProductOption>? = null,
|
package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoShoppingProductDeserializer.kt
CHANGED
|
@@ -7,24 +7,12 @@ object FWVideoShoppingProductDeserializer {
|
|
|
7
7
|
|
|
8
8
|
private const val PRODUCT_ID_KEY = "productId"
|
|
9
9
|
private const val NAME_KEY = "name"
|
|
10
|
-
private const val SUBTITLE_KEY = "subtitle"
|
|
11
|
-
private const val CURRENCY_KEY = "currency"
|
|
12
10
|
private const val DESCRIPTION_KEY = "description"
|
|
13
11
|
private const val UNITS_KEY = "units"
|
|
14
12
|
private const val IS_AVAILABLE_KEY = "isAvailable"
|
|
15
|
-
private const val MAIN_PRODUCT_IMAGE_KEY = "mainProductImage"
|
|
16
|
-
private const val IS_DISABLED_KEY = "isDisabled"
|
|
17
|
-
private const val HIDE_PRICE_KEY = "hidePrice"
|
|
18
|
-
private const val CUSTOM_CTA_TITLE_TRANSLATION_KEY = "customCTATitleTranslation"
|
|
19
|
-
private const val HIDE_PRIMARY_CTA_KEY = "hidePrimaryCTA"
|
|
20
|
-
private const val CUSTOM_CTA_TARGET_KEY = "customCTATarget"
|
|
21
|
-
private const val CUSTOM_CTA_URL_KEY = "customCTAUrl"
|
|
22
|
-
private const val CUSTOM_CTA_TITLE_KEY = "customCTATitle"
|
|
23
|
-
private const val HIDDEN_KEY = "hidden"
|
|
24
13
|
|
|
25
14
|
private const val UNIT_ID_KEY = "unitId"
|
|
26
15
|
private const val PRICE_KEY = "price"
|
|
27
|
-
private const val ORIGINAL_PRICE_KEY = "originalPrice"
|
|
28
16
|
private const val URL_KEY = "url"
|
|
29
17
|
private const val IMAGE_URL_KEY = "imageUrl"
|
|
30
18
|
private const val OPTIONS_KEY = "options"
|
|
@@ -49,38 +37,16 @@ object FWVideoShoppingProductDeserializer {
|
|
|
49
37
|
responseJson ?: return null
|
|
50
38
|
val productId = if (responseJson.has(PRODUCT_ID_KEY)) responseJson.optString(PRODUCT_ID_KEY) else null
|
|
51
39
|
val name = if (responseJson.has(NAME_KEY)) responseJson.optString(NAME_KEY) else null
|
|
52
|
-
val subtitle = if (responseJson.has(SUBTITLE_KEY)) responseJson.optString(SUBTITLE_KEY) else null
|
|
53
|
-
val currency = if (responseJson.has(CURRENCY_KEY)) responseJson.optString(CURRENCY_KEY) else null
|
|
54
40
|
val description = if (responseJson.has(DESCRIPTION_KEY)) responseJson.optString(DESCRIPTION_KEY) else null
|
|
55
41
|
val units = deserializeUnits(responseJson.optJSONArray(UNITS_KEY))
|
|
56
42
|
val isAvailable = responseJson.optBoolean(IS_AVAILABLE_KEY, true)
|
|
57
|
-
val mainProductImage = if (responseJson.has(MAIN_PRODUCT_IMAGE_KEY)) responseJson.optString(MAIN_PRODUCT_IMAGE_KEY) else null
|
|
58
|
-
val isDisabled = if (responseJson.has(IS_DISABLED_KEY)) responseJson.optBoolean(IS_DISABLED_KEY) else null
|
|
59
|
-
val hidePrice = if (responseJson.has(HIDE_PRICE_KEY)) responseJson.optBoolean(HIDE_PRICE_KEY) else null
|
|
60
|
-
val customCTATitleTranslation = if (responseJson.has(CUSTOM_CTA_TITLE_TRANSLATION_KEY)) responseJson.optString(CUSTOM_CTA_TITLE_TRANSLATION_KEY) else null
|
|
61
|
-
val hidePrimaryCTA = if (responseJson.has(HIDE_PRIMARY_CTA_KEY)) responseJson.optBoolean(HIDE_PRIMARY_CTA_KEY) else null
|
|
62
|
-
val customCTATarget = if (responseJson.has(CUSTOM_CTA_TARGET_KEY)) responseJson.optString(CUSTOM_CTA_TARGET_KEY) else null
|
|
63
|
-
val customCTAUrl = if (responseJson.has(CUSTOM_CTA_URL_KEY)) responseJson.optString(CUSTOM_CTA_URL_KEY) else null
|
|
64
|
-
val customCTATitle = if (responseJson.has(CUSTOM_CTA_TITLE_KEY)) responseJson.optString(CUSTOM_CTA_TITLE_KEY) else null
|
|
65
|
-
val hidden = if (responseJson.has(HIDDEN_KEY)) responseJson.optBoolean(HIDDEN_KEY) else null
|
|
66
43
|
|
|
67
44
|
return FWVideoShoppingProduct(
|
|
68
45
|
productId = productId,
|
|
69
46
|
name = name,
|
|
70
|
-
subtitle = subtitle,
|
|
71
|
-
currency = currency,
|
|
72
47
|
description = description,
|
|
73
48
|
units = units,
|
|
74
49
|
isAvailable = isAvailable,
|
|
75
|
-
mainProductImage = mainProductImage,
|
|
76
|
-
isDisabled = isDisabled,
|
|
77
|
-
hidePrice = hidePrice,
|
|
78
|
-
customCTATitleTranslation = customCTATitleTranslation,
|
|
79
|
-
hidePrimaryCTA = hidePrimaryCTA,
|
|
80
|
-
customCTATarget = customCTATarget,
|
|
81
|
-
customCTAUrl = customCTAUrl,
|
|
82
|
-
customCTATitle = customCTATitle,
|
|
83
|
-
hidden = hidden,
|
|
84
50
|
)
|
|
85
51
|
}
|
|
86
52
|
|
|
@@ -100,7 +66,6 @@ object FWVideoShoppingProductDeserializer {
|
|
|
100
66
|
val unitId = if (unitsJsonObject.has(UNIT_ID_KEY)) unitsJsonObject.optString(UNIT_ID_KEY) else null
|
|
101
67
|
val name = if (unitsJsonObject.has(NAME_KEY)) unitsJsonObject.optString(NAME_KEY) else null
|
|
102
68
|
val price = deserializePrice(unitsJsonObject.optJSONObject(PRICE_KEY))
|
|
103
|
-
val originalPrice = deserializePrice(unitsJsonObject.optJSONObject(ORIGINAL_PRICE_KEY))
|
|
104
69
|
val url = if (unitsJsonObject.has(URL_KEY)) unitsJsonObject.optString(URL_KEY) else null
|
|
105
70
|
val imageUrl = if (unitsJsonObject.has(IMAGE_URL_KEY)) unitsJsonObject.optString(IMAGE_URL_KEY) else null
|
|
106
71
|
val options = deserializeOptions(unitsJsonObject.optJSONArray(OPTIONS_KEY))
|
|
@@ -110,7 +75,6 @@ object FWVideoShoppingProductDeserializer {
|
|
|
110
75
|
unitId = unitId,
|
|
111
76
|
name = name,
|
|
112
77
|
price = price,
|
|
113
|
-
originalPrice = originalPrice,
|
|
114
78
|
url = url,
|
|
115
79
|
imageUrl = imageUrl,
|
|
116
80
|
options = options,
|
package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoShoppingProductSerializer.kt
CHANGED
|
@@ -7,24 +7,12 @@ object FWVideoShoppingProductSerializer {
|
|
|
7
7
|
|
|
8
8
|
private const val PRODUCT_ID_KEY = "productId"
|
|
9
9
|
private const val NAME_KEY = "name"
|
|
10
|
-
private const val SUBTITLE_KEY = "subtitle"
|
|
11
|
-
private const val CURRENCY_KEY = "currency"
|
|
12
10
|
private const val DESCRIPTION_KEY = "description"
|
|
13
11
|
private const val UNITS_KEY = "units"
|
|
14
12
|
private const val IS_AVAILABLE_KEY = "isAvailable"
|
|
15
|
-
private const val MAIN_PRODUCT_IMAGE_KEY = "mainProductImage"
|
|
16
|
-
private const val IS_DISABLED_KEY = "isDisabled"
|
|
17
|
-
private const val HIDE_PRICE_KEY = "hidePrice"
|
|
18
|
-
private const val CUSTOM_CTA_TITLE_TRANSLATION_KEY = "customCTATitleTranslation"
|
|
19
|
-
private const val HIDE_PRIMARY_CTA_KEY = "hidePrimaryCTA"
|
|
20
|
-
private const val CUSTOM_CTA_TARGET_KEY = "customCTATarget"
|
|
21
|
-
private const val CUSTOM_CTA_URL_KEY = "customCTAUrl"
|
|
22
|
-
private const val CUSTOM_CTA_TITLE_KEY = "customCTATitle"
|
|
23
|
-
private const val HIDDEN_KEY = "hidden"
|
|
24
13
|
|
|
25
14
|
private const val UNIT_ID_KEY = "unitId"
|
|
26
15
|
private const val PRICE_KEY = "price"
|
|
27
|
-
private const val ORIGINAL_PRICE_KEY = "originalPrice"
|
|
28
16
|
private const val URL_KEY = "url"
|
|
29
17
|
private const val IMAGE_URL_KEY = "imageUrl"
|
|
30
18
|
private const val OPTIONS_KEY = "options"
|
|
@@ -39,20 +27,9 @@ object FWVideoShoppingProductSerializer {
|
|
|
39
27
|
val jsonObject = JSONObject()
|
|
40
28
|
jsonObject.put(PRODUCT_ID_KEY, model.productId)
|
|
41
29
|
jsonObject.put(NAME_KEY, model.name)
|
|
42
|
-
jsonObject.put(SUBTITLE_KEY, model.subtitle)
|
|
43
|
-
jsonObject.put(CURRENCY_KEY, model.currency)
|
|
44
30
|
jsonObject.put(DESCRIPTION_KEY, model.description)
|
|
45
31
|
jsonObject.put(UNITS_KEY, serializeUnits(model.units))
|
|
46
32
|
jsonObject.put(IS_AVAILABLE_KEY, model.isAvailable)
|
|
47
|
-
jsonObject.put(MAIN_PRODUCT_IMAGE_KEY, model.mainProductImage)
|
|
48
|
-
jsonObject.put(IS_DISABLED_KEY, model.isDisabled)
|
|
49
|
-
jsonObject.put(HIDE_PRICE_KEY, model.hidePrice)
|
|
50
|
-
jsonObject.put(CUSTOM_CTA_TITLE_TRANSLATION_KEY, model.customCTATitleTranslation)
|
|
51
|
-
jsonObject.put(HIDE_PRIMARY_CTA_KEY, model.hidePrimaryCTA)
|
|
52
|
-
jsonObject.put(CUSTOM_CTA_TARGET_KEY, model.customCTATarget)
|
|
53
|
-
jsonObject.put(CUSTOM_CTA_URL_KEY, model.customCTAUrl)
|
|
54
|
-
jsonObject.put(CUSTOM_CTA_TITLE_KEY, model.customCTATitle)
|
|
55
|
-
jsonObject.put(HIDDEN_KEY, model.hidden)
|
|
56
33
|
return jsonObject
|
|
57
34
|
}
|
|
58
35
|
|
|
@@ -71,7 +48,6 @@ object FWVideoShoppingProductSerializer {
|
|
|
71
48
|
jsonObject.put(UNIT_ID_KEY, model.unitId)
|
|
72
49
|
jsonObject.put(NAME_KEY, model.name)
|
|
73
50
|
jsonObject.put(PRICE_KEY, serializePrice(model.price))
|
|
74
|
-
jsonObject.put(ORIGINAL_PRICE_KEY, serializePrice(model.originalPrice))
|
|
75
51
|
jsonObject.put(URL_KEY, model.url)
|
|
76
52
|
jsonObject.put(IMAGE_URL_KEY, model.imageUrl)
|
|
77
53
|
jsonObject.put(OPTIONS_KEY, serializeOptions(model.options))
|
package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FireworkSDKInterface.kt
CHANGED
|
@@ -17,5 +17,4 @@ interface FireworkSDKInterface {
|
|
|
17
17
|
fun trackPurchase(config: ReadableMap?, promise: Promise)
|
|
18
18
|
fun setDataTrackingLevel(level: String?, promise: Promise)
|
|
19
19
|
fun setLivestreamPlayerDesignVersion(version: String?, promise: Promise)
|
|
20
|
-
fun setShortVideoPlayerDesignVersion(version: String?, promise: Promise)
|
|
21
20
|
}
|
package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWVideoShoppingModule.kt
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
package com.fireworksdk.bridge.reactnative.module
|
|
2
2
|
|
|
3
|
-
import android.R.attr.subtitle
|
|
4
3
|
import android.widget.Toast
|
|
5
4
|
import com.facebook.react.bridge.*
|
|
6
5
|
import com.firework.analyticsevents.VideoInfo
|
|
@@ -110,18 +109,7 @@ class FWVideoShoppingModule(
|
|
|
110
109
|
hydrator.hydrate(id) {
|
|
111
110
|
name(name)
|
|
112
111
|
description(description)
|
|
113
|
-
|
|
114
|
-
videoProduct.currency?.let { currency(it) }
|
|
115
|
-
videoProduct.mainProductImage?.let { mainProductImage(it) }
|
|
116
|
-
videoProduct.isDisabled?.let { isDisabled(it) }
|
|
117
|
-
videoProduct.hidePrice?.let { hidePrice(it) }
|
|
118
|
-
videoProduct.customCTATitleTranslation?.let { customCTATitleTranslation(it) }
|
|
119
|
-
videoProduct.hidePrimaryCTA?.let { hidePrimaryCTA(it) }
|
|
120
|
-
videoProduct.customCTATarget?.let { customCTATarget(it) }
|
|
121
|
-
videoProduct.customCTAUrl?.let { customCTAUrl(it) }
|
|
122
|
-
videoProduct.customCTATitle?.let { customCTATitle(it) }
|
|
123
|
-
videoProduct.hidden?.let { hidden(it) }
|
|
124
|
-
product.units.forEachIndexed { index, unit ->
|
|
112
|
+
product.units.forEachIndexed { _, unit ->
|
|
125
113
|
unit.id?.let { variantId ->
|
|
126
114
|
val vpUnit = videoProduct.units?.find { vpu ->
|
|
127
115
|
vpu.unitId == variantId
|
|
@@ -137,14 +125,12 @@ class FWVideoShoppingModule(
|
|
|
137
125
|
currency(currency)
|
|
138
126
|
price(price = vpu.price?.amount ?: unit.price.amount)
|
|
139
127
|
name((vpu.name ?: unit.name) ?: "")
|
|
140
|
-
isAvailable(vpu.isAvailable)
|
|
141
|
-
vpu.originalPrice?.amount?.let { originalPrice(it) }
|
|
142
|
-
this
|
|
128
|
+
isAvailable(vpu.isAvailable) // i != 0
|
|
143
129
|
}
|
|
144
130
|
}
|
|
145
131
|
}
|
|
146
132
|
}
|
|
147
|
-
isAvailable(videoProduct.isAvailable)
|
|
133
|
+
isAvailable(videoProduct.isAvailable) // position != 0
|
|
148
134
|
}
|
|
149
135
|
}
|
|
150
136
|
}
|
package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt
CHANGED
|
@@ -17,12 +17,10 @@ import com.firework.common.tracking.ProductItem
|
|
|
17
17
|
import com.firework.sdk.FireworkSdk
|
|
18
18
|
import com.firework.sdk.FwLivestreamPlayerVersion
|
|
19
19
|
import com.firework.sdk.FwTrackingLevel
|
|
20
|
-
import com.firework.sdk.FwVideoPlayerVersion
|
|
21
20
|
import com.fireworksdk.bridge.FWInitializationProvider
|
|
22
21
|
import com.fireworksdk.bridge.models.*
|
|
23
22
|
import com.fireworksdk.bridge.models.enums.FWDataTrackingLevel
|
|
24
23
|
import com.fireworksdk.bridge.models.enums.FWLivestreamPlayerVersion
|
|
25
|
-
import com.fireworksdk.bridge.models.enums.FWShortVideoPlayerVersion
|
|
26
24
|
import com.fireworksdk.bridge.models.enums.FWVideoPlaybackSubEventName
|
|
27
25
|
import com.fireworksdk.bridge.reactnative.FWReactNativeSDK
|
|
28
26
|
import com.fireworksdk.bridge.reactnative.models.FireworkSDKInterface
|
|
@@ -346,18 +344,6 @@ class FireworkSDKModule(
|
|
|
346
344
|
promise.resolve(true)
|
|
347
345
|
}
|
|
348
346
|
|
|
349
|
-
@ReactMethod
|
|
350
|
-
override fun setShortVideoPlayerDesignVersion(version: String?, promise: Promise) {
|
|
351
|
-
val playerVersion =
|
|
352
|
-
when (version) {
|
|
353
|
-
FWShortVideoPlayerVersion.V1.rawValue -> FwVideoPlayerVersion.V1
|
|
354
|
-
FWShortVideoPlayerVersion.V2.rawValue -> FwVideoPlayerVersion.V2
|
|
355
|
-
else -> FwVideoPlayerVersion.V1
|
|
356
|
-
}
|
|
357
|
-
FireworkSdk.setVideoPlayerVersion(playerVersion)
|
|
358
|
-
promise.resolve(true)
|
|
359
|
-
}
|
|
360
|
-
|
|
361
347
|
@ReactMethod
|
|
362
348
|
fun addListener(eventName: String?, promise: Promise) {
|
|
363
349
|
// Set up any upstream listeners or background tasks as necessary
|
|
@@ -15,7 +15,6 @@ import com.firework.common.cta.CtaDelay
|
|
|
15
15
|
import com.firework.common.cta.CtaDelayUnit
|
|
16
16
|
import com.firework.common.cta.CtaStyle
|
|
17
17
|
import com.firework.common.feed.FeedLayout
|
|
18
|
-
import com.firework.common.feed.FeedPadding
|
|
19
18
|
import com.firework.common.feed.FeedResource
|
|
20
19
|
import com.firework.common.feed.FeedTitlePosition
|
|
21
20
|
import com.firework.common.player.ActionButtonOption
|
|
@@ -106,9 +105,7 @@ object FWConfigUtil {
|
|
|
106
105
|
}
|
|
107
106
|
}
|
|
108
107
|
FWVideoFeedSource.PlaylistGroup -> {
|
|
109
|
-
|
|
110
|
-
baseOptionBuilder.feedResource(FeedResource.PlaylistGroup(playlistGroupId))
|
|
111
|
-
}
|
|
108
|
+
|
|
112
109
|
}
|
|
113
110
|
FWVideoFeedSource.HashtagPlaylist -> {
|
|
114
111
|
videoFeedPropsModel.channel?.let { channel ->
|
|
@@ -313,15 +310,6 @@ object FWConfigUtil {
|
|
|
313
310
|
layoutOptionBuilder.itemSpacing(FWCommonUtil.dpToPx(itemSpacing.toFloat(), context) / 2)
|
|
314
311
|
}
|
|
315
312
|
|
|
316
|
-
val contentPadding = videoFeedPropsModel.videoFeedConfiguration?.contentPadding
|
|
317
|
-
if (contentPadding != null) {
|
|
318
|
-
val top = contentPadding.top?.let { FWCommonUtil.dpToPx(it.toFloat(), context) } ?: 0
|
|
319
|
-
val right = contentPadding.right?.let { FWCommonUtil.dpToPx(it.toFloat(), context) } ?: 0
|
|
320
|
-
val bottom = contentPadding.bottom?.let { FWCommonUtil.dpToPx(it.toFloat(), context) } ?: 0
|
|
321
|
-
val left = contentPadding.left?.let { FWCommonUtil.dpToPx(it.toFloat(), context) } ?: 0
|
|
322
|
-
layoutOptionBuilder.feedPadding(FeedPadding(start = left, top = top, end = right, bottom = bottom))
|
|
323
|
-
}
|
|
324
|
-
|
|
325
313
|
// player config
|
|
326
314
|
when (videoFeedPropsModel.videoPlayerConfiguration?.playerStyle) {
|
|
327
315
|
FWPlayerStyle.Fit -> {
|
|
@@ -177,14 +177,6 @@ public class StoryBlock: UIView, StoryBlockViewControllerDelegate, PictureInPict
|
|
|
177
177
|
storyBlockVC.endAppearanceTransition()
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
@objc
|
|
181
|
-
public func openFullscreen() {
|
|
182
|
-
guard let storyBlockVC = self.storyBlockVC else {
|
|
183
|
-
return
|
|
184
|
-
}
|
|
185
|
-
storyBlockVC.enterFullScreen()
|
|
186
|
-
}
|
|
187
|
-
|
|
188
180
|
public func storyBlockDidLoadFeed(_ viewController: StoryBlockViewController) {
|
|
189
181
|
guard let delegate = self.delegate else {
|
|
190
182
|
return
|
|
@@ -93,16 +93,5 @@ RCT_EXPORT_METHOD(onViewportLeft:(nonnull NSNumber *)reactTag) {
|
|
|
93
93
|
}];
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
RCT_EXPORT_METHOD(openFullscreen:(nonnull NSNumber *)reactTag) {
|
|
97
|
-
[self.bridge.uiManager addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *,UIView *> *viewRegistry) {
|
|
98
|
-
StoryBlock *view = (StoryBlock *)(viewRegistry[reactTag]);
|
|
99
|
-
if (!view || ![view isKindOfClass:[StoryBlock class]]) {
|
|
100
|
-
RCTLogError(@"Cannot find NativeView with tag #%@", reactTag);
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
[view openFullscreen];
|
|
104
|
-
}];
|
|
105
|
-
}
|
|
106
|
-
|
|
107
96
|
@end
|
|
108
97
|
|
|
@@ -21,7 +21,6 @@ enum FWEventName: String, CaseIterable {
|
|
|
21
21
|
case logMessage = "fw:log-message"
|
|
22
22
|
case productInfoViewConfigurationUpdated = "fw:product-info-view-configuration-updated" // emitted in JS side
|
|
23
23
|
case livestreamPlayerDesignVersionUpdated = "fw:livestream-player-design-version-updated" // emitted in JS side
|
|
24
|
-
case shortVideoPlayerDesignVersionUpdated = "fw:short-video-player-design-version-updated" // emitted in JS side
|
|
25
24
|
case dataTrackingLevelUpdated = "fw:data-tracking-level-updated" // emitted in JS side
|
|
26
25
|
}
|
|
27
26
|
|
|
@@ -139,17 +139,4 @@ extension RCTConvert {
|
|
|
139
139
|
return nil
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
static func shortVideoPlayerDesignVersion(
|
|
144
|
-
_ version: String
|
|
145
|
-
) -> FireworkVideo.ShortVideoPlayerDesignVersion? {
|
|
146
|
-
switch version {
|
|
147
|
-
case "v1":
|
|
148
|
-
return FireworkVideo.ShortVideoPlayerDesignVersion.v1
|
|
149
|
-
case "v2":
|
|
150
|
-
return FireworkVideo.ShortVideoPlayerDesignVersion.v2
|
|
151
|
-
default:
|
|
152
|
-
return nil
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
142
|
}
|
|
@@ -24,6 +24,5 @@ RCT_EXTERN_METHOD(pausePlayer:(NSString *)callbackId)
|
|
|
24
24
|
RCT_EXTERN_METHOD(resumePlayer:(NSString *)callbackId)
|
|
25
25
|
RCT_EXTERN_METHOD(setDataTrackingLevel:(NSString *)level resolver: (RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter)
|
|
26
26
|
RCT_EXTERN_METHOD(setLivestreamPlayerDesignVersion:(NSString *)version resolver: (RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter)
|
|
27
|
-
RCT_EXTERN_METHOD(setShortVideoPlayerDesignVersion:(NSString *)version resolver: (RCTPromiseResolveBlock)resolver rejecter:(RCTPromiseRejectBlock)rejecter)
|
|
28
27
|
|
|
29
28
|
@end
|
|
@@ -251,20 +251,6 @@ class FireworkSDKModule: RCTEventEmitter, FireworkVideoSDKDelegate {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
@objc(setShortVideoPlayerDesignVersion:resolver:rejecter:)
|
|
255
|
-
func setShortVideoPlayerDesignVersion(
|
|
256
|
-
_ version: String,
|
|
257
|
-
resolver: @escaping RCTPromiseResolveBlock,
|
|
258
|
-
rejecter: @escaping RCTPromiseRejectBlock
|
|
259
|
-
) {
|
|
260
|
-
if let shortVideoPlayerDesignVersion = RCTConvert.shortVideoPlayerDesignVersion(version) {
|
|
261
|
-
FireworkVideoSDK.shortVideoPlayerDesignVersion = shortVideoPlayerDesignVersion
|
|
262
|
-
resolver(true)
|
|
263
|
-
} else {
|
|
264
|
-
resolver(false)
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
254
|
override func startObserving() {
|
|
269
255
|
super.startObserving()
|
|
270
256
|
hasListeners = true
|
|
@@ -10,26 +10,14 @@ import Foundation
|
|
|
10
10
|
struct Product: Codable {
|
|
11
11
|
var productId: String
|
|
12
12
|
var name: String?
|
|
13
|
-
var subtitle: String?
|
|
14
|
-
var currency: String?
|
|
15
13
|
var description: String?
|
|
16
14
|
var isAvailable: Bool?
|
|
17
|
-
var mainProductImage: String?
|
|
18
|
-
var isDisabled: Bool?
|
|
19
|
-
var hidePrice: Bool?
|
|
20
|
-
var customCTATitleTranslation: String?
|
|
21
|
-
var hidePrimaryCTA: Bool?
|
|
22
|
-
var customCTATarget: String?
|
|
23
|
-
var customCTAUrl: String?
|
|
24
|
-
var customCTATitle: String?
|
|
25
|
-
var hidden: Bool?
|
|
26
15
|
var units: [ProductUnit]?
|
|
27
16
|
|
|
28
17
|
struct ProductUnit: Codable {
|
|
29
18
|
var unitId: String
|
|
30
19
|
var name: String?
|
|
31
20
|
var price: Price?
|
|
32
|
-
var originalPrice: Price?
|
|
33
21
|
var url: String?
|
|
34
22
|
var imageUrl: String?
|
|
35
23
|
var isAvailable: Bool?
|
|
@@ -513,42 +513,12 @@ extension ShoppingModule {
|
|
|
513
513
|
if let name = product.name {
|
|
514
514
|
pbuild.name(name)
|
|
515
515
|
}
|
|
516
|
-
if let subtitle = product.subtitle {
|
|
517
|
-
pbuild.subtitle(subtitle)
|
|
518
|
-
}
|
|
519
|
-
if let currency = product.currency {
|
|
520
|
-
pbuild.currency(currency)
|
|
521
|
-
}
|
|
522
516
|
if let description = product.description {
|
|
523
517
|
pbuild.description(description)
|
|
524
518
|
}
|
|
525
519
|
if let isAvailable = product.isAvailable {
|
|
526
520
|
pbuild.isAvailable(isAvailable)
|
|
527
521
|
}
|
|
528
|
-
if let mainProductImage = product.mainProductImage {
|
|
529
|
-
pbuild.mainProductImage(mainProductImage)
|
|
530
|
-
}
|
|
531
|
-
if let hidePrice = product.hidePrice {
|
|
532
|
-
pbuild.hidePrice(hidePrice)
|
|
533
|
-
}
|
|
534
|
-
if let customCTATitleTranslation = product.customCTATitleTranslation {
|
|
535
|
-
pbuild.customCTATitleTranslation(customCTATitleTranslation)
|
|
536
|
-
}
|
|
537
|
-
if let hidePrimaryCTA = product.hidePrimaryCTA {
|
|
538
|
-
pbuild.hidePrimaryCTA(hidePrimaryCTA)
|
|
539
|
-
}
|
|
540
|
-
if let customCTATarget = product.customCTATarget {
|
|
541
|
-
pbuild.customCTATarget(customCTATarget)
|
|
542
|
-
}
|
|
543
|
-
if let customCTAUrl = product.customCTAUrl {
|
|
544
|
-
pbuild.customCTAUrl(customCTAUrl)
|
|
545
|
-
}
|
|
546
|
-
if let customCTATitle = product.customCTATitle {
|
|
547
|
-
pbuild.customCTATitle(customCTATitle)
|
|
548
|
-
}
|
|
549
|
-
if let hidden = product.hidden {
|
|
550
|
-
pbuild.hidden(hidden)
|
|
551
|
-
}
|
|
552
522
|
if let variants = product.units {
|
|
553
523
|
for variant in variants {
|
|
554
524
|
pbuild.variant(variant.unitId) { pvBuild in
|
|
@@ -576,11 +546,6 @@ extension ShoppingModule {
|
|
|
576
546
|
pvBuild.formattedPrice(Decimal(amount), currencyCode: currencyCode)
|
|
577
547
|
}
|
|
578
548
|
}
|
|
579
|
-
if let originalPrice = variant.originalPrice {
|
|
580
|
-
if let amount = originalPrice.amount, let currencyCode = originalPrice.currencyCode {
|
|
581
|
-
pvBuild.formattedOriginalPrice(Decimal(amount), currencyCode: currencyCode)
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
549
|
if let isAvailable = variant.isAvailable {
|
|
585
550
|
pvBuild.isAvailable(isAvailable)
|
|
586
551
|
}
|
|
@@ -9,7 +9,6 @@ var _FWNavigator = _interopRequireDefault(require("./FWNavigator.js"));
|
|
|
9
9
|
var _LiveStream = _interopRequireDefault(require("./LiveStream.js"));
|
|
10
10
|
var _FWEventName = require("./models/FWEventName.js");
|
|
11
11
|
var _LivestreamPlayerDesignVersion = _interopRequireDefault(require("./models/LivestreamPlayerDesignVersion.js"));
|
|
12
|
-
var _ShortVideoPlayerDesignVersion = _interopRequireDefault(require("./models/ShortVideoPlayerDesignVersion.js"));
|
|
13
12
|
var _FireworkSDKModule = _interopRequireWildcard(require("./modules/FireworkSDKModule.js"));
|
|
14
13
|
var _LiveStreamModule = _interopRequireDefault(require("./modules/LiveStreamModule.js"));
|
|
15
14
|
var _ShoppingModule = _interopRequireDefault(require("./modules/ShoppingModule.js"));
|
|
@@ -137,23 +136,6 @@ class FireworkSDK {
|
|
|
137
136
|
});
|
|
138
137
|
}
|
|
139
138
|
_livestreamPlayerDesignVersion = _LivestreamPlayerDesignVersion.default.v1;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The version of the short video player design.
|
|
143
|
-
*/
|
|
144
|
-
get shortVideoPlayerDesignVersion() {
|
|
145
|
-
return this._shortVideoPlayerDesignVersion;
|
|
146
|
-
}
|
|
147
|
-
set shortVideoPlayerDesignVersion(value) {
|
|
148
|
-
const valueHasChanged = this._shortVideoPlayerDesignVersion !== value;
|
|
149
|
-
this._shortVideoPlayerDesignVersion = value;
|
|
150
|
-
_FireworkSDKModule.default.setShortVideoPlayerDesignVersion(value).then(() => {
|
|
151
|
-
if (valueHasChanged) {
|
|
152
|
-
this.eventEmitter.emit(_FWEventName.FWEventName.ShortVideoPlayerDesignVersionUpdated);
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
_shortVideoPlayerDesignVersion = _ShortVideoPlayerDesignVersion.default.v1;
|
|
157
139
|
get eventEmitter() {
|
|
158
140
|
return _FireworkSDKModule.FireworkSDKModuleEventEmitter;
|
|
159
141
|
}
|