Skip to content

Commit

Permalink
Version 5.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Nov 2, 2022
1 parent 3481cf1 commit ce1aba4
Show file tree
Hide file tree
Showing 14 changed files with 168 additions and 29 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 = '5.6.0'
s.version = '5.6.1'
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/5.6.0/BrazeKit-CocoaPods.zip',
:sha256 => 'c35fa043e86919936cae61e191c95df9b03e95c0aac2e797b4d26e20f21786e3'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazeKit-CocoaPods.zip',
:sha256 => '5df6e58cf7c67529b678bd40f0e5394e8c36922840f80b90b5fb2299fc7daaff'
}

s.swift_version = '5.0'
Expand Down
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 = '5.6.0'
s.version = '5.6.1'
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/5.6.0/BrazeLocation-CocoaPods.zip',
:sha256 => '185f30e2b993ce39ee1f6053bf7f794db1b6d851ceff48777fb0fd0d5fabce84'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazeLocation-CocoaPods.zip',
:sha256 => 'cf16e47b6b8b92dcfebdcb8ae56a5476e771a96acfe9064214a7fc93e2877ab0'
}

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

# Depends on BrazeKit because BrazeKit includes the internal _BrazeLocationClient symbols required
# for linking against BrazeLocation.
s.dependency 'BrazeKit', '5.6.0'
s.dependency 'BrazeKit', '5.6.1'
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 = '5.6.0'
s.version = '5.6.1'
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/5.6.0/BrazeNotificationService-CocoaPods.zip',
:sha256 => '366538682b5d6268246733366b69689cb19c175b450747f9bd675a6df830bf73'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazeNotificationService-CocoaPods.zip',
:sha256 => 'cbf5266d95f00697facd00104311be493d41a31a631cbf8c53a3854bc7d7f3b6'
}

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 = '5.6.0'
s.version = '5.6.1'
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/5.6.0/BrazePushStory-CocoaPods.zip',
:sha256 => 'c55cd87e925d56a834d606e78e3ad5b54fb3c683ce92be58c5f9a043cf748b1c'
:http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazePushStory-CocoaPods.zip',
:sha256 => 'c7b71b96745388ba15df9b128a01c38fd4574237f9561d4bdadb90d62c1adc65'
}

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 = '5.6.0'
s.version = '5.6.1'
s.summary = 'Braze-provided user interface library for In-App Messages.'

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

s.swift_version = '5.0'
s.ios.deployment_target = '10.0'
Expand All @@ -17,5 +17,5 @@ Pod::Spec.new do |s|
s.source_files = 'Sources/BrazeUI/**/*.swift'
s.resource_bundles = { 'BrazeUI' => 'Sources/BrazeUI/Resources/**/*' }

s.dependency 'BrazeKit', '5.6.0'
s.dependency 'BrazeKit', '5.6.1'
end
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 5.6.1

##### Added
- Adds the public initializers `Braze.ContentCard.Context(card:using:)` and `Braze.InAppMessage.Context(message:using:)`.

## 5.6.0

##### Fixed
Expand Down
26 changes: 26 additions & 0 deletions Examples/ObjC/Sources/ContentCards/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>ContentCards</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
</dict>
</plist>
26 changes: 26 additions & 0 deletions Examples/ObjC/Sources/InAppMessages/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>InAppMessages</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ final class CardsInfoViewController: UITableViewController {
return cell
}

// MARK: - UITableViewDelegate

