Skip to content

Commit

Permalink
Version 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Aug 5, 2024
1 parent 9bcad14 commit 4c3e60c
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 41 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 = '9.3.1'
s.version = '10.0.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-prebuilt-static/releases/download/9.3.1/BrazeKit.zip',
:sha256 => '6a533cda3a5014e566084fe1132f0bebc9fb2de1f53878b2f75a587454c438ca'
:http => 'https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeKit.zip',
:sha256 => 'cdad502d3f863520013051443537ff36d2ac1c2eb47729a8b80a644b3be46751'
}

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

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-prebuilt-static/releases/download/9.3.1/BrazeKitCompat.zip',
:sha256 => 'f842bef78f6eb171325a0603ab2b1f3798d92629a354895ddc9bfe8fdc5596cb'
:http => 'https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeKitCompat.zip',
:sha256 => '4becef90b01eeaaa8da86867c3fef459500d52af37ee78f7eee0426689c9c41a'
}

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

s.vendored_framework = 'BrazeKitCompat.xcframework'

s.dependency 'BrazeKit', '9.3.1'
s.dependency 'BrazeLocation', '9.3.1'
s.dependency 'BrazeKit', '10.0.0'
s.dependency 'BrazeLocation', '10.0.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 = '9.3.1'
s.version = '10.0.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-prebuilt-static/releases/download/9.3.1/BrazeLocation.zip',
:sha256 => 'e8d76ece3a2320b433f979c6185da2f5bf3071e774d1630220af3f35f2310446'
:http => 'https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeLocation.zip',
:sha256 => '7ec0c25fe87b9f26eb61a57563b3a13dc4083b23931981c0aadf6b56bb0639cd'
}

s.swift_version = '5.0'
Expand All @@ -21,7 +21,7 @@ Pod::Spec.new do |s|
s.vendored_framework = 'BrazeLocation.xcframework'
s.resource_bundles = { 'BrazeLocation' => ['Sources/BrazeLocationResources/Resources/**/*'] }

s.dependency 'BrazeKit', '9.3.1'
s.dependency 'BrazeKit', '10.0.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 = '9.3.1'
s.version = '10.0.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-prebuilt-static/releases/download/9.3.1/BrazeNotificationService.zip',
:sha256 => '77c3d9a707a5668b84b125112fee8cc7391bf72c065cca5e510c046d5ae39e11'
:http => 'https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeNotificationService.zip',
:sha256 => '2fb95af7f2718da1d11ad6adb4794860f4dd835acc33d2ae125e7aca0b61b889'
}

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 = '9.3.1'
s.version = '10.0.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-prebuilt-static/releases/download/9.3.1/BrazePushStory.zip',
:sha256 => 'd2767fda142955e55375ce8ee4e0913a3a9614888519db0379e4ea19403a1575'
:http => 'https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazePushStory.zip',
:sha256 => '069a974da391eed85cf85bb8973e21da58b14b02a3b8415ce3c1f008363979c4'
}

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

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-prebuilt-static/releases/download/9.3.1/BrazeUI.zip',
:sha256 => '5d38425d1c1d5dc8c4229f4327966d55eafa7b2d934d8afd64673d1a14a6ea82'
:http => 'https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeUI.zip',
:sha256 => '7d5295c2fd9004b997e07222022ce5dfabc0179ca8a5505701b2ee972d4b35a3'
}

s.swift_version = '5.0'
Expand All @@ -20,7 +20,7 @@ Pod::Spec.new do |s|
s.vendored_framework = 'BrazeUI.xcframework'
s.resource_bundles = { 'BrazeUI' => ['Sources/BrazeUIResources/Resources/**/*'] }

s.dependency 'BrazeKit', '9.3.1'
s.dependency 'BrazeKit', '10.0.0'

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

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-prebuilt-static/releases/download/9.3.1/BrazeUICompat.zip',
:sha256 => 'b7348562c477acf370ae3cf7e7d7679179da938bf486da52062e2fa99d910c96'
:http => 'https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeUICompat.zip',
:sha256 => 'a2f6c06de3ea77ea5e4443ccb8801279f2f7501f607b7a1a22086c5985ef3a5c'
}

