Skip to content

Commit

Permalink
Version 8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lowip committed Mar 7, 2024
1 parent b688028 commit 4183918
Show file tree
Hide file tree
Showing 34 changed files with 225 additions and 217 deletions.
Binary file modified .github/assets/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/assets/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 = '8.0.1'
s.version = '8.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/8.0.1/BrazeKit.zip',
:sha256 => '8ba73f7f193f4ea52d8673535b12c224cfb16bfcc1683e52a0c267addce2beb7'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/8.1.0/BrazeKit.zip',
:sha256 => 'd33cb483bb4ed954baaf61621efcb3aab48e41af21d11a4c04ac41575c22c567'
}

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

s.swift_version = '5.0'
s.ios.deployment_target = '12.0'
Expand All @@ -18,8 +18,8 @@ Pod::Spec.new do |s|
s.public_header_files = 'Sources/BrazeKitCompat/include/*.h'
s.static_framework = true

s.dependency 'BrazeKit', '8.0.1'
s.dependency 'BrazeLocation', '8.0.1'
s.dependency 'BrazeKit', '8.1.0'
s.dependency 'BrazeLocation', '8.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 = '8.0.1'
s.version = '8.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/8.0.1/BrazeLocation.zip',
:sha256 => '22753521e3cebbd1ec0b0986339b10b03f00a3258ecf4c209066de575b98d630'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/8.1.0/BrazeLocation.zip',
:sha256 => '63b18e6ff1c579b0d8687181c6b6b82f2861cd4824a7f1d7df8e632a1e0fbb42'
}

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', '8.0.1'
s.dependency 'BrazeKit', '8.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 = '8.0.1'
s.version = '8.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/8.0.1/BrazeNotificationService.zip',
:sha256 => '5c17a259982cea0aaa06ee59ef64f52f0fb0325bdd973d7ccfe954babd9179e2'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/8.1.0/BrazeNotificationService.zip',
:sha256 => 'fac7499f1baa938e4ea19fe18f5b13d3ab92369294bdf96c4738115bbcc09341'
}

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 = '8.0.1'
s.version = '8.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/8.0.1/BrazePushStory.zip',
:sha256 => 'ce056068074e29b218eda70c1dbf60d942905e48183384c530b408b9dbe2aee2'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/8.1.0/BrazePushStory.zip',
:sha256 => '19332ac17475d6cd7394f48e3f8c6a4d3ad111c0f49c333e704dc22ab1b4f8d3'
}

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

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

s.dependency 'BrazeKit', '8.0.1'
s.dependency 'BrazeKit', '8.1.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,14 +1,14 @@
Pod::Spec.new do |s|
s.name = 'BrazeUICompat'
s.version = '8.0.1'
s.version = '8.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 => '8.0.1' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '8.1.0' }

s.swift_version = '5.0'
s.ios.deployment_target = '12.0'
Expand All @@ -18,8 +18,8 @@ Pod::Spec.new do |s|
s.resource_bundles = { 'BrazeUICompat' => 'Sources/BrazeUICompat/*/Resources/**/*.*' }
s.static_framework = true

s.dependency 'BrazeKitCompat', '8.0.1'
s.dependency 'SDWebImage', '>= 5.18.7', '< 6'
s.dependency 'BrazeKitCompat', '8.1.0'
s.dependency 'SDWebImage', '>= 5.19.0', '< 6'

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

