From 684750bd7f69098ee3d797bc5feaa2256c374383 Mon Sep 17 00:00:00 2001 From: Louis Bur Date: Wed, 26 Jul 2023 12:50:45 -0400 Subject: [PATCH] Version 6.4.0 --- BrazeKit.podspec | 6 ++-- BrazeKitCompat.podspec | 8 ++--- BrazeLocation.podspec | 8 ++--- BrazeNotificationService.podspec | 6 ++-- BrazePushStory.podspec | 6 ++-- BrazeUI.podspec | 6 ++-- BrazeUICompat.podspec | 6 ++-- CHANGELOG.md | 12 ++++++++ .../PushNotifications-Automatic/Info.plist | 30 +++++++++++++++++++ .../PushNotifications-Automatic.entitlements | 12 ++++++++ .../PushNotifications.entitlements | 12 ++++++++ .../PushNotifications-Manual/Info.plist | 30 +++++++++++++++++++ .../PushNotifications-Manual.entitlements | 12 ++++++++ .../PushNotifications.entitlements | 12 ++++++++ Examples/ObjC/manual-integration-setup.sh | 2 +- .../PushNotifications-Automatic/Info.plist | 30 +++++++++++++++++++ .../PushNotifications-Automatic.entitlements | 12 ++++++++ .../PushNotifications-Manual/Info.plist | 30 +++++++++++++++++++ .../PushNotifications-Manual.entitlements | 12 ++++++++ .../PushNotifications.entitlements | 12 ++++++++ Examples/Swift/manual-integration-setup.sh | 2 +- Package.swift | 16 +++++----- README.md | 2 +- .../BrazeUI/Dependencies/AsyncImageView.swift | 5 ++-- .../Views/InAppMessageUIHtmlView.swift | 9 ++++-- .../ABKInAppMessageUIController.m | 18 +++++------ 26 files changed, 268 insertions(+), 48 deletions(-) create mode 100644 Examples/ObjC/Sources/PushNotifications-Automatic/Info.plist create mode 100644 Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements create mode 100644 Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications.entitlements create mode 100644 Examples/ObjC/Sources/PushNotifications-Manual/Info.plist create mode 100644 Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements create mode 100644 Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications.entitlements create mode 100644 Examples/Swift/Sources/PushNotifications-Automatic/Info.plist create mode 100644 Examples/Swift/Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements create mode 100644 Examples/Swift/Sources/PushNotifications-Manual/Info.plist create mode 100644 Examples/Swift/Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements create mode 100644 Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements diff --git a/BrazeKit.podspec b/BrazeKit.podspec index 27c1e3eceb..ed38f4ebba 100644 --- a/BrazeKit.podspec +++ b/BrazeKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeKit' - s.version = '6.3.1' + s.version = '6.4.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.3.1/BrazeKit.zip', - :sha256 => '13db74470e3fc80e69a28e9827bc6b45cfc983e2736191ea4b0135d14e755cda' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazeKit.zip', + :sha256 => 'de5d3867334b47d801bc342ffba53b59d20a0fec6f9e0091055ec3111dad1a71' } s.swift_version = '5.0' diff --git a/BrazeKitCompat.podspec b/BrazeKitCompat.podspec index 8d5924a619..78daa44e8c 100644 --- a/BrazeKitCompat.podspec +++ b/BrazeKitCompat.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeKitCompat' - s.version = '6.3.1' + s.version = '6.4.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.3.1' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.4.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.3.1' - s.dependency 'BrazeLocation', '6.3.1' + s.dependency 'BrazeKit', '6.4.0' + s.dependency 'BrazeLocation', '6.4.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeLocation.podspec b/BrazeLocation.podspec index f34b8a6143..8d1d52be6b 100644 --- a/BrazeLocation.podspec +++ b/BrazeLocation.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeLocation' - s.version = '6.3.1' + s.version = '6.4.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.3.1/BrazeLocation.zip', - :sha256 => '7aee29a6f1d06cf6bf9d13548e68ba4c9cf5787e1bee1ad3a135ba86ac3598b1' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazeLocation.zip', + :sha256 => '5df3d468a4947d0b3836fc77f862f01f9e1d135c824fc12c26ff824c10254066' } 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.3.1' + s.dependency 'BrazeKit', '6.4.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeNotificationService.podspec b/BrazeNotificationService.podspec index 8a7eca6da1..90ac4d05b0 100644 --- a/BrazeNotificationService.podspec +++ b/BrazeNotificationService.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeNotificationService' - s.version = '6.3.1' + s.version = '6.4.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.3.1/BrazeNotificationService.zip', - :sha256 => '2562410cba05596f86d7a1c543ee8efca82dc2ccfe15b05837e2f1c5363bb474' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazeNotificationService.zip', + :sha256 => '5830cbbed5093920bd9cf9234e923fdcf6f49e4fcd2e464c7e6fea588e7d5558' } s.swift_version = '5.0' diff --git a/BrazePushStory.podspec b/BrazePushStory.podspec index f3cd018f9e..ebf0009de7 100644 --- a/BrazePushStory.podspec +++ b/BrazePushStory.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazePushStory' - s.version = '6.3.1' + s.version = '6.4.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.3.1/BrazePushStory.zip', - :sha256 => '06f54d9a733394aec4b9d5f224a2da3092e38e9504afaa7f0fc74d125753c219' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazePushStory.zip', + :sha256 => 'b819181c6de606abc9769e24e8186b18143df0a784975e01b6bc3aa8299c210e' } s.swift_version = '5.0' diff --git a/BrazeUI.podspec b/BrazeUI.podspec index 13a23104e8..a57af1376d 100644 --- a/BrazeUI.podspec +++ b/BrazeUI.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeUI' - s.version = '6.3.1' + s.version = '6.4.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.3.1' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.4.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.3.1' + s.dependency 'BrazeKit', '6.4.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeUICompat.podspec b/BrazeUICompat.podspec index dd5480b670..83afed0e19 100644 --- a/BrazeUICompat.podspec +++ b/BrazeUICompat.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeUICompat' - s.version = '6.3.1' + s.version = '6.4.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.3.1' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '6.4.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.3.1' + s.dependency 'BrazeKitCompat', '6.4.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 581aaa9db1..1c39aae3be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 6.4.0 + +##### Fixed +- Fixes an issue preventing text fields from being selected in HTML IAMs for iOS 15. +- Fixes an issue where the device model was inaccurately reported as iPad on macOS (Mac Catalyst and Designed for iPad configurations). +- Fixes an issue where custom event and purchase properties would not accept an entry if its value was an empty string. +- Fixes a crash that occurred in the default UI for Content Cards when encountering a zero-value aspect ratio. +- Fixes an issue introduced in 6.0.0 where images in in-app messages would appear smaller than expected when using the compatibility UI (`BrazeUICompat`). + +##### Added +- Adds the `unviewedCards` convenience property to the `Braze.ContentCards` class to get the unviewed content cards for the current user. + ## 6.3.1 ##### Fixed diff --git a/Examples/ObjC/Sources/PushNotifications-Automatic/Info.plist b/Examples/ObjC/Sources/PushNotifications-Automatic/Info.plist new file mode 100644 index 0000000000..8b9d8e4a0d --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-Automatic/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + PushNotifications-Automatic + 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-Automatic.entitlements b/Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements new file mode 100644 index 0000000000..9cad402b51 --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.com.braze.PushNotifications.PushStories + + + diff --git a/Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications.entitlements b/Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications.entitlements new file mode 100644 index 0000000000..9cad402b51 --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-Automatic/PushNotifications.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.com.braze.PushNotifications.PushStories + + + diff --git a/Examples/ObjC/Sources/PushNotifications-Manual/Info.plist b/Examples/ObjC/Sources/PushNotifications-Manual/Info.plist new file mode 100644 index 0000000000..571bd81e18 --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-Manual/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + PushNotifications-Manual + 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-Manual.entitlements b/Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements new file mode 100644 index 0000000000..9cad402b51 --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.com.braze.PushNotifications.PushStories + + + diff --git a/Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications.entitlements b/Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications.entitlements new file mode 100644 index 0000000000..9cad402b51 --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-Manual/PushNotifications.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.com.braze.PushNotifications.PushStories + + + diff --git a/Examples/ObjC/manual-integration-setup.sh b/Examples/ObjC/manual-integration-setup.sh index e864f54ad8..f6cc21a456 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.3.1/braze-swift-sdk-prebuilt.zip" +url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/braze-swift-sdk-prebuilt.zip" echo "→" "Cleaning up" rm -rf braze-swift-sdk-prebuilt diff --git a/Examples/Swift/Sources/PushNotifications-Automatic/Info.plist b/Examples/Swift/Sources/PushNotifications-Automatic/Info.plist new file mode 100644 index 0000000000..8b9d8e4a0d --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications-Automatic/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + PushNotifications-Automatic + 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/Swift/Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements b/Examples/Swift/Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements new file mode 100644 index 0000000000..9cad402b51 --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.com.braze.PushNotifications.PushStories + + + diff --git a/Examples/Swift/Sources/PushNotifications-Manual/Info.plist b/Examples/Swift/Sources/PushNotifications-Manual/Info.plist new file mode 100644 index 0000000000..571bd81e18 --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications-Manual/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + PushNotifications-Manual + 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/Swift/Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements b/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements new file mode 100644 index 0000000000..9cad402b51 --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.com.braze.PushNotifications.PushStories + + + diff --git a/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements b/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements new file mode 100644 index 0000000000..9cad402b51 --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications-Manual/PushNotifications.entitlements @@ -0,0 +1,12 @@ + + + + + aps-environment + development + com.apple.security.application-groups + + group.com.braze.PushNotifications.PushStories + + + diff --git a/Examples/Swift/manual-integration-setup.sh b/Examples/Swift/manual-integration-setup.sh index e864f54ad8..f6cc21a456 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.3.1/braze-swift-sdk-prebuilt.zip" +url="https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/braze-swift-sdk-prebuilt.zip" echo "→" "Cleaning up" rm -rf braze-swift-sdk-prebuilt diff --git a/Package.swift b/Package.swift index ce1cd70490..664fcff95d 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.3.1/BrazeKit.zip", - checksum: "13db74470e3fc80e69a28e9827bc6b45cfc983e2736191ea4b0135d14e755cda" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazeKit.zip", + checksum: "de5d3867334b47d801bc342ffba53b59d20a0fec6f9e0091055ec3111dad1a71" ), .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.3.1/BrazeLocation.zip", - checksum: "7aee29a6f1d06cf6bf9d13548e68ba4c9cf5787e1bee1ad3a135ba86ac3598b1" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazeLocation.zip", + checksum: "5df3d468a4947d0b3836fc77f862f01f9e1d135c824fc12c26ff824c10254066" ), .binaryTarget( name: "BrazeNotificationService", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.3.1/BrazeNotificationService.zip", - checksum: "2562410cba05596f86d7a1c543ee8efca82dc2ccfe15b05837e2f1c5363bb474" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazeNotificationService.zip", + checksum: "5830cbbed5093920bd9cf9234e923fdcf6f49e4fcd2e464c7e6fea588e7d5558" ), .binaryTarget( name: "BrazePushStory", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.3.1/BrazePushStory.zip", - checksum: "06f54d9a733394aec4b9d5f224a2da3092e38e9504afaa7f0fc74d125753c219" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/6.4.0/BrazePushStory.zip", + checksum: "b819181c6de606abc9769e24e8186b18143df0a784975e01b6bc3aa8299c210e" ), .target( name: "BrazeKitCompat", diff --git a/README.md b/README.md index 6c0630b035..a8570796c5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

- Version: 6.3.1 + Version: 6.4.0