Skip to content

Commit

Permalink
Version 5.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Feb 1, 2023
1 parent a1ca5c8 commit ea978da
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 53 deletions.
6 changes: 3 additions & 3 deletions BrazeKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'BrazeKit'
s.version = '5.9.0'
s.version = '5.9.1'
s.summary = 'Braze Main SDK library providing support for analytics and push notifications.'

s.homepage = 'https://braze.com'
Expand All @@ -9,8 +9,8 @@ Pod::Spec.new do |s|
s.authors = 'Braze, Inc.'

s.source = {
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazeKit.zip',
:sha256 => '246bca86980a39d886ef2e7a7011a9629ce9bb293c16bd34a10861d92e8473f3'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazeKit.zip',
:sha256 => '4a1e89795467329b8e30f069d9df34acd4a95d179527c41dffe2f1d336533728'
}

s.swift_version = '5.0'
Expand Down
8 changes: 4 additions & 4 deletions BrazeKitCompat.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = 'BrazeKitCompat'
s.version = '5.9.0'
s.version = '5.9.1'
s.summary = 'Compatibility library for users migrating from AppboyKit.'

s.homepage = 'https://braze.com'
s.documentation_url = 'https://braze-inc.github.io/braze-swift-sdk/documentation/brazekitcompat/'
s.license = { :type => 'Commercial' }
s.authors = 'Braze, Inc.'

s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.9.0' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.9.1' }

s.swift_version = '5.0'
s.ios.deployment_target = '11.0'
Expand All @@ -18,8 +18,8 @@ Pod::Spec.new do |s|
s.source_files = 'Sources/BrazeKitCompat/**/*.{h,m}'
s.public_header_files = 'Sources/BrazeKitCompat/include/*.h'

s.dependency 'BrazeKit', '5.9.0'
s.dependency 'BrazeLocation', '5.9.0'
s.dependency 'BrazeKit', '5.9.1'
s.dependency 'BrazeLocation', '5.9.1'

s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
end
8 changes: 4 additions & 4 deletions BrazeLocation.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'BrazeLocation'
s.version = '5.9.0'
s.version = '5.9.1'
s.summary = 'Braze location library providing support for location analytics and geofence monitoring.'

s.homepage = 'https://braze.com'
Expand All @@ -9,8 +9,8 @@ Pod::Spec.new do |s|
s.authors = 'Braze, Inc.'

s.source = {
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazeLocation.zip',
:sha256 => '405b9055a8ccd2a543ae4b3c56baa128dab2493f6b44bba5c1da20556a325b43'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazeLocation.zip',
:sha256 => 'f2b52b2db62cc3d2675a3b831692cba482d20d3b7d3002a335b15266e7ae1cc9'
}

s.swift_version = '5.0'
Expand All @@ -21,7 +21,7 @@ Pod::Spec.new do |s|

# Depends on BrazeKit because BrazeKit includes the internal _BrazeLocationClient symbols required
# for linking against BrazeLocation.
s.dependency 'BrazeKit', '5.9.0'
s.dependency 'BrazeKit', '5.9.1'

s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
end
6 changes: 3 additions & 3 deletions BrazeNotificationService.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'BrazeNotificationService'
s.version = '5.9.0'
s.version = '5.9.1'
s.summary = 'Braze notification service extension library providing support for Rich Push notifications.'

s.homepage = 'https://braze.com'
Expand All @@ -9,8 +9,8 @@ Pod::Spec.new do |s|
s.authors = 'Braze, Inc.'

s.source = {
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazeNotificationService.zip',
:sha256 => '9fb5350bbee5afa556ea31b2256c591c40dfd10b00616976fd4be129fb56c2ed'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazeNotificationService.zip',
:sha256 => '5227b1321b27505a106809e71f60390671f35d292fb1accf29c2f1869c7b28af'
}

s.swift_version = '5.0'
Expand Down
6 changes: 3 additions & 3 deletions BrazePushStory.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'BrazePushStory'
s.version = '5.9.0'
s.version = '5.9.1'
s.summary = 'Braze notification content extension library providing support for Push Stories.'

s.homepage = 'https://braze.com'
Expand All @@ -9,8 +9,8 @@ Pod::Spec.new do |s|
s.authors = 'Braze, Inc.'