s.swift_version = '5.0'
Expand All @@ -19,7 +19,7 @@ Pod::Spec.new do |s|
s.vendored_framework = 'BrazeUICompat.xcframework'
s.resource_bundles = { 'BrazeUICompat' => 'Sources/BrazeUICompatResources/*/Resources/**/*.*' }

s.dependency 'BrazeKitCompat', '9.3.1'
s.dependency 'BrazeKitCompat', '10.0.0'
s.dependency 'SDWebImage', '>= 5.19.0', '< 6'

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

##### Breaking
- The following changes have been made when subscribing to Push events with [`Braze.Notifications.subscribeToUpdates(payloadTypes:_:)`][push-subscribe]:
- The `update` closure will now be triggered by both "Push Opened" and "Push Received" events by default. Previously, it would only be triggered by "Push Opened" events.
- To continue subscribing only to "Push Opened" events, pass in `[.opened]` for the parameter `payloadTypes`. Alternatively, implement your `update` closure to check that the `type` from the `Braze.Notifications.Payload` is `.opened`.
- When receiving a push notification with `content-available: true`, the [`Braze.Notifications.Payload.type`][payload-type] will now be `.received` instead of `.opened`.
- Marks the following deprecated APIs as unavailable:
- `Braze.Configuration.Api.Flavor`
- `Braze.Configuration.Api.flavor`
- `Braze.Configuration.Api.SdkMetadata`
- `Braze.Configuration.Api.addSdkMetadata(_:)`
- `Braze.ContentCard.ClickAction.uri(_:useWebview:)`
- `Braze.ContentCard.ClickAction.uri`
- `Braze.InAppMessage.ClickAction.uri(_:useWebview:)`
- `Braze.InAppMessage.ClickAction.uri`
- `Braze.InAppMessage.ModalImage.imageUri`
- `Braze.InAppMessage.Full.imageUri`
- `Braze.InAppMessage.FullImage.imageUri`
- `Braze.InAppMessage.Themes.default`
- `Braze.deviceId(queue:completion:)`
- `Braze._objc_deviceId(completion:)`
- `Braze.deviceId()`
- `Braze.User.setCustomAttributeArray(key:array:fileID:line:)`
- `Braze.User.addToCustomAttributeArray(key:value:fileID:line:)`
- `Braze.User.removeFromCustomAttributeArray(key:value:fileID:line:)`
- `Braze.User._objc_addToCustomAttributeArray(key:value:)`
- `Braze.User._objc_removeFromCustomAttributeArray(key:value:)`
- `gifViewProvider`
- `GifViewProvider.default`
- Removes the deprecated APIs:
- `Braze.Configuration.DeviceProperty.pushDisplayOptions`
- `Braze.InAppMessageRaw.Context.Error.extraProcessClickAction`
- Removes the deprecated `BrazeLocation` class in favor of `BrazeLocationProvider`.

##### Fixed
- Fixes a crash when handling a scheme-based deep link containing a registered `applink` domain (e.g. `applinks:example.com` with a deep link to `app://example.com/path`).

