Skip to content

Commit

Permalink
Version 11.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jerielng committed Oct 30, 2024
1 parent 66bf1d9 commit 3648146
Show file tree
Hide file tree
Showing 24 changed files with 125 additions and 135 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 = '11.1.1'
s.version = '11.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/11.1.1/BrazeKit.zip',
:sha256 => 'cf78c55e0a265c228af56bc6b4c528c60a78e3d3819e6fffc017703230a02c15'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/11.2.0/BrazeKit.zip',
:sha256 => 'a0158a907dadd39b1fcb7344d9f0531e58ef72433fd7f4c04c7412291d790870'
}

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 = '11.1.1'
s.version = '11.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 => '11.1.1' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '11.2.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', '11.1.1'
s.dependency 'BrazeLocation', '11.1.1'
s.dependency 'BrazeKit', '11.2.0'
s.dependency 'BrazeLocation', '11.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 = '11.1.1'
s.version = '11.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/11.1.1/BrazeLocation.zip',
:sha256 => '62f9d50b4071f0228eb9928b06b0b851be567b68a5071ae98196508cc3469b3a'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/11.2.0/BrazeLocation.zip',
:sha256 => 'c7f7c9dfc721efd2df26e2566e4a1687750b251fea18432d38d51577b8afd76b'
}

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', '11.1.1'
s.dependency 'BrazeKit', '11.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 = '11.1.1'
s.version = '11.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/11.1.1/BrazeNotificationService.zip',
:sha256 => 'fb96adb873bf99ef745350e94a409b81a2699b6530eb9035a3e71b8f5d29efb4'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/11.2.0/BrazeNotificationService.zip',
:sha256 => '3b3c3de36795e43b5e87b4465da929226149ca1885e0a358b753f027af99af22'
}

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 = '11.1.1'
s.version = '11.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/11.1.1/BrazePushStory.zip',
:sha256 => 'be1e9eae09dc71093ceea6fa9fe03367e3e98e16663b6f2aa0b9d3a4fe5ddf82'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/11.2.0/BrazePushStory.zip',
:sha256 => '8a06ac8bff6e8dd9a715a4fe65bb04dce9d44be38ad7cab02c8c2ed34134948e'
}

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 = '11.1.1'
s.version = '11.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 => '11.1.1' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '11.2.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', '11.1.1'
s.dependency 'BrazeKit', '11.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 = '11.1.1'
s.version = '11.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 => '11.1.1' }
s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '11.2.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 = { 'BrazeUICompat' => 'Sources/BrazeUICompat/*/Resources/**/*.*' }
s.static_framework = true

s.dependency 'BrazeKitCompat', '11.1.1'
s.dependency 'BrazeKitCompat', '11.2.0'
s.dependency 'SDWebImage', '>= 5.19.7', '< 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 @@
## 11.2.0

##### Fixed
- Fixes the Objective-C `Braze.delegate` declaration to be `weak` like the Swift variant.

##### Added
- `Braze.prepareForDelayedInitialization` now takes an optional parameter `analyticsBehavior: PushEnqueueBehavior`.
- Braze uses this value to determine whether any Braze push payloads received before initialization should be processed once initialization is complete.
- `PushEnqueueBehavior.queue` will enqueue received push payloads to be processed upon initialization. This option is selected by default.
- `PushEnqueueBehavior.drop` will drop received push payloads, ignoring them.
- Adds configuration properties to customize the `lineSpacing`, `maxLineHeight`, `minLineHeight`, and `lineHeightMultiple` for the header and message texts in full and modal in-app messages.
- Updates `BrazeContentCardUI.ViewController.Attributes.defaults` to be a `var` to allow directly editing the property for convenience.

## 11.1.1