s.source = {
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazePushStory.zip',
:sha256 => 'e4cbe7ce47bd43a7ebdad8d3dd94288d7deb73e9fd4a55c35c49f3cd13ca32c6'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazePushStory.zip',
:sha256 => 'af2a93ca9a00be0d3840f91290bb7cdf1fb75798d7b7017b881b2f7606a6824d'
}

s.swift_version = '5.0'
Expand Down
6 changes: 3 additions & 3 deletions BrazeUI.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = 'BrazeUI'
s.version = '5.9.0'
s.version = '5.9.1'
s.summary = 'Braze-provided user interface library for In-App Messages and Content Cards.'

s.homepage = 'https://braze.com'
s.documentation_url = 'https://braze-inc.github.io/braze-swift-sdk/documentation/brazeui/'
s.license = { :type => 'Commercial' }
s.authors = 'Braze, Inc.'

s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.9.0' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.9.1' }

s.swift_version = '5.0'
s.ios.deployment_target = '11.0'
Expand All @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.source_files = 'Sources/BrazeUI/**/*.swift'
s.resource_bundles = { 'BrazeUI' => ['Sources/BrazeUI/Resources/**/*'] }

s.dependency 'BrazeKit', '5.9.0'
s.dependency 'BrazeKit', '5.9.1'

s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
end
6 changes: 3 additions & 3 deletions BrazeUICompat.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = 'BrazeUICompat'
s.version = '5.9.0'
s.version = '5.9.1'
s.summary = 'Compatibility UI library for users migrating from AppboyUI.'

s.homepage = 'https://braze.com'
s.documentation_url = 'https://braze-inc.github.io/braze-swift-sdk/documentation/brazeui/'
s.license = { :type => 'Commercial' }
s.authors = 'Braze, Inc.'

s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.9.0' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.9.1' }

s.swift_version = '5.0'
s.ios.deployment_target = '11.0'
Expand All @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
s.public_header_files = 'Sources/BrazeUICompat/ABK*/**/*.h'
s.resource_bundles = { 'BrazeUICompat' => 'Sources/BrazeUICompat/*/Resources/**/*.*' }

s.dependency 'BrazeKitCompat', '5.9.0'
s.dependency 'BrazeKitCompat', '5.9.1'
s.dependency 'SDWebImage', '>= 5.8.2', '< 6'

s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
Expand Down
20 changes: 9 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 5.9.1

##### Fixed
- Fixes an issue preventing local expired content cards from being removed.
- Fixes a behavior that could lead to background tasks extending beyond the expected time limit with inconsistent network connectivity.

##### Added
- Adds `logImpression(using:)` and `logClick(buttonId:using:)` to news feed cards.

## 5.9.0

##### Breaking
Expand Down Expand Up @@ -63,17 +72,6 @@ To help migrate your app from the Appboy-iOS-SDK to our Swift SDK, this release

## 5.6.4

##### End of early access phase / Migration Guide / Compatibility Libraries

This release marks the end of the early access phase for the Braze Swift SDK. `Appboy-iOS-SDK` is now deprecated and support will cease on <INSERT DATE HERE>.

To help with your migration process, this release includes:
- [Appboy-iOS-SDK: Migration guide]:
- Follow step-by-step instructions to migrate each feature to the new APIs.
- Includes instructions for minimal migration scenario via our compatibility libraries.
- Compatibility libraries `BrazeKitCompat` and `BrazeUICompat`:
- Provides all the old APIs from `Appboy-iOS-SDK` to easily start migrating to the Swift SDK.

##### Fixed
- Fixes an issue preventing the execution of `BrazeDelegate` methods when setting the delegate using Objective-C.
- Fixes an issue where triggering an in-app message twice with the same event did not place the message on the in-app message stack under certain conditions.
Expand Down
2 changes: 1 addition & 1 deletion Examples/ObjC/manual-integration-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ ! -f "manual-integration-setup.sh" ]; then
fi

# Constants
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/braze-swift-sdk-prebuilt.zip"

echo "" "Cleaning up"
rm -rf braze-swift-sdk-prebuilt
Expand Down
2 changes: 1 addition & 1 deletion Examples/Swift/manual-integration-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ ! -f "manual-integration-setup.sh" ]; then
fi

# Constants
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/braze-swift-sdk-prebuilt.zip"