override func tableView(
_ tableView: UITableView,
titleForHeaderInSection section: Int
Expand Down
26 changes: 26 additions & 0 deletions Examples/Swift/Sources/ContentCards/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>ContentCards</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import UIKit
import BrazeKit

let performClickAction = "Perform click action"

final class InAppMessageInfoViewController: UITableViewController {

// Represents an in-app message property
Expand All @@ -19,10 +21,12 @@ final class InAppMessageInfoViewController: UITableViewController {
// MARK: - Properties

let sections: [Section]
let message: Braze.InAppMessage

// MARK: - Initialization

init(message: Braze.InAppMessage) {
self.message = message
sections = Self.messageSections(from: message) + Self.dataSections(from: message)
super.init(style: .grouped)
title = "In-App Message Info"
Expand Down Expand Up @@ -79,15 +83,40 @@ final class InAppMessageInfoViewController: UITableViewController {
return cell
}

// MARK: - UITableViewDelegate

override func tableView(
_ tableView: UITableView,
titleForHeaderInSection section: Int
) -> String? {
sections[section].name
}

// MARK: - UITableViewDelegate

override func tableView(
_ tableView: UITableView,
didSelectRowAt indexPath: IndexPath
) {
guard let braze = AppDelegate.braze else { return }
let field = sections[indexPath.section].fields[indexPath.row]

if field.name == performClickAction {
// Trigger click action with custom UI
let context = Braze.InAppMessage.Context(message: message, using: braze)
context.logClick()
context.processClickAction(.url(URL(string: "https://www.braze.com")!, useWebView: false))
}
}

override func tableView(
_ tableView: UITableView,
willDisplay cell: UITableViewCell,
forRowAt indexPath: IndexPath
) {
guard let braze = AppDelegate.braze else { return }
let context = Braze.InAppMessage.Context(message: message, using: braze)
context.logImpression()
}

// MARK: - Helpers

/// The message specific sections (e.g. Slideup data, Modal data)
Expand Down Expand Up @@ -156,6 +185,9 @@ final class InAppMessageInfoViewController: UITableViewController {
@unknown default:
break
}

section.fields += [Field(name: performClickAction, value: "")]

return [section, buttonsSection, themesSection].compactMap { $0 }
}

Expand Down
26 changes: 26 additions & 0 deletions Examples/Swift/Sources/InAppMessages/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>InAppMessages</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
</dict>
</plist>
16 changes: 8 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "BrazeKit",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.0/BrazeKit.zip",
checksum: "c86831ad7bd173f75d25833f6e6648ff3f021eebd41224f7c0c9880521ba8b0c"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazeKit.zip",
checksum: "28fd4d9a1544a94e75d3473fec69ccb59d2d026a350ef861552dcb3899804e23"
),
.target(
name: "BrazeKitResources",
Expand All @@ -42,18 +42,18 @@ let package = Package(
),
.binaryTarget(
name: "BrazeLocation",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.0/BrazeLocation.zip",
checksum: "30bc222ead44126b8f71a73de2f1cced8db57317b9a51a61f3dcb9930d31fb68"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazeLocation.zip",
checksum: "02d9216d3c149f47719a50e5aa69343307fc95db744bc9a1ecaec83e3deef8f3"
),
.binaryTarget(
name: "BrazeNotificationService",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.0/BrazeNotificationService.zip",
checksum: "26b92b5b17df840b7a0f08d2ac56d04dc4e415a16cd8da38144c0cd0600efff4"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazeNotificationService.zip",
checksum: "7518d3452ea5672a38e76eb86c935a926b967b2ce6e3038e471e25295a06bfbd"
),
.binaryTarget(
name: "BrazePushStory",
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.0/BrazePushStory.zip",
checksum: "f7af4633a4ebd036c7beeecc84ef9289b6e393c590ea726d15aa6359befa71e4"
url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/5.6.1/BrazePushStory.zip",
checksum: "d44a3718886a6e6d19328a814d38e5fe692d7ff7eb9758f846e1a56979ae5568"
),
]
)
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/5.6.0/blue" alt="Version: 5.6.0">
<img src="https://badgen.net/badge/version/5.6.1/blue" alt="Version: 5.6.1">
</a>
<a href="#">
<img src="https://badgen.net/badge/platforms/iOS%20%7C%20tvOS%20%7C%20Mac%20Catalyst/orange"
Expand Down

0 comments on commit ce1aba4

Please sign in to comment.