0.5.1 - iOS
December 7th, 2023
ChangeLog
BlazeStoryCtaStyle
BlazeStoryCtaStyleAdded
-
Property:
layoutPositioning- Description: Defines the layout positioning style of the CTA (Call to Action).
- Type:
CTAPositioning - Default Value:
.ctaNextToShare(if not specified)
-
Enum:
CTAPositioning- Description: Enumeration to specify the positioning of the CTA button.
- Values:
ctaNextToShare: Indicates the CTA is positioned next to the Share button.ctaBellowShare: Indicates the CTA is positioned below the Share button.
BlazeMomentsAppearance Gradient Structures - Breaking changes
BlazeMomentsAppearance Gradient Structures - Breaking changesModified
- Properties in BlazeMomentsAppearance
- Change: Updated types of
headerGradientandfooterGradientproperties. - Old Types:
BlazeMomentsGradient - New Types:
headerGradient:BlazeMomentsHeaderGradientfooterGradient:BlazeMomentsFooterGradient
- Change: Updated types of
Removed
- Structure:
BlazeMomentsGradient- Description: This struct represented the gradient configuration for moments view. It is now replaced by two specific structures for header and footer.
Added
-
Structure:
BlazeMomentsHeaderGradient- Description: Represents the gradient configuration for the moments view header.
- Properties:
isVisible: BoolstartColor: UIColorendColor: UIColor
- Initializer: Same as in the old
BlazeMomentsGradientstruct. - Extension Function:
static func headerGradient() -> BlazeMomentsHeaderGradient
-
Structure:
BlazeMomentsFooterGradient- Description: Represents the gradient configuration for the moments view footer.
- Properties:
isVisible: BoolstartColor: UIColorendColor: UIColorendPositioning: EndPositioning
- New Property:
endPositioning- Description: Defines the end positioning of the gradient.
- Type:
EndPositioningenum
- Initializer: Extended to include
endPositioning. - Enum:
EndPositioning- Values:
bottomToContainer: Gradient's bottom starts from the bottom of the container.bottomToPlayer: Gradient's bottom starts from the bottom of the player.
- Values:
BlazeStoryAppearance structure - Breaking changes
BlazeStoryAppearance structure - Breaking changesModified
- Property in BlazeStoryAppearance
- Change: Updated the type of
lastUpdateproperty. - Old Type:
BlazeStoryText - New Type:
BlazeStoryLastUpdateText
- Change: Updated the type of
Added
-
Structure:
BlazeStoryLastUpdateText- Description: Represents the style and appearance of last update text used in a story player.
- Properties:
font: UIFonttextColor: UIColortextCase: BlazeTextCase
- Default Value:
.lowercasefortextCase
-
Enum:
BlazeTextCase- Description: Represents the various text case styles.
- Values:
uppercase: All letters are capitalized.lowercase: All letters are in small form.
BlazeSDKDelegate - Breaking changes
BlazeSDKDelegate - Breaking changesModified
- Change in Method:
onEventTriggered- Old Signature:
func onEventTriggered(eventType: BlazeAnalytics.EventType, eventData: BlazeAnalytics.EventData)- Parameters:
eventType: Type of the event fromBlazeAnalytics.EventType.eventData: Data of the event fromBlazeAnalytics.EventData.
- New Signature:
func onEventTriggered(eventData: BlazeAnalytics)- Parameter:
eventData: Consolidated event data fromBlazeAnalytics.
- Old Signature:
Contextual Notes
- This modification simplifies the event triggering mechanism within the SDK.
- The new method signature consolidates the event type and data into a single
BlazeAnalyticsparameter, streamlining the interface. - This change may affect all implementations of the
BlazeSDKDelegateprotocol, requiring updates to conform to the new method signature.
BlazeAnalytics Struct - Breaking changes
BlazeAnalytics Struct - Breaking changesOverview
- Significant updates have been made to the
BlazeAnalyticsstruct. These changes include modifications to properties, methods, and overall structure.
Key Changes
- Properties: Several properties have been added, removed, or modified to better align with the analytics requirements.
- Structural Changes: Adjustments in the overall structure for more efficient data handling and integration with other components.
Detailed Documentation
For a complete and detailed overview of all the changes, enhancements, and their implications, please refer to the updated documentation:
Important Notes
- Due to the extensive nature of these changes, it is recommended to review the documentation thoroughly to understand the impact on existing implementations.
Renaming of Enums, Structs, and Protocols - Breaking changes
Overview
- As part of the ongoing improvements and standardization in the SDK, several enums, structs, and protocols have been renamed. These changes are intended to bring more clarity and consistency to the SDK's naming conventions.
Renamed Components
Enums
-
Old Name:
CachePolicyLevel- New Name:
BlazeCachePolicyLevel - Impact: Update references to this enum throughout your codebase to use the new name.
- New Name:
-
Old Name:
ProgressType- New Name:
BlazeProgressType - Impact: Update references to this enum throughout your codebase to use the new name.
- New Name:
-
Old Name:
OrderType- New Name:
BlazeOrderType - Impact: Update references to this enum throughout your codebase to use the new name.
- New Name:
Struct
- Old Name:
CTAAction- New Name:
BlazeCTAAction - Impact: Update references to this struct throughout your codebase to use the new name.
- New Name:
Protocol
- Old Name:
WidgetDelegate- New Name:
BlazeWidgetDelegate - Impact: Update references to this protocol throughout your codebase to use the new name.
- New Name:
Important Notes
- These renamings are part of a broader effort to standardize naming across the SDK.
- It's crucial to update your code to reflect these changes to ensure compatibility with the latest version of the SDK.
- No functional changes have been made to these components, only their names have been updated.
