Skip to content

Commit

Permalink
Version 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jerielng committed Nov 14, 2023
1 parent d2b2407 commit a60d19c
Show file tree
Hide file tree
Showing 27 changed files with 117 additions and 141 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 = '7.1.0'
s.version = '7.2.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/7.1.0/BrazeKit.zip',
:sha256 => '195f3f728352a8fb507256042be3cb4efc9bd46afb76d57353e5951ed501d267'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazeKit.zip',
:sha256 => '1d7bdd6dcac57f0fac22b129a480799f6999511c33e538bb96b575fa49dc3b6c'
}

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 = '7.1.0'
s.version = '7.2.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 => '7.1.0' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '7.2.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', '7.1.0'
s.dependency 'BrazeLocation', '7.1.0'
s.dependency 'BrazeKit', '7.2.0'
s.dependency 'BrazeLocation', '7.2.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 = '7.1.0'
s.version = '7.2.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/7.1.0/BrazeLocation.zip',
:sha256 => '9ce1f72d725cb37b4c509fc84766e6eaf07429bce4e7164481833843003c2987'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazeLocation.zip',
:sha256 => 'f8dac18e36924bb898adf086ea466c6c85c11f6493cb91242fb78b027fdba789'
}

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', '7.1.0'
s.dependency 'BrazeKit', '7.2.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 = '7.1.0'
s.version = '7.2.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/7.1.0/BrazeNotificationService.zip',
:sha256 => 'e80f97bb21bc9f661471205c18f8f873f274bc3cad73b2eb44e4f1f66f05dd10'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazeNotificationService.zip',
:sha256 => '1226fb56103146105e3a1c925b80522151641b79dfb01c6f4c61f6b45fdb28b9'
}

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 = '7.1.0'
s.version = '7.2.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/7.1.0/BrazePushStory.zip',
:sha256 => '4ad33d8106c285b3e33c274cfee112542a489abf8284eff330dab12c49766c16'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazePushStory.zip',
:sha256 => '5cf0a64b934b81e664e3ee796ed781d5267863a7e66f8eb448dfbfc9ad34cd72'
}

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

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

#### Added
- Exposes the `BrazePushStory.NotificationViewController.didReceive` methods for custom handling of push story notification events.

#### Fixed
- Resolves an issue for in-app messages with buttons where tapping on the body would incorrectly execute the button's click action.
- Now, when you tap on the body of an in-app message with buttons, no event should occur.
- Resolves a potential deadlock under rare circumstances in BrazeUI's In-App messages presentation.
- Fixes the default implementation for the Objective-C representation of [`BrazeInAppMessageUIDelegate.inAppMessage(_:shouldProcess:url:buttonId:message:view:)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazeui/brazeinappmessageuidelegate/inappmessage(_:shouldprocess:buttonid:message:view:)-7lvld) to return the proper click action URL.
- Resolves an issue where the body of the modal in-app message may be displayed stretched on some device models.
- Resolves an issue where `BrazeInAppMessageUI` could fail to detect the correct application window for presenting its post-click webview.
- `BrazeInAppMessageUI` now prefers using the current key `UIWindow` instead of the first one in the application's window stack.

#### Removed
- `Braze.Configuration.DeviceProperty.pushDisplayOptions` has been deprecated. Providing this value no longer has an effect.

## 7.1.0

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

This file was deleted.

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

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

This file was deleted.

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/7.1.0/braze-swift-sdk-prebuilt.zip"
url="https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.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/7.1.0/BrazeKit.zip",
checksum: "195f3f728352a8fb507256042be3cb4efc9bd46afb76d57353e5951ed501d267"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazeKit.zip",
checksum: "1d7bdd6dcac57f0fac22b129a480799f6999511c33e538bb96b575fa49dc3b6c"
),
.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/7.1.0/BrazeLocation.zip",
checksum: "9ce1f72d725cb37b4c509fc84766e6eaf07429bce4e7164481833843003c2987"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazeLocation.zip",
checksum: "f8dac18e36924bb898adf086ea466c6c85c11f6493cb91242fb78b027fdba789"
),
.binaryTarget(
name: "BrazeNotificationService",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/7.1.0/BrazeNotificationService.zip",
checksum: "e80f97bb21bc9f661471205c18f8f873f274bc3cad73b2eb44e4f1f66f05dd10"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazeNotificationService.zip",
checksum: "1226fb56103146105e3a1c925b80522151641b79dfb01c6f4c61f6b45fdb28b9"
),
.binaryTarget(
name: "BrazePushStory",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/7.1.0/BrazePushStory.zip",
checksum: "4ad33d8106c285b3e33c274cfee112542a489abf8284eff330dab12c49766c16"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/7.2.0/BrazePushStory.zip",
checksum: "5cf0a64b934b81e664e3ee796ed781d5267863a7e66f8eb448dfbfc9ad34cd72"
),
.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/7.1.0/blue" alt="Version: 7.1.0">
<img src="https://badgen.net/badge/version/7.2.0/blue" alt="Version: 7.2.0">
</a>
<a href="#">
<img src="https://badgen.net/badge/platforms/iOS%20%7C%20tvOS%20%7C%20Mac%20Catalyst/orange"
Expand Down
2 changes: 0 additions & 2 deletions Sources/BrazeKitCompat/BrazeDelegateWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
@import Foundation;

@protocol ABKURLDelegate;
@protocol ABKSdkAuthenticationDelegate;
@protocol ABKInAppMessageControllerDelegate;

@interface BrazeDelegateWrapper : NSObject <BrazeDelegate>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@property(strong, nonatomic) id<ABKURLDelegate> urlDelegate;
@property(strong, nonatomic) id<ABKSdkAuthenticationDelegate> sdkAuthDelegate;
@property(weak, nonatomic) id<ABKInAppMessageControllerDelegate> inAppMessageControllerDelegate;
#pragma clang diagnostic pop

Expand Down
12 changes: 0 additions & 12 deletions Sources/BrazeKitCompat/BrazeDelegateWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ - (BOOL)braze:(Braze *)braze shouldOpenURL:(BRZURLContext *)context {
return YES;
}

- (void)braze:(Braze *)braze
sdkAuthenticationFailedWithError:(BRZSDKAuthenticationError *)error {
if ([self.sdkAuthDelegate
respondsToSelector:@selector(handleSdkAuthenticationError:)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
ABKSdkAuthenticationError *authError = [[ABKSdkAuthenticationError alloc]
initWithSDKAuthenticationError:error];
#pragma clang diagnostic pop
[self.sdkAuthDelegate handleSdkAuthenticationError:authError];
}
}

- (void)braze:(Braze *)braze
noMatchingTriggerForEvent:(enum BRZTriggerEvent)event
Expand Down
13 changes: 13 additions & 0 deletions Sources/BrazeKitCompat/BrazeSDKAuthDelegateWrapper.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@import BrazeKit;
@import Foundation;

@protocol ABKSdkAuthenticationDelegate;

@interface BrazeSDKAuthDelegateWrapper : NSObject <BrazeSDKAuthDelegate>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@property(strong, nonatomic) id<ABKSdkAuthenticationDelegate> sdkAuthDelegate;
#pragma clang diagnostic pop

@end
Loading

0 comments on commit a60d19c

Please sign in to comment.