##### Fixed
Expand Down
6 changes: 3 additions & 3 deletions Examples/ObjC/Examples-SwiftPM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@
mainGroup = D8CC2266D736859D7DD9A8FF;
packageReferences = (
9928D5150C45879A982BA1C6 /* XCRemoteSwiftPackageReference "SDWebImage" */,
B0CAEC5E933F542260FE1612 /* XCLocalSwiftPackageReference "/Users/daniel.hok/Desktop/swift-sdk/.build/braze/release/braze-swift-sdk" */,
90D8318C2DB3CED6610DD38C /* XCLocalSwiftPackageReference "/Users/jerielng/swift-sdk/.build/braze/release/braze-swift-sdk" */,
);
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -2123,9 +2123,9 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCLocalSwiftPackageReference section */
B0CAEC5E933F542260FE1612 /* XCLocalSwiftPackageReference "/Users/daniel.hok/Desktop/swift-sdk/.build/braze/release/braze-swift-sdk" */ = {
90D8318C2DB3CED6610DD38C /* XCLocalSwiftPackageReference "/Users/jerielng/swift-sdk/.build/braze/release/braze-swift-sdk" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = "/Users/daniel.hok/Desktop/swift-sdk/.build/braze/release/braze-swift-sdk";
relativePath = "/Users/jerielng/swift-sdk/.build/braze/release/braze-swift-sdk";
};
/* End XCLocalSwiftPackageReference section */

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

echo "" "Cleaning up"
rm -rf braze-swift-sdk-prebuilt
Expand Down
6 changes: 3 additions & 3 deletions Examples/Swift/Examples-SwiftPM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@
mainGroup = D8CC2266D736859D7DD9A8FF;
packageReferences = (
9928D5150C45879A982BA1C6 /* XCRemoteSwiftPackageReference "SDWebImage" */,
B0CAEC5E933F542260FE1612 /* XCLocalSwiftPackageReference "/Users/daniel.hok/Desktop/swift-sdk/.build/braze/release/braze-swift-sdk" */,
90D8318C2DB3CED6610DD38C /* XCLocalSwiftPackageReference "/Users/jerielng/swift-sdk/.build/braze/release/braze-swift-sdk" */,
);
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -2115,9 +2115,9 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCLocalSwiftPackageReference section */
B0CAEC5E933F542260FE1612 /* XCLocalSwiftPackageReference "/Users/daniel.hok/Desktop/swift-sdk/.build/braze/release/braze-swift-sdk" */ = {
90D8318C2DB3CED6610DD38C /* XCLocalSwiftPackageReference "/Users/jerielng/swift-sdk/.build/braze/release/braze-swift-sdk" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = "/Users/daniel.hok/Desktop/swift-sdk/.build/braze/release/braze-swift-sdk";
relativePath = "/Users/jerielng/swift-sdk/.build/braze/release/braze-swift-sdk";
};
/* End XCLocalSwiftPackageReference section */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

// MARK: - Customizations

#warning(
"""
For demonstration purposes, this example application uses an alternate Content Card view controller initializer.
#warning("""
For demonstration purposes, this example application uses an alternate Content Card view controller initializer.

In your implementation, you are expected to use the standard `init(braze:attributes:)` initializer to automatically link the UI to your braze instance.
In your implementation, you are expected to use the standard `init(braze:attributes:)` initializer to automatically link the UI to your braze instance.

See https://braze-inc.github.io/braze-swift-sdk/documentation/brazeui/brazecontentcardui/viewcontroller/init(braze:attributes:)
""")
See https://braze-inc.github.io/braze-swift-sdk/documentation/brazeui/brazecontentcardui/viewcontroller/init(braze:attributes:)
""")
extension AppDelegate {
Expand Down Expand Up @@ -69,7 +68,35 @@ extension AppDelegate {
initialCards: cards,
attributes: attributes
)
viewController.title = "Attributes"
viewController.title = "Modifying Attributes"
navigationController.pushViewController(viewController, animated: true)
}
static func defaultAttributesCustomization() {
// Customize the cell attribute defaults directly to customize the cell
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.cornerRadius = 40
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.classicImageCornerRadius =
10
if #available(iOS 13.0, *) {
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.cornerCurve = .continuous
}
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.titleFont = UIFont(
name: "AvenirNext-Heavy", size: 18)!
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.descriptionFont = UIFont(
name: "BradleyHandITCTT-Bold", size: 16)!
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.domainFont = UIFont(
name: "TimesNewRomanPSMT", size: 12)!
if #available(iOS 13.0, *) {
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.domainColor = .green
} else {
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.domainColor = .gray
}
BrazeContentCardUI.ViewController.Attributes.defaults.cellAttributes.highlightColor =
.systemGreen.withAlphaComponent(0.8)
let viewController = BrazeContentCardUI.ViewController(initialCards: cards)
viewController.title = "Modifying default Attributes"
navigationController.pushViewController(viewController, animated: true)
}
Expand Down
10 changes: 10 additions & 0 deletions Examples/Swift/Sources/ContentCardUI-Customization/Readme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ let actions: [(String, String, @MainActor (ReadmeViewController) -> Void)] = [
"Corner radius, fonts, text color and highlight color.",
attributesCustomization
),
(
"Modify default attributes",
"Corner radius, fonts, text color and highlight color.",
defaultAttributesCustomization
),
(
"Tint color",
"Pin image, unviewed indicator and domain label inherit the current tint color.",
Expand Down Expand Up @@ -131,6 +136,11 @@ func attributesCustomization(_ viewController: ReadmeViewController) {
AppDelegate.attributesCustomization()
}

@MainActor
func defaultAttributesCustomization(_ viewController: ReadmeViewController) {
AppDelegate.defaultAttributesCustomization()
}

@MainActor
func tintColorCustomization(_ viewController: ReadmeViewController) {
AppDelegate.tintColorCustomization()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// Prepare Braze for delayed initialization
// - This ensures that push notifications received before the SDK is initialized are processed
// during initialization.
Braze.prepareForDelayedInitialization()
Braze.prepareForDelayedInitialization(pushAutomation: true)

window?.makeKeyAndVisible()
return true
Expand Down
30 changes: 0 additions & 30 deletions Examples/Swift/Sources/PushNotifications/Info.plist

This file was deleted.

Loading

0 comments on commit 3648146

Please sign in to comment.