##### Added
- Adds the `is_test_send` boolean value in the in-app message JSON representation.
- Adds the [`Braze.subscribeToSessionUpdates(_:)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/subscribetosessionupdates(_:)) method and [`Braze.sessionUpdatesStream`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/sessionupdatesstream) property to subscribe to the session updates events generated by the SDK.
- Adds public APIs to access `BrazeKit`, `BrazeLocation` and `BrazeUI` resources bundles:
- `Braze.Resources.bundle`
- `BrazeLocationResources.bundle`
- `BrazeUIResources.bundle`
- `BrazeKit.overrideResourceBundle` and `BrazeUI.overrideResourceBundle` have been deprecated in favor of `BrazeKit.overrideResourcesBundle` and `BrazeUI.overrideResourcesBundle`.
- Re-enables visionOS sample apps requiring SDWebImage in `Examples-CocoaPods.xcworkspace`. SDWebImage for visionOS is now supported when using CocoaPods.
- Updated SDWebImage dependency in `BrazeUICompat` to `5.19.0+`.

##### Fixed
- Fixes multiple issues on visionOS:
- Sessions now properly start as expected.
- The click behavior _Open Web URL Inside App_ now properly opens the URL in a modal web view. Previously, the URL would always be opened using the default web browser.
- [Braze.Notifications.Payload.targetScene](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/notifications-swift.class/payload/targetscene) is now defined.
- [Braze.URLContext.targetScene](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/urlcontext/targetscene) is now properly set by the SDK for in-app messages click actions.
- [Braze.WebViewBridge.ScriptMessageHandler.init(logClick:logError:showNewsFeed:closeMessage:braze:)](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/webviewbridge/scriptmessagehandler/init(logclick:logerror:shownewsfeed:closemessage:braze:)-p2ki) is now defined.
- [BrazeDelegate.braze(_:willPresentModalWithContext:)](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/brazedelegate/braze(_:willpresentmodalwithcontext:)-1fj41) now have a default implementation.
- Handling network requests and persisting data properly extend the lifetime of the application for processing.

## 8.0.1

##### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Examples/ObjC/Examples-SwiftPM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,7 @@
repositoryURL = "https://github.com/SDWebImage/SDWebImage";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.18.7;
minimumVersion = 5.19.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
68 changes: 32 additions & 36 deletions Examples/ObjC/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ target 'InAppMessageUI-iOS' do
pod 'SDWebImage', :modular_headers => true
end

# Disabled until SDWebImage supports visionOS via CocoaPods
# target 'InAppMessageUI-visionOS' do
# platform :visionos, '1.0'
# pod 'BrazeKit'
# pod 'BrazeUI'
# # SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# # See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
# pod 'SDWebImage', :modular_headers => true
# end
target 'InAppMessageUI-visionOS' do
platform :visionos, '1.0'
pod 'BrazeKit'
pod 'BrazeUI'
# SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
pod 'SDWebImage', :modular_headers => true
end

target 'InAppMessageUI-Customization-iOS' do
platform :ios, '11.0'
Expand All @@ -45,15 +44,14 @@ target 'InAppMessageUI-Customization-iOS' do
pod 'SDWebImage', :modular_headers => true
end

# Disabled until SDWebImage supports visionOS via CocoaPods
# target 'InAppMessageUI-Customization-visionOS' do
# platform :visionos, '1.0'
# pod 'BrazeKit'
# pod 'BrazeUI'
# # SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# # See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
# pod 'SDWebImage', :modular_headers => true
# end
target 'InAppMessageUI-Customization-visionOS' do
platform :visionos, '1.0'
pod 'BrazeKit'
pod 'BrazeUI'
# SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
pod 'SDWebImage', :modular_headers => true
end

target 'InAppMessages-Custom-UI-iOS' do
platform :ios, '11.0'
Expand All @@ -79,15 +77,14 @@ target 'ContentCardUI-iOS' do
pod 'SDWebImage', :modular_headers => true
end

# Disabled until SDWebImage supports visionOS via CocoaPods
# target 'ContentCardUI-visionOS' do
# platform :visionos, '1.0'
# pod 'BrazeKit'
# pod 'BrazeUI'
# # SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# # See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
# pod 'SDWebImage', :modular_headers => true
# end
target 'ContentCardUI-visionOS' do
platform :visionos, '1.0'
pod 'BrazeKit'
pod 'BrazeUI'
# SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
pod 'SDWebImage', :modular_headers => true
end

target 'ContentCardUI-Customization-iOS' do
platform :ios, '11.0'
Expand All @@ -98,15 +95,14 @@ target 'ContentCardUI-Customization-iOS' do
pod 'SDWebImage', :modular_headers => true
end

# Disabled until SDWebImage supports visionOS via CocoaPods
# target 'ContentCardUI-Customization-visionOS' do
# platform :visionos, '1.0'
# pod 'BrazeKit'
# pod 'BrazeUI'
# # SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# # See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
# pod 'SDWebImage', :modular_headers => true
# end
target 'ContentCardUI-Customization-visionOS' do
platform :visionos, '1.0'
pod 'BrazeKit'
pod 'BrazeUI'
# SDWebImage is optional. BrazeUI requires a third party library to display GIF images.
# See https://braze-inc.github.io/braze-swift-sdk/documentation/braze/gif-support-integrations
pod 'SDWebImage', :modular_headers => true
end

target 'ContentCards-Custom-UI-iOS' do
platform :ios, '11.0'
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/8.0.1/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/8.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/Examples-SwiftPM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@
repositoryURL = "https://github.com/SDWebImage/SDWebImage";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.18.7;
minimumVersion = 5.19.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Loading

0 comments on commit 4183918

Please sign in to comment.