Skip to content

Commit

Permalink
Version 5.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cbowns committed Feb 13, 2023
1 parent ea978da commit e5116ab
Show file tree
Hide file tree
Showing 20 changed files with 179 additions and 187 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.1'
s.version = '5.10.0'
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.1/BrazeKit.zip',
:sha256 => '4a1e89795467329b8e30f069d9df34acd4a95d179527c41dffe2f1d336533728'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazeKit.zip',
:sha256 => 'ab2660fa83c6aba270d205dae8a298be642059cd64e1a0bbfa8a1a06fe02107d'
}

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.1'
s.version = '5.10.0'
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.1' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.10.0' }

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.1'
s.dependency 'BrazeLocation', '5.9.1'
s.dependency 'BrazeKit', '5.10.0'
s.dependency 'BrazeLocation', '5.10.0'

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.1'
s.version = '5.10.0'
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.1/BrazeLocation.zip',
:sha256 => 'f2b52b2db62cc3d2675a3b831692cba482d20d3b7d3002a335b15266e7ae1cc9'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazeLocation.zip',
:sha256 => '7e0ff737566c98b9293ea3f9dec6d3589c70822f6caf98c21f361585cc83a202'
}

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.1'
s.dependency 'BrazeKit', '5.10.0'

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.1'
s.version = '5.10.0'
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.1/BrazeNotificationService.zip',
:sha256 => '5227b1321b27505a106809e71f60390671f35d292fb1accf29c2f1869c7b28af'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazeNotificationService.zip',
:sha256 => 'a068c73678861acdf6378cad866ab1a53372fbdc3c70d0780d54f96f0baff8f2'
}

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.1'
s.version = '5.10.0'
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.1/BrazePushStory.zip',
:sha256 => 'af2a93ca9a00be0d3840f91290bb7cdf1fb75798d7b7017b881b2f7606a6824d'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazePushStory.zip',
:sha256 => '81e13d3247a5ad6af899a5e77336ebeee759735c188caad2f52c40e33f4ddc54'
}

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.1'
s.version = '5.10.0'
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.1' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.10.0' }

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.1'
s.dependency 'BrazeKit', '5.10.0'

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.1'
s.version = '5.10.0'
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.1' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '5.10.0' }

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.1'
s.dependency 'BrazeKitCompat', '5.10.0'
s.dependency 'SDWebImage', '>= 5.8.2', '< 6'

s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 5.10.0

##### Fixed
- Fixes an issue where test content cards were removed before their expiration date.
- Fixes an issue in `BrazeUICompat` where the status bar appearance wasn't restored to its original state after dismissing a full in-app message.
- Fixes an issue when decoding notification payloads where some valid boolean values weren't correctly parsed.

##### Changed
- In-app modal and full-screen messages are now rendered with `UITextView`, which better supports large amounts of text and extended UTF code points.

## 5.9.1

##### Fixed
Expand Down
26 changes: 0 additions & 26 deletions Examples/ObjC/Sources/ContentCards/Info.plist

This file was deleted.

26 changes: 0 additions & 26 deletions Examples/ObjC/Sources/InAppMessages/Info.plist

This file was deleted.

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.1/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/braze-swift-sdk-prebuilt.zip"

echo "" "Cleaning up"
rm -rf braze-swift-sdk-prebuilt
Expand Down
26 changes: 0 additions & 26 deletions Examples/Swift/Sources/ContentCards/Info.plist

This file was deleted.

26 changes: 0 additions & 26 deletions Examples/Swift/Sources/InAppMessages/Info.plist

This file was deleted.

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.1/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/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.1/BrazeKit.zip",
checksum: "4a1e89795467329b8e30f069d9df34acd4a95d179527c41dffe2f1d336533728"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazeKit.zip",
checksum: "ab2660fa83c6aba270d205dae8a298be642059cd64e1a0bbfa8a1a06fe02107d"
),
.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.1/BrazeLocation.zip",
checksum: "f2b52b2db62cc3d2675a3b831692cba482d20d3b7d3002a335b15266e7ae1cc9"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazeLocation.zip",
checksum: "7e0ff737566c98b9293ea3f9dec6d3589c70822f6caf98c21f361585cc83a202"
),
.binaryTarget(
name: "BrazeNotificationService",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazeNotificationService.zip",
checksum: "5227b1321b27505a106809e71f60390671f35d292fb1accf29c2f1869c7b28af"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazeNotificationService.zip",
checksum: "a068c73678861acdf6378cad866ab1a53372fbdc3c70d0780d54f96f0baff8f2"
),
.binaryTarget(
name: "BrazePushStory",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.9.1/BrazePushStory.zip",
checksum: "af2a93ca9a00be0d3840f91290bb7cdf1fb75798d7b7017b881b2f7606a6824d"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.10.0/BrazePushStory.zip",
checksum: "81e13d3247a5ad6af899a5e77336ebeee759735c188caad2f52c40e33f4ddc54"
),
.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.1/blue" alt="Version: 5.9.1">
<img src="https://badgen.net/badge/version/5.10.0/blue" alt="Version: 5.10.0">
</a>
<a href="#">
<img src="https://badgen.net/badge/platforms/iOS%20%7C%20tvOS%20%7C%20Mac%20Catalyst/orange"
Expand Down
7 changes: 7 additions & 0 deletions Sources/BrazeUI/Dependencies/Align.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ extension LayoutAnchors where Base: LayoutItem {
var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }

var topMargin: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .topMargin) }
var bottomMargin: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottomMargin) }
var leftMargin: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leftMargin) }
var rightMargin: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .rightMargin) }
var leadingMargin: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leadingMargin) }
var trailingMargin: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailingMargin) }

var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(base, .centerX) }
var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(base, .centerY) }

Expand Down
7 changes: 5 additions & 2 deletions Sources/BrazeUI/Dependencies/UIKitExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ extension UIResponder {

extension String {

func attributed(_ setup: (NSMutableParagraphStyle) -> Void) -> NSAttributedString {
let attributedText = NSMutableAttributedString(string: self)
func attributed(
with attributes: [NSAttributedString.Key: Any]? = nil,
_ setup: (NSMutableParagraphStyle) -> Void
) -> NSAttributedString {
let attributedText = NSMutableAttributedString(string: self, attributes: attributes)
let style = NSMutableParagraphStyle()
setup(style)
attributedText.addAttribute(
Expand Down
Loading

0 comments on commit e5116ab

Please sign in to comment.