From 00676a82c36bef4f18b441f4de3ee1f0ba1b4cdf Mon Sep 17 00:00:00 2001 From: Jayden Date: Sat, 17 Feb 2024 04:59:44 +0000 Subject: [PATCH] Update sample codes for v2.6.3 --- CHANGELOG.md | 10 ++++++++++ FireworkFlutterSDKSample/lib/my_app.dart | 8 +++++++- .../lib/screens/home/home_screen.dart | 6 ++++++ .../lib/screens/more/more_screen.dart | 2 +- .../lib/utils/host_app_service.dart | 19 ++++++++++--------- FireworkFlutterSDKSample/pubspec.lock | 4 ++-- FireworkFlutterSDKSample/pubspec.yaml | 2 +- docs/__404error.html | 2 +- .../AdBadgeConfiguration-class.html | 2 +- .../AdBadgeConfiguration.html | 2 +- .../AdBadgeConfiguration/androidFontInfo.html | 2 +- .../AdBadgeConfiguration/backgroundColor.html | 2 +- .../AdBadgeConfiguration/badgeTextType.html | 2 +- .../AdBadgeConfiguration/deepCopy.html | 2 +- .../AdBadgeConfiguration/textColor.html | 2 +- docs/fw_flutter_sdk/AdBadgeTextType.html | 2 +- .../AdBadgeTextType/AdBadgeTextType.html | 2 +- .../AdBadgeTextType/values-constant.html | 2 +- .../fw_flutter_sdk/AdConfiguration-class.html | 2 +- .../AdConfiguration/AdConfiguration.html | 2 +- .../AdConfiguration/adsFetchTimeout.html | 2 +- .../AdConfiguration/deepCopy.html | 2 +- .../AdConfiguration/requiresAds.html | 2 +- .../AdConfiguration/vastAttributes.html | 2 +- .../fw_flutter_sdk/AndroidFontInfo-class.html | 2 +- .../AndroidFontInfo/AndroidFontInfo.html | 2 +- .../AndroidFontInfo/deepCopy.html | 2 +- .../AndroidFontInfo/hashCode.html | 2 +- .../AndroidFontInfo/isCustom.html | 2 +- .../AndroidFontInfo/operator_equals.html | 2 +- .../AndroidFontInfo/typefaceName.html | 2 +- docs/fw_flutter_sdk/ButtonInfo-class.html | 2 +- .../fw_flutter_sdk/ButtonInfo/ButtonInfo.html | 2 +- docs/fw_flutter_sdk/ButtonInfo/deepCopy.html | 2 +- docs/fw_flutter_sdk/ButtonInfo/hashCode.html | 2 +- docs/fw_flutter_sdk/ButtonInfo/imageName.html | 2 +- .../ButtonInfo/operator_equals.html | 2 +- .../ButtonInfo/systemImageName.html | 2 +- docs/fw_flutter_sdk/ButtonInfo/tintColor.html | 2 +- .../CountdownTimerAppearanceMode.html | 2 +- .../CountdownTimerAppearanceMode.html | 2 +- .../values-constant.html | 2 +- .../CountdownTimerConfiguration-class.html | 2 +- .../CountdownTimerConfiguration.html | 2 +- .../appearance.html | 2 +- .../CountdownTimerConfiguration/deepCopy.html | 2 +- .../CountdownTimerConfiguration/hashCode.html | 2 +- .../CountdownTimerConfiguration/isHidden.html | 2 +- .../operator_equals.html | 2 +- .../CustomCTAClickCallback.html | 2 +- .../CustomCTAClickEvent-class.html | 2 +- .../CustomCTAClickEvent.html | 2 +- .../CustomCTAClickEvent/playerHandler.html | 2 +- .../CustomCTAClickEvent/url.html | 2 +- .../CustomCTAClickEvent/video.html | 2 +- .../CustomClickCartIconCallback.html | 2 +- .../CustomClickCartIconEvent-class.html | 2 +- .../CustomClickCartIconEvent.html | 2 +- .../CustomClickCartIconEvent/video.html | 2 +- .../CustomClickLinkButtonCallback.html | 2 +- .../CustomClickLinkButtonEvent-class.html | 2 +- .../CustomClickLinkButtonEvent.html | 2 +- .../CustomClickLinkButtonEvent/productId.html | 2 +- .../CustomClickLinkButtonEvent/unitId.html | 2 +- .../CustomClickLinkButtonEvent/url.html | 2 +- .../CustomClickLinkButtonEvent/video.html | 2 +- .../CustomTapProductCardCallback.html | 2 +- .../CustomTapProductCardEvent-class.html | 2 +- .../CustomTapProductCardEvent.html | 2 +- .../CustomTapProductCardEvent/productId.html | 2 +- .../CustomTapProductCardEvent/unitId.html | 2 +- .../CustomTapProductCardEvent/url.html | 2 +- .../CustomTapProductCardEvent/video.html | 2 +- docs/fw_flutter_sdk/FWError-class.html | 2 +- docs/fw_flutter_sdk/FWError/FWError.html | 2 +- docs/fw_flutter_sdk/FWError/name.html | 2 +- docs/fw_flutter_sdk/FWError/reason.html | 2 +- docs/fw_flutter_sdk/FWEvent-class.html | 2 +- docs/fw_flutter_sdk/FWEvent/FWEvent.html | 2 +- docs/fw_flutter_sdk/FWEvent/arguments.html | 2 +- docs/fw_flutter_sdk/FWEvent/eventName.html | 2 +- docs/fw_flutter_sdk/FWEventBus-class.html | 2 +- .../FWEventBus/FWEventBus.getInstance.html | 2 +- docs/fw_flutter_sdk/FWEventBus/fire.html | 2 +- docs/fw_flutter_sdk/FWEventBus/on.html | 2 +- docs/fw_flutter_sdk/FWNavigator-class.html | 2 +- .../FWNavigator/FWNavigator.getInstance.html | 2 +- .../FWNavigator/popNativeContainer.html | 2 +- .../FWNavigator/startFloatingPlayer.html | 2 +- .../FWNavigator/stopFloatingPlayer.html | 2 +- .../fw_flutter_sdk/FeedItemDetails-class.html | 2 +- .../FeedItemDetails/FeedItemDetails.html | 2 +- .../FeedItemDetails/channel.html | 2 +- .../FeedItemDetails/duration.html | 2 +- .../dynamicContentParameters.html | 2 +- .../FeedItemDetails/feedId.html | 2 +- .../hashtagFilterExpression.html | 2 +- docs/fw_flutter_sdk/FeedItemDetails/id.html | 2 +- .../fw_flutter_sdk/FeedItemDetails/index.html | 2 +- .../FeedItemDetails/playlist.html | 2 +- .../FeedItemDetails/playlistGroup.html | 2 +- .../FeedItemDetails/source.html | 2 +- .../fw_flutter_sdk/FeedItemDetails/title.html | 2 +- docs/fw_flutter_sdk/FireworkSDK-class.html | 2 +- .../FireworkSDK/FireworkSDK.getInstance.html | 2 +- .../FireworkSDK/adBadgeConfiguration.html | 2 +- .../FireworkSDK/appLanguage.html | 2 +- .../FireworkSDK/changeAppLanguage.html | 2 +- .../FireworkSDK/debugLogsEnabled.html | 2 +- docs/fw_flutter_sdk/FireworkSDK/init.html | 2 +- .../FireworkSDK/liveStream.html | 2 +- .../FireworkSDK/markInitCalled.html | 2 +- .../fw_flutter_sdk/FireworkSDK/navigator.html | 2 +- .../FireworkSDK/onCustomCTAClick.html | 2 +- .../fw_flutter_sdk/FireworkSDK/onSDKInit.html | 2 +- .../FireworkSDK/onVideoFeedClick.html | 2 +- .../FireworkSDK/onVideoPlayback.html | 2 +- .../FireworkSDK/openVideoPlayer.html | 2 +- .../FireworkSDK/shareBaseURL.html | 2 +- docs/fw_flutter_sdk/FireworkSDK/shopping.html | 2 +- .../FireworkSDK/trackPurchase.html | 2 +- .../FireworkSDK/videoLaunchBehavior.html | 2 +- .../GradientDrawable-class.html | 2 +- .../GradientDrawable/GradientDrawable.html | 2 +- .../GradientDrawable/colors.html | 2 +- .../GradientDrawable/deepCopy.html | 2 +- .../GradientDrawable/hashCode.html | 2 +- .../GradientDrawable/operator_equals.html | 2 +- .../GradientDrawable/orientation.html | 2 +- .../GradientDrawableOrientation.html | 2 +- .../GradientDrawableOrientation.html | 2 +- .../GradientDrawableOrientation/rawName.html | 2 +- .../values-constant.html | 2 +- docs/fw_flutter_sdk/IOSFontInfo-class.html | 2 +- .../IOSFontInfo/IOSFontInfo.html | 2 +- docs/fw_flutter_sdk/IOSFontInfo/deepCopy.html | 2 +- docs/fw_flutter_sdk/IOSFontInfo/fontName.html | 2 +- docs/fw_flutter_sdk/IOSFontInfo/hashCode.html | 2 +- .../IOSFontInfo/operator_equals.html | 2 +- .../IOSFontInfo/systemFontStyle.html | 2 +- .../IOSFontInfo/systemFontWeight.html | 2 +- docs/fw_flutter_sdk/IOSSystemFontStyle.html | 2 +- .../IOSSystemFontStyle.html | 2 +- .../IOSSystemFontStyle/values-constant.html | 2 +- docs/fw_flutter_sdk/IOSSystemFontWeight.html | 2 +- .../IOSSystemFontWeight.html | 2 +- .../IOSSystemFontWeight/values-constant.html | 2 +- .../LinkButtonConfiguration-class.html | 2 +- .../LinkButtonConfiguration.html | 2 +- .../LinkButtonConfiguration/deepCopy.html | 2 +- .../LinkButtonConfiguration/isHidden.html | 2 +- docs/fw_flutter_sdk/LiveStream-class.html | 2 +- .../LiveStream/LiveStream.getInstance.html | 2 +- .../LiveStream/onLiveStreamChatEvent.html | 2 +- .../LiveStream/onLiveStreamEvent.html | 2 +- .../LiveStreamChatEvent-class.html | 2 +- .../LiveStreamChatEvent.html | 2 +- .../LiveStreamChatEvent/eventName.html | 2 +- .../LiveStreamChatEvent/liveStream.html | 2 +- .../LiveStreamChatEvent/message.html | 2 +- .../LiveStreamChatEventName.html | 2 +- .../LiveStreamChatEventName.html | 2 +- .../values-constant.html | 2 +- .../fw_flutter_sdk/LiveStreamEvent-class.html | 2 +- .../LiveStreamEvent/LiveStreamEvent.html | 2 +- .../LiveStreamEvent/eventName.html | 2 +- docs/fw_flutter_sdk/LiveStreamEvent/info.html | 2 +- .../LiveStreamEventDetails-class.html | 2 +- .../LiveStreamEventDetails.html | 2 +- .../LiveStreamEventDetails/id.html | 2 +- docs/fw_flutter_sdk/LiveStreamEventName.html | 2 +- .../LiveStreamEventName.html | 2 +- .../LiveStreamEventName/values-constant.html | 2 +- .../LiveStreamMessageDetails-class.html | 2 +- .../LiveStreamMessageDetails.html | 2 +- .../LiveStreamMessageDetails/messageId.html | 2 +- .../LiveStreamMessageDetails/text.html | 2 +- .../LiveStreamMessageDetails/username.html | 2 +- .../OnLiveStreamChatEventCallback.html | 2 +- .../OnLiveStreamEventCallback.html | 2 +- .../OpenVideoPlayerConfiguration-class.html | 2 +- .../OpenVideoPlayerConfiguration.html | 2 +- ...Configuration.withPlayerConfiguration.html | 2 +- .../deepCopy.html | 2 +- .../enablePictureInPicture.html | 2 +- .../hashCode.html | 2 +- .../operator_equals.html | 2 +- docs/fw_flutter_sdk/PlayerHandler-class.html | 2 +- .../PlayerHandler/PlayerHandler.html | 2 +- docs/fw_flutter_sdk/PlayerHandler/pause.html | 2 +- docs/fw_flutter_sdk/PlayerHandler/resume.html | 2 +- docs/fw_flutter_sdk/Product-class.html | 2 +- docs/fw_flutter_sdk/Product/Product.html | 2 +- docs/fw_flutter_sdk/Product/description.html | 2 +- docs/fw_flutter_sdk/Product/isAvailable.html | 2 +- docs/fw_flutter_sdk/Product/name.html | 2 +- docs/fw_flutter_sdk/Product/productId.html | 2 +- docs/fw_flutter_sdk/Product/units.html | 2 +- .../ProductCardCTAButtonStyle-class.html | 2 +- .../ProductCardCTAButtonStyle.html | 2 +- .../ProductCardCTAButtonStyle/deepCopy.html | 2 +- .../ProductCardCTAButtonStyle/fontSize.html | 2 +- .../iOSFontInfo.html | 2 +- .../ProductCardCTAButtonStyle/textColor.html | 2 +- .../ProductCardCTAButtonText.html | 2 +- .../ProductCardCTAButtonText.html | 2 +- .../values-constant.html | 2 +- .../ProductCardConfiguration-class.html | 2 +- .../ProductCardConfiguration.html | 2 +- .../backgroundColor.html | 2 +- .../cornerRadius.html | 2 +- .../ctaButtonStyle.html | 2 +- .../ctaButtonText.html | 2 +- .../ProductCardConfiguration/deepCopy.html | 2 +- .../ProductCardConfiguration/height.html | 2 +- .../iconConfiguration.html | 2 +- .../isCtaButtonHidden.html | 2 +- .../ProductCardConfiguration/nameLabel.html | 2 +- .../priceConfiguration.html | 2 +- .../ProductCardConfiguration/theme.html | 2 +- .../ProductCardConfiguration/width.html | 2 +- .../ProductCardIconConfiguration-class.html | 2 +- .../ProductCardIconConfiguration.html | 2 +- .../cornerRadius.html | 2 +- .../deepCopy.html | 2 +- .../ProductCardLabelConfiguration-class.html | 2 +- .../ProductCardLabelConfiguration.html | 2 +- .../deepCopy.html | 2 +- .../fontSize.html | 2 +- .../iOSFontInfo.html | 2 +- .../numberOfLines.html | 2 +- .../textColor.html | 2 +- .../ProductCardPriceConfiguration-class.html | 2 +- .../ProductCardPriceConfiguration.html | 2 +- .../ProductCardPriceConfiguration/axis.html | 2 +- .../deepCopy.html | 2 +- .../isHidden.html | 2 +- .../isPriceFirst.html | 2 +- .../originalPriceLabel.html | 2 +- .../priceLabel.html | 2 +- .../ProductCardPriceLabelAxis.html | 2 +- .../ProductCardPriceLabelAxis.html | 2 +- .../values-constant.html | 2 +- docs/fw_flutter_sdk/ProductCardTheme.html | 2 +- .../ProductCardTheme/ProductCardTheme.html | 2 +- .../ProductCardTheme/values-constant.html | 2 +- .../ProductInfoViewConfiguration-class.html | 2 +- .../ProductInfoViewConfiguration.html | 2 +- .../ctaButton.html | 2 +- .../deepCopy.html | 2 +- .../linkButton.html | 2 +- .../productCard.html | 2 +- docs/fw_flutter_sdk/ProductPrice-class.html | 2 +- .../ProductPrice/ProductPrice.html | 2 +- docs/fw_flutter_sdk/ProductPrice/amount.html | 2 +- .../ProductPrice/currencyCode.html | 2 +- docs/fw_flutter_sdk/ProductUnit-class.html | 2 +- .../ProductUnit/ProductUnit.html | 2 +- docs/fw_flutter_sdk/ProductUnit/imageUrl.html | 2 +- .../ProductUnit/isAvailable.html | 2 +- docs/fw_flutter_sdk/ProductUnit/name.html | 2 +- docs/fw_flutter_sdk/ProductUnit/options.html | 2 +- docs/fw_flutter_sdk/ProductUnit/price.html | 2 +- docs/fw_flutter_sdk/ProductUnit/unitId.html | 2 +- docs/fw_flutter_sdk/ProductUnit/url.html | 2 +- .../ProductUnitOption-class.html | 2 +- .../ProductUnitOption/ProductUnitOption.html | 2 +- .../ProductUnitOption/name.html | 2 +- .../ProductUnitOption/value.html | 2 +- .../ReplayBadgeConfiguration-class.html | 2 +- .../ReplayBadgeConfiguration.html | 2 +- .../ReplayBadgeConfiguration/deepCopy.html | 2 +- .../ReplayBadgeConfiguration/hashCode.html | 2 +- .../ReplayBadgeConfiguration/isHidden.html | 2 +- .../operator_equals.html | 2 +- docs/fw_flutter_sdk/SDKInitCallback.html | 2 +- docs/fw_flutter_sdk/SDKInitEvent-class.html | 2 +- .../SDKInitEvent/SDKInitEvent.html | 2 +- docs/fw_flutter_sdk/SDKInitEvent/error.html | 2 +- .../ShoppingCTAButtonConfiguration-class.html | 2 +- .../ShoppingCTAButtonConfiguration.html | 2 +- .../backgroundColor.html | 2 +- .../deepCopy.html | 2 +- .../fontSize.html | 2 +- .../iOSFontInfo.html | 2 +- .../ShoppingCTAButtonConfiguration/text.html | 2 +- .../textColor.html | 2 +- .../fw_flutter_sdk/ShoppingCTAButtonText.html | 2 +- .../ShoppingCTAButtonText.html | 2 +- .../values-constant.html | 2 +- docs/fw_flutter_sdk/ShoppingCTACallback.html | 2 +- .../ShoppingCTAEvent-class.html | 2 +- .../ShoppingCTAEvent/ShoppingCTAEvent.html | 2 +- .../ShoppingCTAEvent/ctaHandler.html | 2 +- .../ShoppingCTAEvent/productId.html | 2 +- .../ShoppingCTAEvent/unitId.html | 2 +- docs/fw_flutter_sdk/ShoppingCTAEvent/url.html | 2 +- .../ShoppingCTAEvent/video.html | 2 +- .../ShoppingCTAHandler-class.html | 2 +- .../ShoppingCTAHandler.html | 2 +- .../ShoppingCTAHandler/complete.html | 2 +- .../ShoppingCTAHandler/showLoader.html | 2 +- docs/fw_flutter_sdk/ShoppingCTARes.html | 2 +- .../ShoppingCTARes/ShoppingCTARes.html | 2 +- .../ShoppingCTARes/values-constant.html | 2 +- .../ShoppingCTAResult-class.html | 2 +- .../ShoppingCTAResult/ShoppingCTAResult.html | 2 +- .../fw_flutter_sdk/ShoppingCTAResult/res.html | 2 +- .../ShoppingCTAResult/tips.html | 2 +- docs/fw_flutter_sdk/StoryBlock-class.html | 2 +- .../fw_flutter_sdk/StoryBlock/StoryBlock.html | 2 +- .../StoryBlock/adConfiguration.html | 2 +- docs/fw_flutter_sdk/StoryBlock/channel.html | 2 +- docs/fw_flutter_sdk/StoryBlock/contentId.html | 2 +- .../StoryBlock/cornerRadius.html | 2 +- .../StoryBlock/createState.html | 2 +- .../StoryBlock/dynamicContentParameters.html | 2 +- .../StoryBlock/enablePictureInPicture.html | 2 +- .../StoryBlock/hashtagFilterExpression.html | 2 +- docs/fw_flutter_sdk/StoryBlock/height.html | 2 +- .../StoryBlock/onStoryBlockCreated.html | 2 +- .../onStoryBlockDidStartPictureInPicture.html | 2 +- .../onStoryBlockDidStopPictureInPicture.html | 2 +- .../StoryBlock/onStoryBlockEmpty.html | 2 +- .../StoryBlock/onStoryBlockGetFeedId.html | 2 +- .../StoryBlock/onStoryBlockLoadFinished.html | 2 +- docs/fw_flutter_sdk/StoryBlock/playlist.html | 2 +- .../fw_flutter_sdk/StoryBlock/productIds.html | 2 +- docs/fw_flutter_sdk/StoryBlock/source.html | 2 +- .../StoryBlock/storyBlockConfiguration.html | 2 +- .../StoryBlock/wantKeepAlive.html | 2 +- docs/fw_flutter_sdk/StoryBlock/width.html | 2 +- .../StoryBlockConfiguration-class.html | 2 +- .../StoryBlockConfiguration.html | 2 +- .../buttonConfiguration.html | 2 +- .../countdownTimerConfiguration.html | 2 +- .../ctaButtonStyle.html | 2 +- .../StoryBlockConfiguration/ctaDelay.html | 2 +- .../ctaHighlightDelay.html | 2 +- .../StoryBlockConfiguration/ctaWidth.html | 2 +- .../StoryBlockConfiguration/deepCopy.html | 2 +- .../StoryBlockConfiguration/hashCode.html | 2 +- .../operator_equals.html | 2 +- .../StoryBlockConfiguration/playerStyle.html | 2 +- .../replayBadgeConfiguration.html | 2 +- .../StoryBlockConfiguration/shareBaseURL.html | 2 +- .../StoryBlockConfiguration/showBranding.html | 2 +- .../showMuteButton.html | 2 +- .../showPlaybackButton.html | 2 +- .../showShareButton.html | 2 +- .../showVideoDetailTitle.html | 2 +- .../videoCompleteAction.html | 2 +- .../videoPlayerLogoConfiguration.html | 2 +- .../StoryBlockController-class.html | 2 +- .../StoryBlockController.html | 2 +- .../StoryBlockController/handler.html | 2 +- .../StoryBlockController/openFullscreen.html | 2 +- .../StoryBlockController/pause.html | 2 +- .../StoryBlockController/play.html | 2 +- .../StoryBlockCreatedCallback.html | 2 +- .../StoryBlockDidStartPictureInPicture.html | 2 +- .../StoryBlockDidStopPictureInPicture.html | 2 +- .../StoryBlockEmptyCallback.html | 2 +- .../StoryBlockGetFeedIdCallback.html | 2 +- .../StoryBlockLoadFinishedCallback.html | 2 +- docs/fw_flutter_sdk/StoryBlockSource.html | 2 +- .../StoryBlockSource/StoryBlockSource.html | 2 +- .../StoryBlockSource/values-constant.html | 2 +- .../TrackPurchaseParameters-class.html | 2 +- .../TrackPurchaseParameters.html | 2 +- .../additionalInfo.html | 2 +- .../TrackPurchaseParameters/countryCode.html | 2 +- .../TrackPurchaseParameters/currencyCode.html | 2 +- .../TrackPurchaseParameters/orderId.html | 2 +- .../TrackPurchaseParameters/value.html | 2 +- .../UpdateProductDetailsCallback.html | 2 +- .../UpdateProductDetailsEvent-class.html | 2 +- .../UpdateProductDetailsEvent.html | 2 +- .../UpdateProductDetailsEvent/productIds.html | 2 +- .../UpdateProductDetailsEvent/video.html | 2 +- docs/fw_flutter_sdk/VastAttribute-class.html | 2 +- .../VastAttribute/VastAttribute.html | 2 +- .../VastAttribute/deepCopy.html | 2 +- docs/fw_flutter_sdk/VastAttribute/name.html | 2 +- docs/fw_flutter_sdk/VastAttribute/value.html | 2 +- docs/fw_flutter_sdk/VideoFeed-class.html | 2 +- docs/fw_flutter_sdk/VideoFeed/VideoFeed.html | 2 +- .../VideoFeed/adConfiguration.html | 2 +- docs/fw_flutter_sdk/VideoFeed/channel.html | 2 +- docs/fw_flutter_sdk/VideoFeed/contentId.html | 2 +- .../fw_flutter_sdk/VideoFeed/createState.html | 2 +- .../VideoFeed/dynamicContentParameters.html | 2 +- .../VideoFeed/enablePictureInPicture.html | 2 +- .../VideoFeed/hashtagFilterExpression.html | 2 +- docs/fw_flutter_sdk/VideoFeed/height.html | 2 +- docs/fw_flutter_sdk/VideoFeed/mode.html | 2 +- .../VideoFeed/onVideoFeedCreated.html | 2 +- .../onVideoFeedDidStartPictureInPicture.html | 2 +- .../onVideoFeedDidStopPictureInPicture.html | 2 +- .../VideoFeed/onVideoFeedEmpty.html | 2 +- .../VideoFeed/onVideoFeedGetFeedId.html | 2 +- .../VideoFeed/onVideoFeedLoadFinished.html | 2 +- docs/fw_flutter_sdk/VideoFeed/playlist.html | 2 +- .../VideoFeed/playlistGroup.html | 2 +- docs/fw_flutter_sdk/VideoFeed/productIds.html | 2 +- docs/fw_flutter_sdk/VideoFeed/source.html | 2 +- .../VideoFeed/videoFeedConfiguration.html | 2 +- .../VideoFeed/videoPlayerConfiguration.html | 2 +- .../VideoFeed/wantKeepAlive.html | 2 +- docs/fw_flutter_sdk/VideoFeed/width.html | 2 +- .../VideoFeedClickCallback.html | 2 +- .../VideoFeedClickEvent-class.html | 2 +- .../VideoFeedClickEvent.html | 2 +- .../VideoFeedClickEvent/info.html | 2 +- .../VideoFeedConfiguration-class.html | 2 +- .../VideoFeedConfiguration.html | 2 +- .../VideoFeedConfiguration/aspectRatio.html | 2 +- .../backgroundColor.html | 2 +- .../contentPadding.html | 2 +- .../VideoFeedConfiguration/cornerRadius.html | 2 +- .../VideoFeedConfiguration/deepCopy.html | 2 +- .../enableAutoplay.html | 2 +- .../VideoFeedConfiguration/gridColumns.html | 2 +- .../VideoFeedConfiguration/hashCode.html | 2 +- .../VideoFeedConfiguration/itemSpacing.html | 2 +- .../operator_equals.html | 2 +- .../VideoFeedConfiguration/playIcon.html | 2 +- .../VideoFeedConfiguration/replayBadge.html | 2 +- .../VideoFeedConfiguration/showAdBadge.html | 2 +- .../VideoFeedConfiguration/title.html | 2 +- .../VideoFeedConfiguration/titlePadding.html | 2 +- .../VideoFeedConfiguration/titlePosition.html | 2 +- .../VideoFeedController-class.html | 2 +- .../VideoFeedController.html | 2 +- .../VideoFeedController/handler.html | 2 +- .../VideoFeedController/refresh.html | 2 +- .../VideoFeedCreatedCallback.html | 2 +- ...oFeedDidStartPictureInPictureCallback.html | 2 +- ...eoFeedDidStopPictureInPictureCallback.html | 2 +- .../VideoFeedEmptyCallback.html | 2 +- .../VideoFeedGetFeedIdCallback.html | 2 +- .../VideoFeedLoadFinishedCallback.html | 2 +- docs/fw_flutter_sdk/VideoFeedMode.html | 2 +- .../VideoFeedMode/VideoFeedMode.html | 2 +- .../VideoFeedMode/values-constant.html | 2 +- .../VideoFeedPadding-class.html | 2 +- .../VideoFeedPadding/VideoFeedPadding.html | 2 +- .../VideoFeedPadding/bottom.html | 2 +- .../VideoFeedPadding/deepCopy.html | 2 +- .../VideoFeedPadding/hashCode.html | 2 +- .../fw_flutter_sdk/VideoFeedPadding/left.html | 2 +- .../VideoFeedPadding/operator_equals.html | 2 +- .../VideoFeedPadding/right.html | 2 +- docs/fw_flutter_sdk/VideoFeedPadding/top.html | 2 +- .../VideoFeedPlayIconConfiguration-class.html | 2 +- .../VideoFeedPlayIconConfiguration.html | 2 +- .../deepCopy.html | 2 +- .../hashCode.html | 2 +- .../hidden.html | 2 +- .../iconWidth.html | 2 +- .../operator_equals.html | 2 +- docs/fw_flutter_sdk/VideoFeedSource.html | 2 +- .../VideoFeedSource/VideoFeedSource.html | 2 +- .../VideoFeedSource/values-constant.html | 2 +- .../VideoFeedTitleConfiguration-class.html | 2 +- .../VideoFeedTitleConfiguration.html | 2 +- .../androidFontInfo.html | 2 +- .../VideoFeedTitleConfiguration/deepCopy.html | 2 +- .../VideoFeedTitleConfiguration/fontSize.html | 2 +- .../gradientDrawable.html | 2 +- .../VideoFeedTitleConfiguration/hashCode.html | 2 +- .../VideoFeedTitleConfiguration/hidden.html | 2 +- .../iOSFontInfo.html | 2 +- .../numberOfLines.html | 2 +- .../operator_equals.html | 2 +- .../textColor.html | 2 +- .../VideoFeedTitlePosition.html | 2 +- .../VideoFeedTitlePosition.html | 2 +- .../values-constant.html | 2 +- docs/fw_flutter_sdk/VideoFeedUtil-class.html | 2 +- .../VideoFeedUtil/VideoFeedUtil.html | 2 +- .../calculateGridFeedHeight.html | 2 +- docs/fw_flutter_sdk/VideoLaunchBehavior.html | 2 +- .../VideoLaunchBehavior.html | 2 +- .../VideoLaunchBehavior/values-constant.html | 2 +- .../fw_flutter_sdk/VideoPlaybackCallback.html | 2 +- .../VideoPlaybackDetails-class.html | 2 +- .../VideoPlaybackDetails.html | 2 +- .../VideoPlaybackDetails/badge.html | 2 +- .../VideoPlaybackDetails/caption.html | 2 +- .../VideoPlaybackDetails/ctaActionType.html | 2 +- .../VideoPlaybackDetails/ctaActionURL.html | 2 +- .../VideoPlaybackDetails/duration.html | 2 +- .../VideoPlaybackDetails/feedId.html | 2 +- .../VideoPlaybackDetails/hasCTA.html | 2 +- .../VideoPlaybackDetails/playerSize.html | 2 +- .../VideoPlaybackDetails/progress.html | 2 +- .../VideoPlaybackDetails/videoId.html | 2 +- .../VideoPlaybackEvent-class.html | 2 +- .../VideoPlaybackEvent.html | 2 +- .../VideoPlaybackEvent/eventName.html | 2 +- .../VideoPlaybackEvent/info.html | 2 +- .../VideoPlaybackEventName.html | 2 +- .../VideoPlaybackEventName.html | 2 +- .../VideoPlaybackEventName/rawName.html | 2 +- .../values-constant.html | 2 +- .../VideoPlayerButtonConfiguration-class.html | 2 +- .../VideoPlayerButtonConfiguration.html | 2 +- .../closeButton.html | 2 +- .../deepCopy.html | 2 +- .../hashCode.html | 2 +- .../muteButton.html | 2 +- .../operator_equals.html | 2 +- .../pauseButton.html | 2 +- .../playButton.html | 2 +- .../unmuteButton.html | 2 +- .../videoDetailButton.html | 2 +- .../VideoPlayerCTADelay-class.html | 2 +- .../VideoPlayerCTADelay.html | 2 +- .../VideoPlayerCTADelay/deepCopy.html | 2 +- .../VideoPlayerCTADelay/hashCode.html | 2 +- .../VideoPlayerCTADelay/operator_equals.html | 2 +- .../VideoPlayerCTADelay/type.html | 2 +- .../VideoPlayerCTADelay/value.html | 2 +- .../VideoPlayerCTADelayType.html | 2 +- .../VideoPlayerCTADelayType.html | 2 +- .../values-constant.html | 2 +- .../VideoPlayerCTAStyle-class.html | 2 +- .../VideoPlayerCTAStyle.html | 2 +- .../VideoPlayerCTAStyle/backgroundColor.html | 2 +- .../VideoPlayerCTAStyle/deepCopy.html | 2 +- .../VideoPlayerCTAStyle/fontSize.html | 2 +- .../VideoPlayerCTAStyle/hashCode.html | 2 +- .../VideoPlayerCTAStyle/iOSFontInfo.html | 2 +- .../VideoPlayerCTAStyle/operator_equals.html | 2 +- .../VideoPlayerCTAStyle/textColor.html | 2 +- docs/fw_flutter_sdk/VideoPlayerCTAWidth.html | 2 +- .../VideoPlayerCTAWidth.html | 2 +- .../VideoPlayerCTAWidth/values-constant.html | 2 +- .../VideoPlayerCompleteAction.html | 2 +- .../VideoPlayerCompleteAction.html | 2 +- .../values-constant.html | 2 +- .../VideoPlayerConfiguration-class.html | 2 +- .../VideoPlayerConfiguration.html | 2 +- .../buttonConfiguration.html | 2 +- .../countdownTimerConfiguration.html | 2 +- .../ctaButtonStyle.html | 2 +- .../VideoPlayerConfiguration/ctaDelay.html | 2 +- .../ctaHighlightDelay.html | 2 +- .../VideoPlayerConfiguration/ctaWidth.html | 2 +- .../VideoPlayerConfiguration/deepCopy.html | 2 +- .../VideoPlayerConfiguration/hashCode.html | 2 +- .../operator_equals.html | 2 +- .../VideoPlayerConfiguration/playerStyle.html | 2 +- .../replayBadgeConfiguration.html | 2 +- .../shareBaseURL.html | 2 +- .../showBranding.html | 2 +- .../showMuteButton.html | 2 +- .../showPlaybackButton.html | 2 +- .../showShareButton.html | 2 +- .../showVideoDetailTitle.html | 2 +- .../videoCompleteAction.html | 2 +- .../videoPlayerLogoConfiguration.html | 2 +- .../VideoPlayerLogoConfiguration-class.html | 2 +- .../VideoPlayerLogoConfiguration.html | 2 +- .../deepCopy.html | 2 +- .../encodedId.html | 2 +- .../hashCode.html | 2 +- .../operator_equals.html | 2 +- .../VideoPlayerLogoConfiguration/option.html | 2 +- .../fw_flutter_sdk/VideoPlayerLogoOption.html | 2 +- .../VideoPlayerLogoOption.html | 2 +- .../values-constant.html | 2 +- .../fw_flutter_sdk/VideoPlayerSize-class.html | 2 +- .../VideoPlayerSize/VideoPlayerSize.html | 2 +- .../VideoPlayerSize/height.html | 2 +- .../fw_flutter_sdk/VideoPlayerSize/width.html | 2 +- docs/fw_flutter_sdk/VideoPlayerStyle.html | 2 +- .../VideoPlayerStyle/VideoPlayerStyle.html | 2 +- .../VideoPlayerStyle/values-constant.html | 2 +- docs/fw_flutter_sdk/VideoShopping-class.html | 2 +- .../VideoShopping.getInstance.html | 2 +- .../VideoShopping/cartIconVisible.html | 2 +- .../VideoShopping/onCustomClickCartIcon.html | 2 +- .../onCustomClickLinkButton.html | 2 +- .../VideoShopping/onCustomTapProductCard.html | 2 +- .../VideoShopping/onShoppingCTA.html | 2 +- .../VideoShopping/onUpdateProductDetails.html | 2 +- .../productInfoViewConfiguration.html | 2 +- .../VideoShopping/setCartItemCount.html | 2 +- .../fw_flutter_sdk-library.html | 2 +- docs/index.html | 2 +- docs/search.html | 2 +- 593 files changed, 623 insertions(+), 600 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index edec2c5c2..eb861095e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # CHANGELOG +## [2.6.3] + +### Fixed + +- [Android] `stopFloatingPlayer` doesn't work when the video pauses + +### Changed + +- [Android] Upgrade Firework Android SDK to V6.9.3 + ## [2.6.2] ### Changed diff --git a/FireworkFlutterSDKSample/lib/my_app.dart b/FireworkFlutterSDKSample/lib/my_app.dart index 09b4d06b0..da1972ae4 100644 --- a/FireworkFlutterSDKSample/lib/my_app.dart +++ b/FireworkFlutterSDKSample/lib/my_app.dart @@ -93,11 +93,17 @@ class _MyAppState extends State { }; FireworkSDK.getInstance().shopping.onShoppingCTA = - HostAppService.getInstance().onAddToCart; + HostAppService.getInstance().onShopNow; FireworkSDK.getInstance().shopping.onUpdateProductDetails = HostAppService.getInstance().onUpdateProductDetails; FireworkSDK.getInstance().shopping.onCustomClickCartIcon = HostAppService.getInstance().onCustomClickCartIcon; + FireworkSDK.getInstance().shopping.productInfoViewConfiguration = + ProductInfoViewConfiguration( + ctaButton: ShoppingCTAButtonConfiguration( + text: ShoppingCTAButtonText.shopNow, + ), + ); FireworkSDK.getInstance().liveStream.onLiveStreamEvent = (event) { if (event != null) { diff --git a/FireworkFlutterSDKSample/lib/screens/home/home_screen.dart b/FireworkFlutterSDKSample/lib/screens/home/home_screen.dart index a27ed5a64..d32625099 100644 --- a/FireworkFlutterSDKSample/lib/screens/home/home_screen.dart +++ b/FireworkFlutterSDKSample/lib/screens/home/home_screen.dart @@ -360,6 +360,8 @@ class _HomeScreenState extends State { List widgetList = []; for (var e in _defaultHomeStoryBlockPlaylistInfoArray) { + FWExampleLoggerUtil.log( + "_buildMultiFeeds channelId: ${e.channelId} playlistId: ${e.playlistId}"); widgetList.addAll([ const SizedBox( height: 20, @@ -374,6 +376,10 @@ class _HomeScreenState extends State { channel: e.channelId, playlist: e.playlistId, enablePictureInPicture: _enablePip, + onStoryBlockEmpty: (error) { + FWExampleLoggerUtil.log( + "onStoryBlockEmpty error ${error?.displayString()}"); + }, ), ), const SizedBox( diff --git a/FireworkFlutterSDKSample/lib/screens/more/more_screen.dart b/FireworkFlutterSDKSample/lib/screens/more/more_screen.dart index ae8b30ebb..0b8e087f1 100644 --- a/FireworkFlutterSDKSample/lib/screens/more/more_screen.dart +++ b/FireworkFlutterSDKSample/lib/screens/more/more_screen.dart @@ -7,7 +7,7 @@ import 'package:fw_flutter_sdk_example/utils/host_app_service.dart'; import '../../generated/l10n.dart'; import '../../widgets/fw_app_bar.dart'; -const fwNativeVersionOfAndroid = '6.9.2'; +const fwNativeVersionOfAndroid = '6.9.3'; class MoreScreen extends StatefulWidget { const MoreScreen({ diff --git a/FireworkFlutterSDKSample/lib/utils/host_app_service.dart b/FireworkFlutterSDKSample/lib/utils/host_app_service.dart index 9244a0841..ca9556f60 100644 --- a/FireworkFlutterSDKSample/lib/utils/host_app_service.dart +++ b/FireworkFlutterSDKSample/lib/utils/host_app_service.dart @@ -32,7 +32,7 @@ class HostAppService { return null; } - await closePlayerOrStartFloatingPlayer(); + await startFloatingPlayer(); globalNavigatorKey.currentState?.pushNamed('/link_content', arguments: { "url": event.url, @@ -134,7 +134,7 @@ class HostAppService { FWExampleLoggerUtil.log( "onCustomClickCartIcon feedId: ${event?.video.feedId}"); - await closePlayerOrStartFloatingPlayer(); + await startFloatingPlayer(); final showCart = await shouldShowCart(); if (showCart) { globalNavigatorKey.currentState?.pushNamed('/cart'); @@ -201,14 +201,14 @@ class HostAppService { Future onCustomClickLinkButton( CustomClickLinkButtonEvent? event) async { - await closePlayerOrStartFloatingPlayer(); + await startFloatingPlayer(); globalNavigatorKey.currentState?.pushNamed('/link_content', arguments: { "url": event?.url ?? '', }); } Future onCustomTapProductCard(CustomTapProductCardEvent? event) async { - await closePlayerOrStartFloatingPlayer(); + await startFloatingPlayer(); FWExampleLoggerUtil.log( "onCustomTapProductCard event?.url ${event?.url}", ); @@ -220,7 +220,7 @@ class HostAppService { void onCustomCTAClick(CustomCTAClickEvent? event) { FWExampleLoggerUtil.log("onCustomCTAClick feedId ${event?.video.feedId}"); - closePlayerOrStartFloatingPlayer().then((_) { + startFloatingPlayer().then((_) { if (enablePausePlayer) { event?.playerHandler?.pause(); } @@ -230,12 +230,13 @@ class HostAppService { }); } - Future closePlayerOrStartFloatingPlayer() async { + Future startFloatingPlayer() async { final result = await FireworkSDK.getInstance().navigator.startFloatingPlayer(); - if (!result) { - await FireworkSDK.getInstance().navigator.popNativeContainer(); - } + FWExampleLoggerUtil.log("startFloatingPlayer result: $result"); + // if (!result) { + // await FireworkSDK.getInstance().navigator.popNativeContainer(); + // } } Future removeAllCartItems() async { diff --git a/FireworkFlutterSDKSample/pubspec.lock b/FireworkFlutterSDKSample/pubspec.lock index 11fafdaa6..1c0d66e5d 100644 --- a/FireworkFlutterSDKSample/pubspec.lock +++ b/FireworkFlutterSDKSample/pubspec.lock @@ -308,10 +308,10 @@ packages: dependency: "direct main" description: name: fw_flutter_sdk - sha256: "59d822b46bdc4c2e6a2a3f6a842da942fa50322de2c2b5746f82fb1c6116da0e" + sha256: "9c444b4efc92e4b8171f52481fe8633fefea15d2cff619dc02abc2af19cc3baf" url: "https://pub.dev" source: hosted - version: "2.6.2" + version: "2.6.3" glob: dependency: transitive description: diff --git a/FireworkFlutterSDKSample/pubspec.yaml b/FireworkFlutterSDKSample/pubspec.yaml index 5f6f183c8..4b77a205e 100644 --- a/FireworkFlutterSDKSample/pubspec.yaml +++ b/FireworkFlutterSDKSample/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: sdk: flutter - fw_flutter_sdk: 2.6.2 + fw_flutter_sdk: 2.6.3 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.5 diff --git a/docs/__404error.html b/docs/__404error.html index 1b5b5c2f2..b94558c27 100644 --- a/docs/__404error.html +++ b/docs/__404error.html @@ -93,7 +93,7 @@
fw_flutter_sdk