##### Added
- Adds support to subscribe to "Push Received" events via [`Braze.Notifications.subscribeToUpdates(payloadTypes:_:)`][push-subscribe].
- The following notifications will trigger this subscription:
- Notifications received in the foreground
- Notifications with the field `content-available: true` received in the foreground or background
- The following notifications will _not_ trigger this subscription:
- Notifications received while terminated
- Notifications received in the background without the field `content-available: true`
- The new parameter `payloadTypes` will allow you to subscribe to "Push Opened" events, "Push Received" events, or both. If the parameter is omitted, it will subscribe to both by default.
- If you are using manual push integration, you will need to first implement `UNUserNotificationCenter.userNotificationCenter(_:willPresent:withCompletionHandler:)`, and make sure to call `Braze.Notifications.handleForegroundNotification(notification:)` within your implementation. Then, use `subscribeToUpdates` as noted above. See [our guide on push notification integration](https://www.braze.com/docs/developer_guide/platform_integration_guides/swift/push_notifications/integration/#step-3-enable-push-handling) for more info.
- Adds the public property [`Braze.Notifications.Payload.type`][payload-type].
- Adds the [`Braze.WebViewBridge.ScriptMessageHandler.init(braze:)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/webviewbridge/scriptmessagehandler/init(braze:)) initializer enabling a simpler way to initialize the `ScriptMessageHandler` for adding it to user-provided web views.

[push-subscribe]: https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/notifications-swift.class/subscribetoupdates(payloadtypes:_:)
[payload-type]: https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/notifications-swift.class/payload/type

## 9.3.1

##### Fixed
Expand Down
28 changes: 14 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "BrazeKit",
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/9.3.1/BrazeKit.zip",
checksum: "6a533cda3a5014e566084fe1132f0bebc9fb2de1f53878b2f75a587454c438ca"
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeKit.zip",
checksum: "cdad502d3f863520013051443537ff36d2ac1c2eb47729a8b80a644b3be46751"
),
.target(
name: "BrazeKitResources",
Expand All @@ -60,8 +60,8 @@ let package = Package(
),
.binaryTarget(
name: "BrazeUI",
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/9.3.1/BrazeUI.zip",
checksum: "5d38425d1c1d5dc8c4229f4327966d55eafa7b2d934d8afd64673d1a14a6ea82"
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeUI.zip",
checksum: "7d5295c2fd9004b997e07222022ce5dfabc0179ca8a5505701b2ee972d4b35a3"
),
.target(
name: "BrazeUIResources",
Expand All @@ -71,8 +71,8 @@ let package = Package(
),
.binaryTarget(
name: "BrazeLocation",
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/9.3.1/BrazeLocation.zip",
checksum: "e8d76ece3a2320b433f979c6185da2f5bf3071e774d1630220af3f35f2310446"
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeLocation.zip",
checksum: "7ec0c25fe87b9f26eb61a57563b3a13dc4083b23931981c0aadf6b56bb0639cd"
),
.target(
name: "BrazeLocationResources",
Expand All @@ -82,13 +82,13 @@ let package = Package(
),
.binaryTarget(
name: "BrazeNotificationService",
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/9.3.1/BrazeNotificationService.zip",
checksum: "77c3d9a707a5668b84b125112fee8cc7391bf72c065cca5e510c046d5ae39e11"
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeNotificationService.zip",
checksum: "2fb95af7f2718da1d11ad6adb4794860f4dd835acc33d2ae125e7aca0b61b889"
),
.binaryTarget(
name: "BrazePushStory",
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/9.3.1/BrazePushStory.zip",
checksum: "d2767fda142955e55375ce8ee4e0913a3a9614888519db0379e4ea19403a1575"
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazePushStory.zip",
checksum: "069a974da391eed85cf85bb8973e21da58b14b02a3b8415ce3c1f008363979c4"
),
.target(
name: "BrazePushStoryResources",
Expand All @@ -98,13 +98,13 @@ let package = Package(
),
.binaryTarget(
name: "BrazeKitCompat",
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/9.3.1/BrazeKitCompat.zip",
checksum: "f842bef78f6eb171325a0603ab2b1f3798d92629a354895ddc9bfe8fdc5596cb"
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeKitCompat.zip",
checksum: "4becef90b01eeaaa8da86867c3fef459500d52af37ee78f7eee0426689c9c41a"
),
.binaryTarget(
name: "BrazeUICompat",
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/9.3.1/BrazeUICompat.zip",
checksum: "b7348562c477acf370ae3cf7e7d7679179da938bf486da52062e2fa99d910c96"
url: "https://github.com/braze-inc/braze-swift-sdk-prebuilt-static/releases/download/10.0.0/BrazeUICompat.zip",
checksum: "a2f6c06de3ea77ea5e4443ccb8801279f2f7501f607b7a1a22086c5985ef3a5c"
),
.target(
name: "BrazeUICompatResources",
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/9.3.1/blue" alt="Version: 9.3.1">
<img src="https://badgen.net/badge/version/10.0.0/blue" alt="Version: 10.0.0">
</a>
<a href="#">
<img src="https://badgen.net/badge/platforms/iOS%20%7C%20visionOS%20%7C%20tvOS%20%7C%20Mac%20Catalyst/orange"
Expand Down

0 comments on commit 4c3e60c

Please sign in to comment.