From 80d27557b74de80d4e62a285e63b72138fad8be6 Mon Sep 17 00:00:00 2001 From: Jeriel Ng Date: Tue, 15 Aug 2023 12:33:49 -0400 Subject: [PATCH] Version 6.6.0 --- BrazeKit.podspec | 6 ++-- BrazeKitCompat.podspec | 8 ++--- BrazeLocation.podspec | 8 ++--- BrazeNotificationService.podspec | 6 ++-- BrazePushStory.podspec | 6 ++-- BrazeUI.podspec | 6 ++-- BrazeUICompat.podspec | 6 ++-- CHANGELOG.md | 13 +++++++- .../ObjC/Sources/PushNotifications/Info.plist | 30 +++++++++++++++++++ .../PushNotifications.entitlements | 0 Examples/ObjC/manual-integration-setup.sh | 2 +- .../PushNotifications.entitlements | 12 -------- .../Sources/PushNotifications/Info.plist | 30 +++++++++++++++++++ .../PushNotifications.entitlements | 0 Examples/Swift/manual-integration-setup.sh | 2 +- Package.swift | 16 +++++----- README.md | 2 +- .../Dependencies/KeyboardFrameNotifier.swift | 1 - .../Views/InAppMessageUIContainerView.swift | 6 ++-- 19 files changed, 109 insertions(+), 51 deletions(-) create mode 100644 Examples/ObjC/Sources/PushNotifications/Info.plist rename Examples/ObjC/Sources/{PushNotifications-Automatic => PushNotifications}/PushNotifications.entitlements (100%) delete mode 100644 Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements create mode 100644 Examples/Swift/Sources/PushNotifications/Info.plist rename Examples/{ObjC/Sources/PushNotifications-Manual => Swift/Sources/PushNotifications}/PushNotifications.entitlements (100%) diff --git a/BrazeKit.podspec b/BrazeKit.podspec index 784f082163..687a111bc8 100644 --- a/BrazeKit.podspec +++ b/BrazeKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeKit' - s.version = '6.5.0' + s.version = '6.6.0' s.summary = 'Braze Main SDK library providing support for analytics and push notifications.' s.homepage = 'https://braze.com' @@ -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/6.5.0/BrazeKit.zip', - :sha256 => '0e3843a67a1a415f867cc01fa81d698dc72b740f4fc72a5fe37562f376379c3e' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazeKit.zip', + :sha256 => '6f5dde7eb911a8a5f15030cb8d8596e700b3b12ce30166428ef976a06835a52a' } s.swift_version = '5.0' diff --git a/BrazeKitCompat.podspec b/BrazeKitCompat.podspec index 31f3741170..f298a5598b 100644 --- a/BrazeKitCompat.podspec +++ b/BrazeKitCompat.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeKitCompat' - s.version = '6.5.0' + s.version = '6.6.0' s.summary = 'Compatibility library for users migrating from AppboyKit.' s.homepage = 'https://braze.com' @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.license = { :type => 'Commercial' } s.authors = 'Braze, Inc.' - s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.5.0' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.6.0' } s.swift_version = '5.0' s.ios.deployment_target = '11.0' @@ -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', '6.5.0' - s.dependency 'BrazeLocation', '6.5.0' + s.dependency 'BrazeKit', '6.6.0' + s.dependency 'BrazeLocation', '6.6.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeLocation.podspec b/BrazeLocation.podspec index eb634fb6d1..c791dcd3d6 100644 --- a/BrazeLocation.podspec +++ b/BrazeLocation.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeLocation' - s.version = '6.5.0' + s.version = '6.6.0' s.summary = 'Braze location library providing support for location analytics and geofence monitoring.' s.homepage = 'https://braze.com' @@ -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/6.5.0/BrazeLocation.zip', - :sha256 => '178ce59114e9bdc8d161857ec475656e15a2c7a7bd28e7880e27d397cf8c874f' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazeLocation.zip', + :sha256 => '668f6011946046eea780f806bae588b020569cccfa1a3ab864e65c79388bf0cb' } s.swift_version = '5.0' @@ -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', '6.5.0' + s.dependency 'BrazeKit', '6.6.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeNotificationService.podspec b/BrazeNotificationService.podspec index 41acf72878..b8b9aadab5 100644 --- a/BrazeNotificationService.podspec +++ b/BrazeNotificationService.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeNotificationService' - s.version = '6.5.0' + s.version = '6.6.0' s.summary = 'Braze notification service extension library providing support for Rich Push notifications.' s.homepage = 'https://braze.com' @@ -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/6.5.0/BrazeNotificationService.zip', - :sha256 => 'faad0dc43447ba9359e87efc18ad0ab066ee1b1acfda39904082eafb85a2bb09' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazeNotificationService.zip', + :sha256 => 'd737a5923d4ec72346785209ac4ca892fc91a19a8f5a2b795142e5c156b45799' } s.swift_version = '5.0' diff --git a/BrazePushStory.podspec b/BrazePushStory.podspec index fd1c498124..6f465756a7 100644 --- a/BrazePushStory.podspec +++ b/BrazePushStory.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazePushStory' - s.version = '6.5.0' + s.version = '6.6.0' s.summary = 'Braze notification content extension library providing support for Push Stories.' s.homepage = 'https://braze.com' @@ -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/6.5.0/BrazePushStory.zip', - :sha256 => '666ad56ebfeac39ff35a7f3595061e0e192364dff5834b461accd4161ad8a54e' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazePushStory.zip', + :sha256 => 'd653e639f679e7ab9377eed3564149aa20b4957768f19207b9617ee58997e6c4' } s.swift_version = '5.0' diff --git a/BrazeUI.podspec b/BrazeUI.podspec index 6ec1c299b6..e532812bbd 100644 --- a/BrazeUI.podspec +++ b/BrazeUI.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeUI' - s.version = '6.5.0' + s.version = '6.6.0' s.summary = 'Braze-provided user interface library for In-App Messages and Content Cards.' s.homepage = 'https://braze.com' @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.license = { :type => 'Commercial' } s.authors = 'Braze, Inc.' - s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.5.0' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.6.0' } s.swift_version = '5.0' s.ios.deployment_target = '11.0' @@ -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', '6.5.0' + s.dependency 'BrazeKit', '6.6.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeUICompat.podspec b/BrazeUICompat.podspec index 96fed9b790..8bff0e4beb 100644 --- a/BrazeUICompat.podspec +++ b/BrazeUICompat.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeUICompat' - s.version = '6.5.0' + s.version = '6.6.0' s.summary = 'Compatibility UI library for users migrating from AppboyUI.' s.homepage = 'https://braze.com' @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.license = { :type => 'Commercial' } s.authors = 'Braze, Inc.' - s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.5.0' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.6.0' } s.swift_version = '5.0' s.ios.deployment_target = '11.0' @@ -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', '6.5.0' + s.dependency 'BrazeKitCompat', '6.6.0' s.dependency 'SDWebImage', '>= 5.8.2', '< 6' s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } diff --git a/CHANGELOG.md b/CHANGELOG.md index f50555eed3..0ce4dd26b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## 6.6.0 + +##### Fixed +- Fixes an issue in HTML in-app messages where custom event and purchase properties would always convert values for `1` and `0` to become `true` and `false`, respectively. + - These property values will now respect their original form in the HTML. +- Prevents the default Braze UI from displaying in-app messages underneath the keyboard when Stage Manager is in use. + +##### Added +- Adds the [`Braze.FeatureFlags.logFeatureFlagImpression(id: String)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/featureflags-swift.class/logfeatureflagimpression(id:)) method. +- Adds the optional `merge` parameter to the Objective-C representation of the [`setCustomAttribute(key:dictionary:merge:)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/user-swift.class/setcustomattribute(key:dictionary:merge:fileid:line:)) method. + ## 6.5.0 ##### Fixed @@ -17,7 +28,7 @@ - [`Braze.Configuration.Push.automation`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/configuration-swift.class/push-swift.class/automation-swift.property) property. - [`Braze.Configuration.Push.Automation`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/configuration-swift.class/push-swift.class/automation-swift.class) type (provides details about the behavior of each automation step). - Adds the [`Braze.Configuration.forwardUniversalLinks`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/configuration-swift.class/forwarduniversallinks) configuration. When enabled, the SDK will redirect universal links from Braze campaigns to the appropriate system methods. -- Adds the [`Braze.Notifications.subscribeToUpdates(_:)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/notifications-swift.class/subscribetoupdates(_:)) method to subscribe to the push notifications handled by the SDK. +- Adds the [`Braze.Notifications.subscribeToUpdates(_:)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/notifications-swift.class/subscribetoupdates(_:)) method to subscribe to the push notifications handled by the SDK. - This method runs the provided closure with a [`Braze.Notifications.Payload`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/notifications-swift.class/payload) class representing the processed push notification. - Adds the [`Braze.Notifications.deviceToken`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/notifications-swift.class/devicetoken) property to access the most recent notification device token received by the SDK. diff --git a/Examples/ObjC/Sources/PushNotifications/Info.plist b/Examples/ObjC/Sources/PushNotifications/Info.plist new file mode 100644 index 0000000000..d7f8ec8ca2 --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + PushNotifications + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + UIBackgroundModes + + remote-notification + + UILaunchStoryboardName + LaunchScreen + + diff --git a/Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications.entitlements b/Examples/ObjC/Sources/PushNotifications/PushNotifications.entitlements similarity index 100% rename from Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications.entitlements rename to Examples/ObjC/Sources/PushNotifications/PushNotifications.entitlements diff --git a/Examples/ObjC/manual-integration-setup.sh b/Examples/ObjC/manual-integration-setup.sh index 34600eb112..6c14e6767c 100755 --- a/Examples/ObjC/manual-integration-setup.sh +++ b/Examples/ObjC/manual-integration-setup.sh @@ -20,7 +20,7 @@ if [ ! -f "manual-integration-setup.sh" ]; then fi # Constants -url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.5.0/braze-swift-sdk-prebuilt.zip" +url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/braze-swift-sdk-prebuilt.zip" echo "→" "Cleaning up" rm -rf braze-swift-sdk-prebuilt diff --git a/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements b/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements deleted file mode 100644 index 9cad402b51..0000000000 --- a/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements +++ /dev/null @@ -1,12 +0,0 @@ - - - - - aps-environment - development - com.apple.security.application-groups - - group.com.braze.PushNotifications.PushStories - - - diff --git a/Examples/Swift/Sources/PushNotifications/Info.plist b/Examples/Swift/Sources/PushNotifications/Info.plist new file mode 100644 index 0000000000..d7f8ec8ca2 --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + PushNotifications + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + UIBackgroundModes + + remote-notification + + UILaunchStoryboardName + LaunchScreen + + diff --git a/Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications.entitlements b/Examples/Swift/Sources/PushNotifications/PushNotifications.entitlements similarity index 100% rename from Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications.entitlements rename to Examples/Swift/Sources/PushNotifications/PushNotifications.entitlements diff --git a/Examples/Swift/manual-integration-setup.sh b/Examples/Swift/manual-integration-setup.sh index 34600eb112..6c14e6767c 100755 --- a/Examples/Swift/manual-integration-setup.sh +++ b/Examples/Swift/manual-integration-setup.sh @@ -20,7 +20,7 @@ if [ ! -f "manual-integration-setup.sh" ]; then fi # Constants -url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.5.0/braze-swift-sdk-prebuilt.zip" +url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/braze-swift-sdk-prebuilt.zip" echo "→" "Cleaning up" rm -rf braze-swift-sdk-prebuilt diff --git a/Package.swift b/Package.swift index 9de83be774..cc2712a29f 100644 --- a/Package.swift +++ b/Package.swift @@ -47,8 +47,8 @@ let package = Package( targets: [ .binaryTarget( name: "BrazeKit", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.5.0/BrazeKit.zip", - checksum: "0e3843a67a1a415f867cc01fa81d698dc72b740f4fc72a5fe37562f376379c3e" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazeKit.zip", + checksum: "6f5dde7eb911a8a5f15030cb8d8596e700b3b12ce30166428ef976a06835a52a" ), .target( name: "BrazeKitResources", @@ -65,18 +65,18 @@ let package = Package( ), .binaryTarget( name: "BrazeLocation", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.5.0/BrazeLocation.zip", - checksum: "178ce59114e9bdc8d161857ec475656e15a2c7a7bd28e7880e27d397cf8c874f" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazeLocation.zip", + checksum: "668f6011946046eea780f806bae588b020569cccfa1a3ab864e65c79388bf0cb" ), .binaryTarget( name: "BrazeNotificationService", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.5.0/BrazeNotificationService.zip", - checksum: "faad0dc43447ba9359e87efc18ad0ab066ee1b1acfda39904082eafb85a2bb09" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazeNotificationService.zip", + checksum: "d737a5923d4ec72346785209ac4ca892fc91a19a8f5a2b795142e5c156b45799" ), .binaryTarget( name: "BrazePushStory", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.5.0/BrazePushStory.zip", - checksum: "666ad56ebfeac39ff35a7f3595061e0e192364dff5834b461accd4161ad8a54e" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.6.0/BrazePushStory.zip", + checksum: "d653e639f679e7ab9377eed3564149aa20b4957768f19207b9617ee58997e6c4" ), .target( name: "BrazeKitCompat", diff --git a/README.md b/README.md index 1cbaabdcf1..55c00dede2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

- Version: 6.5.0 + Version: 6.6.0