Skip to content

Commit

Permalink
Version 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cbowns committed May 15, 2023
1 parent 7747c5f commit a106bba
Show file tree
Hide file tree
Showing 16 changed files with 58 additions and 36 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 = '6.0.0'
s.version = '6.1.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/6.0.0/BrazeKit.zip',
:sha256 => 'f2dc8f2fda069497aa35a3465bf7f16d9b62b2610e964fe9aac1ff75fce1975c'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazeKit.zip',
:sha256 => '0cea9bc9bfb23abb51e05a6e927d27d4c4a6586bde629a2b1b76334b60e506d5'
}

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 = '6.0.0'
s.version = '6.1.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 => '6.0.0' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.1.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', '6.0.0'
s.dependency 'BrazeLocation', '6.0.0'
s.dependency 'BrazeKit', '6.1.0'
s.dependency 'BrazeLocation', '6.1.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 = '6.0.0'
s.version = '6.1.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/6.0.0/BrazeLocation.zip',
:sha256 => 'be4319fc7c60e3581919d172cb51f42a85cf0d29b51f6c687679d642e1c9e25d'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazeLocation.zip',
:sha256 => '1a4cfdb4b0c043d172ad91de2ffcb24d2cbfbc79155ff4689286f5e31d6c3c81'
}

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', '6.0.0'
s.dependency 'BrazeKit', '6.1.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 = '6.0.0'
s.version = '6.1.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/6.0.0/BrazeNotificationService.zip',
:sha256 => '32aff9e6815c0725fbe8aeff84f2e8b5c82ff39d1bd08aa5ba4bb8a7bf6f18eb'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazeNotificationService.zip',
:sha256 => '01a855943b9366702c7bd5c8d029e2c2689ef60b2db70dc8b234b6166fd21fed'
}

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 = '6.0.0'
s.version = '6.1.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/6.0.0/BrazePushStory.zip',
:sha256 => '06528fdb6c1ad9349195d73e4a90b72d2bc618ffe91039c640b560312cd1234f'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazePushStory.zip',
:sha256 => '1b5be9b4ce7d956b0d4a8ed9bd9feaa755379d05320abbda6b94a744bb5f0f35'
}

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 = '6.0.0'
s.version = '6.1.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 => '6.0.0' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.1.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', '6.0.0'
s.dependency 'BrazeKit', '6.1.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 = '6.0.0'
s.version = '6.1.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 => '6.0.0' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.1.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', '6.0.0'
s.dependency 'BrazeKitCompat', '6.1.0'
s.dependency 'SDWebImage', '>= 5.8.2', '< 6'

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

##### Fixed
- Fixes an issue that led to disproportionately large close buttons on in-app messages when the user has set a large font size in the device settings.
- Fixes an issue that would lock the screen in a specific orientation after the dismissal of an in-app message customized to be presented in that orientation.
- This issue only impacted iOS 16.0+ devices.

##### Added
- Adds new versions of `setCustomAttribute` to the User object to support [nested custom attributes][nca-docs].
- Renames `User.setCustomAttributeArray(key: String, array: [String]?)` to `setCustomAttribute(…)` to align it with other custom attribute setters, and adds "string" to the `addTo` and `removeFrom` attribute array methods to clarify which custom attributes they're used for.

[nca-docs]: https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_attributes/nested_custom_attribute_support

## 6.0.0

##### Breaking
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/6.0.0/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/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/6.0.0/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.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/6.0.0/BrazeKit.zip",
checksum: "f2dc8f2fda069497aa35a3465bf7f16d9b62b2610e964fe9aac1ff75fce1975c"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazeKit.zip",
checksum: "0cea9bc9bfb23abb51e05a6e927d27d4c4a6586bde629a2b1b76334b60e506d5"
),
.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/6.0.0/BrazeLocation.zip",
checksum: "be4319fc7c60e3581919d172cb51f42a85cf0d29b51f6c687679d642e1c9e25d"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazeLocation.zip",
checksum: "1a4cfdb4b0c043d172ad91de2ffcb24d2cbfbc79155ff4689286f5e31d6c3c81"
),
.binaryTarget(
name: "BrazeNotificationService",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.0.0/BrazeNotificationService.zip",
checksum: "32aff9e6815c0725fbe8aeff84f2e8b5c82ff39d1bd08aa5ba4bb8a7bf6f18eb"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazeNotificationService.zip",
checksum: "01a855943b9366702c7bd5c8d029e2c2689ef60b2db70dc8b234b6166fd21fed"
),
.binaryTarget(
name: "BrazePushStory",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.0.0/BrazePushStory.zip",
checksum: "06528fdb6c1ad9349195d73e4a90b72d2bc618ffe91039c640b560312cd1234f"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.1.0/BrazePushStory.zip",
checksum: "1b5be9b4ce7d956b0d4a8ed9bd9feaa755379d05320abbda6b94a744bb5f0f35"
),
.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/6.0.0/blue" alt="Version: 6.0.0">
<img src="https://badgen.net/badge/version/6.1.0/blue" alt="Version: 6.1.0">
</a>
<a href="#">
<img src="https://badgen.net/badge/platforms/iOS%20%7C%20tvOS%20%7C%20Mac%20Catalyst/orange"
Expand Down
4 changes: 4 additions & 0 deletions Sources/BrazeUI/Dependencies/UIKitExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ extension UIFont {
Braze.UIUtils.preferredFont(textStyle: textStyle, weight: weight)
}

static var brazeCloseButtonFont: UIFont {
.systemFont(ofSize: 22)
}

}

extension UIButton {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ extension BrazeInAppMessageUI {
"braze.in-app-message.close-button.title",
for: .inAppMessage
)
button.titleLabel?.font = .preferredFont(forTextStyle: .title2)
button.titleLabel?.font = .brazeCloseButtonFont
button.addAction { [weak self] in self?.dismiss() }
return button
}()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ extension BrazeInAppMessageUI {
"braze.in-app-message.close-button.title",
for: .inAppMessage
)
button.titleLabel?.font = .preferredFont(forTextStyle: .title2)
button.titleLabel?.font = .brazeCloseButtonFont
button.addAction { [weak self] in self?.dismiss() }
return button
}()
Expand Down
5 changes: 5 additions & 0 deletions Sources/BrazeUI/InAppMessageUI/Views/InAppMessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ extension InAppMessageView {
ui.window = nil

Braze.UIUtils.activeTopmostViewController?.setNeedsStatusBarAppearanceUpdate()
if #available(iOS 16.0, *) {
UIView.performWithoutAnimation {
Braze.UIUtils.activeTopmostViewController?.setNeedsUpdateOfSupportedInterfaceOrientations()
}
}

ui.delegate?.inAppMessage(ui, didDismiss: controller.message, view: self)

Expand Down

0 comments on commit a106bba

Please sign in to comment.