echo "" "Cleaning up"
rm -rf braze-swift-sdk-prebuilt
Expand Down
16 changes: 8 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "BrazeKit",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazeKit.zip",
checksum: "246bca86980a39d886ef2e7a7011a9629ce9bb293c16bd34a10861d92e8473f3"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazeKit.zip",
checksum: "4a1e89795467329b8e30f069d9df34acd4a95d179527c41dffe2f1d336533728"
),
.target(
name: "BrazeKitResources",
Expand All @@ -65,18 +65,18 @@ let package = Package(
),
.binaryTarget(
name: "BrazeLocation",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazeLocation.zip",
checksum: "405b9055a8ccd2a543ae4b3c56baa128dab2493f6b44bba5c1da20556a325b43"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazeLocation.zip",
checksum: "f2b52b2db62cc3d2675a3b831692cba482d20d3b7d3002a335b15266e7ae1cc9"
),
.binaryTarget(
name: "BrazeNotificationService",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazeNotificationService.zip",
checksum: "9fb5350bbee5afa556ea31b2256c591c40dfd10b00616976fd4be129fb56c2ed"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazeNotificationService.zip",
checksum: "5227b1321b27505a106809e71f60390671f35d292fb1accf29c2f1869c7b28af"
),
.binaryTarget(
name: "BrazePushStory",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.0/BrazePushStory.zip",
checksum: "e4cbe7ce47bd43a7ebdad8d3dd94288d7deb73e9fd4a55c35c49f3cd13ca32c6"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazePushStory.zip",
checksum: "af2a93ca9a00be0d3840f91290bb7cdf1fb75798d7b7017b881b2f7606a6824d"
),
.target(
name: "BrazeKitCompat",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<p align="center">
<a href="https://github.com/braze-inc/braze-swift-sdk/releases">
<img src="https://badgen.net/badge/version/5.9.0/blue" alt="Version: 5.9.0">
<img src="https://badgen.net/badge/version/5.9.1/blue" alt="Version: 5.9.1">
</a>
<a href="#">
<img src="https://badgen.net/badge/platforms/iOS%20%7C%20tvOS%20%7C%20Mac%20Catalyst/orange"
Expand Down
18 changes: 10 additions & 8 deletions Sources/BrazeUI/InAppMessageUI/Views/InAppMessageUIModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ extension BrazeInAppMessageUI {
public struct Attributes {

/// The minimum spacing around the content view.
public var margin = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
public var margin: UIEdgeInsets = .init(top: 20, left: 20, bottom: 20, right: 20)

/// The spacing around the content's view content.
public var padding = UIEdgeInsets(top: 40, left: 25, bottom: 30, right: 25)
public var padding: UIEdgeInsets = .init(top: 40, left: 25, bottom: 30, right: 25)

/// The spacing between the header and message
public var labelsSpacing = 10.0
Expand All @@ -36,10 +36,10 @@ extension BrazeInAppMessageUI {
public var spacing = 20.0

/// The font for the header.
public var headerFont = UIFont.preferredFont(textStyle: .title3, weight: .bold)
public var headerFont: UIFont = .preferredFont(textStyle: .title3, weight: .bold)

/// The font for the message.
public var messageFont = UIFont.preferredFont(forTextStyle: .subheadline)
public var messageFont: UIFont = .preferredFont(forTextStyle: .subheadline)

/// The content view corner radius.
public var cornerRadius = 8.0
Expand Down Expand Up @@ -73,7 +73,7 @@ extension BrazeInAppMessageUI {
public var dismissOnBackgroundTap = false

/// The buttons attributes.
public var buttonsAttributes = ButtonView.Attributes.defaults
public var buttonsAttributes: BrazeInAppMessageUI.ButtonView.Attributes = .defaults

/// Closure allowing further customization, executed when the view is about to be presented.
public var onPresent: ((ModalView) -> Void)?
Expand Down Expand Up @@ -242,10 +242,12 @@ extension BrazeInAppMessageUI {
return container
}()

public var buttons: [ButtonView] {
public var buttons: [BrazeInAppMessageUI.ButtonView] {
buttonsContainer?.stack.arrangedSubviews.compactMap {
($0 as? ButtonView)
?? $0.bfsSubviews.lazy.compactMap { $0 as? ButtonView }.first { _ in true }
($0 as? BrazeInAppMessageUI.ButtonView)
?? $0.bfsSubviews.lazy.compactMap { $0 as? BrazeInAppMessageUI.ButtonView }.first { _ in
true
}
} ?? []
}

Expand Down

0 comments on commit ea978da

Please sign in to comment.