From feb064a680dfc029d814b63a110fb58f96f3444c Mon Sep 17 00:00:00 2001 From: Louis Bur Date: Thu, 23 May 2024 15:02:24 +0200 Subject: [PATCH] Version 9.2.0 --- BrazeKit.podspec | 6 +- BrazeKitCompat.podspec | 8 +- BrazeLocation.podspec | 8 +- BrazeNotificationService.podspec | 6 +- BrazePushStory.podspec | 6 +- BrazeUI.podspec | 6 +- BrazeUICompat.podspec | 6 +- CHANGELOG.md | 14 +- .../project.pbxproj | 140 ++++++++++++++++++ .../Examples-Manual.xcodeproj/project.pbxproj | 60 ++++++++ .../project.pbxproj | 60 ++++++++ Examples/ObjC/Podfile | 10 ++ .../AppDelegate.h | 14 ++ .../AppDelegate.m | 54 +++++++ .../Readme.m | 44 ++++++ .../ObjC/Sources/PushNotifications/Info.plist | 30 ---- .../PushNotifications.entitlements | 12 -- Examples/ObjC/manual-integration-setup.sh | 2 +- Examples/README.md | 6 + .../project.pbxproj | 140 ++++++++++++++++++ .../Examples-Manual.xcodeproj/project.pbxproj | 60 ++++++++ .../project.pbxproj | 60 ++++++++ Examples/Swift/Podfile | 10 ++ .../AppDelegate.swift | 37 +++++ .../Readme.swift | 35 +++++ .../Sources/PushNotifications/Info.plist | 30 ---- .../PushNotifications.entitlements | 12 -- Examples/Swift/manual-integration-setup.sh | 2 +- Package.swift | 16 +- README.md | 2 +- 30 files changed, 776 insertions(+), 120 deletions(-) create mode 100644 Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.h create mode 100644 Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.m create mode 100644 Examples/ObjC/Sources/PushNotifications-DelayedInitialization/Readme.m delete mode 100644 Examples/ObjC/Sources/PushNotifications/Info.plist delete mode 100644 Examples/ObjC/Sources/PushNotifications/PushNotifications.entitlements create mode 100644 Examples/Swift/Sources/PushNotifications-DelayedInitialization/AppDelegate.swift create mode 100644 Examples/Swift/Sources/PushNotifications-DelayedInitialization/Readme.swift delete mode 100644 Examples/Swift/Sources/PushNotifications/Info.plist delete mode 100644 Examples/Swift/Sources/PushNotifications/PushNotifications.entitlements diff --git a/BrazeKit.podspec b/BrazeKit.podspec index eb5b2498f1..982c72bc56 100644 --- a/BrazeKit.podspec +++ b/BrazeKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeKit' - s.version = '9.1.0' + s.version = '9.2.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/9.1.0/BrazeKit.zip', - :sha256 => '693c8d5f940e8d68702910ccaec73cf4749f55b336cb9f5dd4b4d4364df168f8' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazeKit.zip', + :sha256 => '5ed56654230300f344fd9984931ec9ce973c47fc8f534787ed20ef28a3024eb2' } s.swift_version = '5.0' diff --git a/BrazeKitCompat.podspec b/BrazeKitCompat.podspec index e2215e383e..21a673f060 100644 --- a/BrazeKitCompat.podspec +++ b/BrazeKitCompat.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeKitCompat' - s.version = '9.1.0' + s.version = '9.2.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 => '9.1.0' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '9.2.0' } s.swift_version = '5.0' s.ios.deployment_target = '12.0' @@ -18,8 +18,8 @@ Pod::Spec.new do |s| s.public_header_files = 'Sources/BrazeKitCompat/include/*.h' s.static_framework = true - s.dependency 'BrazeKit', '9.1.0' - s.dependency 'BrazeLocation', '9.1.0' + s.dependency 'BrazeKit', '9.2.0' + s.dependency 'BrazeLocation', '9.2.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeLocation.podspec b/BrazeLocation.podspec index 2b099fbe16..976c8b5c6c 100644 --- a/BrazeLocation.podspec +++ b/BrazeLocation.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeLocation' - s.version = '9.1.0' + s.version = '9.2.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/9.1.0/BrazeLocation.zip', - :sha256 => 'bfa13cd2b38dba7824377979c74fda8d08b10cb33f09aaad8a0617c620c3493e' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazeLocation.zip', + :sha256 => '17b43c37ff2c8cf1eef15df12c771cb12b4f901943a8045073be425da8b9bf58' } s.swift_version = '5.0' @@ -21,7 +21,7 @@ Pod::Spec.new do |s| s.vendored_framework = 'BrazeLocation.xcframework' s.resource_bundles = { 'BrazeLocation' => ['Sources/BrazeLocationResources/Resources/**/*'] } - s.dependency 'BrazeKit', '9.1.0' + s.dependency 'BrazeKit', '9.2.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeNotificationService.podspec b/BrazeNotificationService.podspec index f500757ed5..2fba383533 100644 --- a/BrazeNotificationService.podspec +++ b/BrazeNotificationService.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeNotificationService' - s.version = '9.1.0' + s.version = '9.2.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/9.1.0/BrazeNotificationService.zip', - :sha256 => 'c4648f53a3f8dd273304d7cdb6e6d2cecc8c9dc494d7b321508deb7bea5e884b' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazeNotificationService.zip', + :sha256 => 'a816612048715dc2d6ba23a16dc274fed06a7ad12dcd49a97b5f1013978f5da7' } s.swift_version = '5.0' diff --git a/BrazePushStory.podspec b/BrazePushStory.podspec index 6ea19fc787..bc7cc2f575 100644 --- a/BrazePushStory.podspec +++ b/BrazePushStory.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazePushStory' - s.version = '9.1.0' + s.version = '9.2.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/9.1.0/BrazePushStory.zip', - :sha256 => '5bf7915057a01c2f7087cc0ef5a1adcb36310366759927a19144be0a645625e0' + :http => 'https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazePushStory.zip', + :sha256 => 'de60b3324133b1664c5d152634e7ddcc41b36f187b400b205f209e7491d3fb17' } s.swift_version = '5.0' diff --git a/BrazeUI.podspec b/BrazeUI.podspec index 5047bec12f..33dc3f9946 100644 --- a/BrazeUI.podspec +++ b/BrazeUI.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeUI' - s.version = '9.1.0' + s.version = '9.2.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 => '9.1.0' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '9.2.0' } s.swift_version = '5.0' s.ios.deployment_target = '12.0' @@ -18,7 +18,7 @@ Pod::Spec.new do |s| s.resource_bundles = { 'BrazeUI' => ['Sources/BrazeUI/Resources/**/*'] } s.static_framework = true - s.dependency 'BrazeKit', '9.1.0' + s.dependency 'BrazeKit', '9.2.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/BrazeUICompat.podspec b/BrazeUICompat.podspec index c602c98ef3..1993df5dd2 100644 --- a/BrazeUICompat.podspec +++ b/BrazeUICompat.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BrazeUICompat' - s.version = '9.1.0' + s.version = '9.2.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 => '9.1.0' } + s.source = { :git => 'https://github.com/braze-inc/braze-swift-sdk.git', :tag => '9.2.0' } s.swift_version = '5.0' s.ios.deployment_target = '12.0' @@ -18,7 +18,7 @@ Pod::Spec.new do |s| s.resource_bundles = { 'BrazeUICompat' => 'Sources/BrazeUICompat/*/Resources/**/*.*' } s.static_framework = true - s.dependency 'BrazeKitCompat', '9.1.0' + s.dependency 'BrazeKitCompat', '9.2.0' s.dependency 'SDWebImage', '>= 5.19.0', '< 6' s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } diff --git a/CHANGELOG.md b/CHANGELOG.md index fe3fe85f02..385f373f82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## 9.2.0 + +##### Added +- Adds the `openNewWindowLinksInBrowser` configuration (default: `false`) to `Braze.ModalContext`. + - Set this value in the `braze(_:willPresentModalWithContext:)` method of your `BrazeDelegate` to specify whether to launch the device browser to open web view hyperlinks that normally open a new tab or window. + +##### Fixed +- Fixes an issue with the automatic push integration feature that could cause the SDK not to send the device token to Braze. +- Fixes an issue that prevented external links, which open in a new tab, from being activated in presented web views. + ## 9.1.0 ##### Added @@ -58,8 +68,8 @@ ##### Added - Adds support for remotely starting Live Activities via push notifications. - Adds the following methods to the `liveActivities` module: - - [`registerPushToStart(forType:name:) -> Task`](http://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/liveactivities-swift.class/registerpushtostart(fortype:name:)) - - [`optOutPushToStart(type:)`](http://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/liveactivities-swift.class/optoutpushtostart(type:)) + - [`registerPushToStart(forType:name:) -> Task`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/liveactivities-swift.class/registerpushtostart(fortype:name:)) + - [`optOutPushToStart(type:)`](https://braze-inc.github.io/braze-swift-sdk/documentation/brazekit/braze/liveactivities-swift.class/optoutpushtostart(type:)) - This feature requires iOS 17.2 or higher. - For usage details, refer to the updated Live Activities tutorial [here](https://braze-inc.github.io/braze-swift-sdk/tutorials/braze/b4-live-activities/). - Adds return values for existing `liveActivities` methods: diff --git a/Examples/ObjC/Examples-CocoaPods.xcodeproj/project.pbxproj b/Examples/ObjC/Examples-CocoaPods.xcodeproj/project.pbxproj index e1e0051f57..38f2faa10c 100644 --- a/Examples/ObjC/Examples-CocoaPods.xcodeproj/project.pbxproj +++ b/Examples/ObjC/Examples-CocoaPods.xcodeproj/project.pbxproj @@ -1164,6 +1164,90 @@ BuildIndependentTargetsInParallel = YES; LastUpgradeCheck = 1430; TargetAttributes = { + 027F5C80F4345CD80EAB6233 = { + ProvisioningStyle = automatic; + }; + 07F0B2B5FB6814EA0A1B6029 = { + ProvisioningStyle = automatic; + }; + 0FD7FC35072A5B75852D15F7 = { + ProvisioningStyle = automatic; + }; + 14E9710BA56D6EAB00F2DA59 = { + ProvisioningStyle = automatic; + }; + 177B908F6B162DDA447880C8 = { + ProvisioningStyle = automatic; + }; + 1A20DFCA0DF677F61651351C = { + ProvisioningStyle = automatic; + }; + 1EC637DDC1D4B0DE6047CE3E = { + ProvisioningStyle = automatic; + }; + 22E002F14DEB1A9EEED8770A = { + ProvisioningStyle = automatic; + }; + 284840096E199840E3A733BC = { + ProvisioningStyle = automatic; + }; + 4A34648A0491D5D28D9A7E8A = { + ProvisioningStyle = automatic; + }; + 4C0D10CC0FE319AC7EA1F7C0 = { + ProvisioningStyle = automatic; + }; + 5095A23CD3EF1F16B24C4A05 = { + ProvisioningStyle = automatic; + }; + 54D69C68B98BF08570048181 = { + ProvisioningStyle = automatic; + }; + 58D8FC3A892387206B011028 = { + ProvisioningStyle = automatic; + }; + 75C44F728211105AB0B11127 = { + ProvisioningStyle = automatic; + }; + 7A56C6610176F67086A05593 = { + ProvisioningStyle = automatic; + }; + A003570FDB24621EC4EA44CD = { + ProvisioningStyle = automatic; + }; + A0EF8DC5C1ED6288C32D3D23 = { + ProvisioningStyle = automatic; + }; + AEC0985F0919D277A2319D06 = { + ProvisioningStyle = automatic; + }; + BC720D0A2A3B555DF4D1268A = { + ProvisioningStyle = automatic; + }; + C160EA300423AABE590DA8FE = { + ProvisioningStyle = automatic; + }; + C9B0351FE4D92A64D979317E = { + ProvisioningStyle = automatic; + }; + D9673F6DE9F76C58BBFBB954 = { + ProvisioningStyle = automatic; + }; + DE748DA4577476A856A5455A = { + ProvisioningStyle = automatic; + }; + E4E9F3507C9F70F681E5417F = { + ProvisioningStyle = automatic; + }; + ED69FAABD993D057124C6B71 = { + ProvisioningStyle = automatic; + }; + F7627CCAD54F489968127C71 = { + ProvisioningStyle = automatic; + }; + FDA0A7B4C40914EAF405D9FC = { + ProvisioningStyle = automatic; + }; }; }; buildConfigurationList = 1D61EB4EA4EACDE551DB7D19 /* Build configuration list for PBXProject "Examples-CocoaPods" */; @@ -1848,6 +1932,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Analytics-visionOS"; @@ -1865,6 +1950,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCards-Custom-UI-visionOS"; @@ -1883,6 +1969,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -1901,6 +1988,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1923,6 +2011,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1946,6 +2035,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1966,6 +2056,7 @@ 19CD18E76E2084058B799792 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -1985,6 +2076,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -2003,6 +2095,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2024,6 +2117,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-visionOS"; @@ -2042,6 +2136,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2064,6 +2159,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2087,6 +2183,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2108,6 +2205,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2126,6 +2224,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessages-Custom-UI-visionOS"; @@ -2143,6 +2242,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-Customization-visionOS"; @@ -2159,6 +2259,7 @@ 3A99945F6AD5C26C141AE498 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2178,6 +2279,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2199,6 +2301,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-visionOS"; @@ -2217,6 +2320,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2239,6 +2343,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2262,6 +2367,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2284,6 +2390,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2306,6 +2413,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2326,6 +2434,7 @@ 7426535243345D9AC40B99FA /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2346,6 +2455,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2368,6 +2478,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2389,6 +2500,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-Customization-visionOS"; @@ -2406,6 +2518,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2423,6 +2536,7 @@ 830D38C1809836167165F50B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2441,6 +2555,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-Customization-visionOS"; @@ -2458,6 +2573,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCards-Custom-UI-visionOS"; @@ -2476,6 +2592,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2498,6 +2615,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Location-visionOS"; @@ -2516,6 +2634,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -2597,6 +2716,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-visionOS"; @@ -2615,6 +2735,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2637,6 +2758,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2660,6 +2782,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2683,6 +2806,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2706,6 +2830,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2727,6 +2852,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2746,6 +2872,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2768,6 +2895,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2790,6 +2918,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2812,6 +2941,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2833,6 +2963,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-visionOS"; @@ -2850,6 +2981,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessages-Custom-UI-visionOS"; @@ -2867,6 +2999,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-Customization-visionOS"; @@ -2885,6 +3018,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Location-visionOS"; @@ -2902,6 +3036,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Analytics-visionOS"; @@ -2919,6 +3054,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2995,6 +3131,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -3013,6 +3150,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -3035,6 +3173,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -3058,6 +3197,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/Examples/ObjC/Examples-Manual.xcodeproj/project.pbxproj b/Examples/ObjC/Examples-Manual.xcodeproj/project.pbxproj index b188f2846c..ecea58aea2 100644 --- a/Examples/ObjC/Examples-Manual.xcodeproj/project.pbxproj +++ b/Examples/ObjC/Examples-Manual.xcodeproj/project.pbxproj @@ -823,6 +823,42 @@ BuildIndependentTargetsInParallel = YES; LastUpgradeCheck = 1430; TargetAttributes = { + 03B2052E558A71218BC22579 = { + ProvisioningStyle = automatic; + }; + 2D82CDF07E47504BAAA5B41F = { + ProvisioningStyle = automatic; + }; + 3424DE025B55C57D8D88CF98 = { + ProvisioningStyle = automatic; + }; + 4CF94578CDC41CCB2531C03E = { + ProvisioningStyle = automatic; + }; + 730CBD368DF92F037A30E1DB = { + ProvisioningStyle = automatic; + }; + 7A8A97B5756032F77C72A0FF = { + ProvisioningStyle = automatic; + }; + 7BC007CEA49315C4DA0291C9 = { + ProvisioningStyle = automatic; + }; + 8CE88AF5BE8687E1035552BA = { + ProvisioningStyle = automatic; + }; + 9271831B14E0049767FA3451 = { + ProvisioningStyle = automatic; + }; + 9844E2ECB2B13EACD3762C4C = { + ProvisioningStyle = automatic; + }; + ABDD889C9BD46680C87F8A70 = { + ProvisioningStyle = automatic; + }; + CC8373AC31E15FD5A870D3BB = { + ProvisioningStyle = automatic; + }; }; }; buildConfigurationList = E1DECCCD0247DE414EB92A53 /* Build configuration list for PBXProject "Examples-Manual" */; @@ -1146,6 +1182,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1169,6 +1206,7 @@ 086E04D720914C4631B4D126 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1194,6 +1232,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1221,6 +1260,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1246,6 +1286,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1269,6 +1310,7 @@ 21E085F47A614AA1DD021EB3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1295,6 +1337,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1320,6 +1363,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1346,6 +1390,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1371,6 +1416,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1396,6 +1442,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1421,6 +1468,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1446,6 +1494,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1471,6 +1520,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1497,6 +1547,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1522,6 +1573,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1546,6 +1598,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1573,6 +1626,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1598,6 +1652,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1746,6 +1801,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1771,6 +1827,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1797,6 +1854,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1823,6 +1881,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1848,6 +1907,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", diff --git a/Examples/ObjC/Examples-SwiftPM.xcodeproj/project.pbxproj b/Examples/ObjC/Examples-SwiftPM.xcodeproj/project.pbxproj index 65420c051a..93b3bbb1fe 100644 --- a/Examples/ObjC/Examples-SwiftPM.xcodeproj/project.pbxproj +++ b/Examples/ObjC/Examples-SwiftPM.xcodeproj/project.pbxproj @@ -827,6 +827,42 @@ BuildIndependentTargetsInParallel = YES; LastUpgradeCheck = 1430; TargetAttributes = { + 0642C7DCDAD9AB0330096707 = { + ProvisioningStyle = automatic; + }; + 0A1211FC31CA5DD9A5E1D18E = { + ProvisioningStyle = automatic; + }; + 1BB9C370026C39B3DBE54065 = { + ProvisioningStyle = automatic; + }; + 59B8633A44EBC4A918E17FBF = { + ProvisioningStyle = automatic; + }; + 6F0145EB7E39FDE6D8D6FD4C = { + ProvisioningStyle = automatic; + }; + 842A3D91E0A246B872DA9846 = { + ProvisioningStyle = automatic; + }; + 908A74E9B2A6D8455EB2933D = { + ProvisioningStyle = automatic; + }; + BF81DFAFE8B8E3CB74955E60 = { + ProvisioningStyle = automatic; + }; + C20A5C88D2F5943F57B53CEE = { + ProvisioningStyle = automatic; + }; + C86DEA9CD6ED7E7E75358AD0 = { + ProvisioningStyle = automatic; + }; + E59DB4201FEAE1A212979375 = { + ProvisioningStyle = automatic; + }; + FA78BE27C24F0E569EC66970 = { + ProvisioningStyle = automatic; + }; }; }; buildConfigurationList = 121E4DAF0EB7FA3A0B03C3C0 /* Build configuration list for PBXProject "Examples-SwiftPM" */; @@ -1126,6 +1162,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1148,6 +1185,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1170,6 +1208,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1192,6 +1231,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1278,6 +1318,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1299,6 +1340,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1378,6 +1420,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1399,6 +1442,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1421,6 +1465,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1442,6 +1487,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1464,6 +1510,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1485,6 +1532,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1504,6 +1552,7 @@ 9E13FBC998B0A5499C68208A /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1526,6 +1575,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1547,6 +1597,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1568,6 +1619,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1590,6 +1642,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1611,6 +1664,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1631,6 +1685,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1652,6 +1707,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1674,6 +1730,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1695,6 +1752,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1714,6 +1772,7 @@ F83B82D7A7E5DB678B6196A6 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1736,6 +1795,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/Examples/ObjC/Podfile b/Examples/ObjC/Podfile index ae1658a940..7100d13cbe 100644 --- a/Examples/ObjC/Podfile +++ b/Examples/ObjC/Podfile @@ -157,6 +157,16 @@ target 'PushNotifications-Automatic-visionOS' do pod 'BrazeKit' end +target 'PushNotifications-DelayedInitialization-iOS' do + platform :ios, '12.0' + pod 'BrazeKit' +end + +target 'PushNotifications-DelayedInitialization-visionOS' do + platform :visionos, '1.0' + pod 'BrazeKit' +end + target 'PushNotificationsServiceExtension-iOS' do platform :ios, '12.0' pod 'BrazeNotificationService' diff --git a/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.h b/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.h new file mode 100644 index 0000000000..5aa305809e --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.h @@ -0,0 +1,14 @@ +@import UIKit; +@import UserNotifications; +@import BrazeKit; + +extern NSString *const brazeApiKey; +extern NSString *const brazeEndpoint; + +@interface AppDelegate: UIResponder + +@property(class, strong, nonatomic) Braze *braze; + ++ (void)initializeBraze; + +@end diff --git a/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.m b/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.m new file mode 100644 index 0000000000..51db51d51a --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/AppDelegate.m @@ -0,0 +1,54 @@ +#import "AppDelegate.h" + +@import BrazeKit; + +@implementation AppDelegate + +#pragma mark - Lifecycle + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Prepare Braze for delayed initialization + // - This ensures that push notifications received before the SDK is initialized are processed + // during initialization. + [Braze prepareForDelayedInitialization]; + + [self.window makeKeyAndVisible]; + return YES; +} + ++ (void)initializeBraze { + // Setup Braze + BRZConfiguration *configuration = + [[BRZConfiguration alloc] initWithApiKey:brazeApiKey + endpoint:brazeEndpoint]; + configuration.logger.level = BRZLoggerLevelInfo; + configuration.push.appGroup = @"group.com.braze.PushNotifications.PushStories"; + + // Enable all push notification automation features (default: disabled) + // - Using `Braze.prepareForDelayedInitialization()` implicitly enables push automation. + // - Specific properties of the automation configuration can be customized for initialization. + configuration.push.automation.automaticSetup = YES; + configuration.push.automation.requestAuthorizationAtLaunch = YES; + configuration.push.automation.registerDeviceToken = YES; + configuration.push.automation.handleBackgroundNotification = YES; + configuration.push.automation.handleNotificationResponse = YES; + configuration.push.automation.willPresentNotification = YES; + + Braze *braze = [[Braze alloc] initWithConfiguration:configuration]; + AppDelegate.braze = braze; +} + +#pragma mark - AppDelegate.braze + +static Braze *_braze = nil; + ++ (Braze *)braze { + return _braze; +} + ++ (void)setBraze:(Braze *)braze { + _braze = braze; +} + +@end diff --git a/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/Readme.m b/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/Readme.m new file mode 100644 index 0000000000..37ce649272 --- /dev/null +++ b/Examples/ObjC/Sources/PushNotifications-DelayedInitialization/Readme.m @@ -0,0 +1,44 @@ +#import "ReadmeAction.h" +#import "ReadmeViewController.h" +#import "AppDelegate.h" + +#pragma mark - Readme + +void initializeBraze(ReadmeViewController *viewController) { + [AppDelegate initializeBraze]; + + // Disable cell + for (UITableViewCell *cell in viewController.tableView.visibleCells) { + cell.userInteractionEnabled = NO; + cell.textLabel.textColor = UIColor.systemGrayColor; + cell.detailTextLabel.textColor = UIColor.systemGrayColor; + } + +} + +#pragma mark - Readme + +NSString *const readme = + @"This sample presents a complete push notification integration allowing the SDK to be" + @" initialized asynchronously. This is an extension of the PushNotifications-Automatic sample" + @" application.\n" + @"\n" + @"- PushNotifications/AppDelegate.{h,m}:\n" + @" - Delayed SDK initialization support\n" + @" - Automatic push support via SDK configuration\n" + @"\n" + @"- PushNotificationsServiceExtension:\n" + @" - Rich push notification support (image, GIF, audio, video)\n" + @"\n" + @"- PushNotificationsContentExtension:\n" + @" - Braze Push Story implementation"; + +NSInteger const actionsCount = 1; + +ReadmeAction const actions[] = { + { + @"Initialize Braze", + @"", + ^(ReadmeViewController *_Nonnull viewController) { initializeBraze(viewController); } + } +}; diff --git a/Examples/ObjC/Sources/PushNotifications/Info.plist b/Examples/ObjC/Sources/PushNotifications/Info.plist deleted file mode 100644 index d7f8ec8ca2..0000000000 --- a/Examples/ObjC/Sources/PushNotifications/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - 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/PushNotifications.entitlements b/Examples/ObjC/Sources/PushNotifications/PushNotifications.entitlements deleted file mode 100644 index 9cad402b51..0000000000 --- a/Examples/ObjC/Sources/PushNotifications/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/ObjC/manual-integration-setup.sh b/Examples/ObjC/manual-integration-setup.sh index ecf601daad..eaf0f266d1 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/9.1.0/braze-swift-sdk-prebuilt.zip" +url="https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/braze-swift-sdk-prebuilt.zip" echo "→" "Cleaning up" rm -rf braze-swift-sdk-prebuilt diff --git a/Examples/README.md b/Examples/README.md index 820f2d3eaa..a53d1ff0f2 100644 --- a/Examples/README.md +++ b/Examples/README.md @@ -120,6 +120,12 @@ Follow the instructions below for your preferred integration method to get start - [Rich Push Notifications](https://braze-inc.github.io/braze-swift-sdk/tutorials/braze/b2-rich-push-notifications). - [Push Stories](https://braze-inc.github.io/braze-swift-sdk/tutorials/braze/b3-push-stories). +#### PushNotifications-DelayedInitialization + +- iOS, visionOS, Mac Catalyst. +- Swift, Objective-C. +- Extension of the PushNotifications-Automatic example with delayed SDK initialization support. + #### PushNotificationsContentExtension - iOS, visionOS, Mac Catalyst. diff --git a/Examples/Swift/Examples-CocoaPods.xcodeproj/project.pbxproj b/Examples/Swift/Examples-CocoaPods.xcodeproj/project.pbxproj index 1896c66ace..d1bf9ec463 100644 --- a/Examples/Swift/Examples-CocoaPods.xcodeproj/project.pbxproj +++ b/Examples/Swift/Examples-CocoaPods.xcodeproj/project.pbxproj @@ -1153,6 +1153,90 @@ BuildIndependentTargetsInParallel = YES; LastUpgradeCheck = 1430; TargetAttributes = { + 027F5C80F4345CD80EAB6233 = { + ProvisioningStyle = automatic; + }; + 07F0B2B5FB6814EA0A1B6029 = { + ProvisioningStyle = automatic; + }; + 0FD7FC35072A5B75852D15F7 = { + ProvisioningStyle = automatic; + }; + 14E9710BA56D6EAB00F2DA59 = { + ProvisioningStyle = automatic; + }; + 177B908F6B162DDA447880C8 = { + ProvisioningStyle = automatic; + }; + 1A20DFCA0DF677F61651351C = { + ProvisioningStyle = automatic; + }; + 1EC637DDC1D4B0DE6047CE3E = { + ProvisioningStyle = automatic; + }; + 22E002F14DEB1A9EEED8770A = { + ProvisioningStyle = automatic; + }; + 284840096E199840E3A733BC = { + ProvisioningStyle = automatic; + }; + 4A34648A0491D5D28D9A7E8A = { + ProvisioningStyle = automatic; + }; + 4C0D10CC0FE319AC7EA1F7C0 = { + ProvisioningStyle = automatic; + }; + 5095A23CD3EF1F16B24C4A05 = { + ProvisioningStyle = automatic; + }; + 54D69C68B98BF08570048181 = { + ProvisioningStyle = automatic; + }; + 58D8FC3A892387206B011028 = { + ProvisioningStyle = automatic; + }; + 75C44F728211105AB0B11127 = { + ProvisioningStyle = automatic; + }; + 7A56C6610176F67086A05593 = { + ProvisioningStyle = automatic; + }; + A003570FDB24621EC4EA44CD = { + ProvisioningStyle = automatic; + }; + A0EF8DC5C1ED6288C32D3D23 = { + ProvisioningStyle = automatic; + }; + AEC0985F0919D277A2319D06 = { + ProvisioningStyle = automatic; + }; + BC720D0A2A3B555DF4D1268A = { + ProvisioningStyle = automatic; + }; + C160EA300423AABE590DA8FE = { + ProvisioningStyle = automatic; + }; + C9B0351FE4D92A64D979317E = { + ProvisioningStyle = automatic; + }; + D9673F6DE9F76C58BBFBB954 = { + ProvisioningStyle = automatic; + }; + DE748DA4577476A856A5455A = { + ProvisioningStyle = automatic; + }; + E4E9F3507C9F70F681E5417F = { + ProvisioningStyle = automatic; + }; + ED69FAABD993D057124C6B71 = { + ProvisioningStyle = automatic; + }; + F7627CCAD54F489968127C71 = { + ProvisioningStyle = automatic; + }; + FDA0A7B4C40914EAF405D9FC = { + ProvisioningStyle = automatic; + }; }; }; buildConfigurationList = 1D61EB4EA4EACDE551DB7D19 /* Build configuration list for PBXProject "Examples-CocoaPods" */; @@ -1830,6 +1914,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Analytics-visionOS"; @@ -1847,6 +1932,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCards-Custom-UI-visionOS"; @@ -1865,6 +1951,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -1883,6 +1970,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1905,6 +1993,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1928,6 +2017,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1948,6 +2038,7 @@ 19CD18E76E2084058B799792 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -1967,6 +2058,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -1985,6 +2077,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2006,6 +2099,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-visionOS"; @@ -2024,6 +2118,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2046,6 +2141,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2069,6 +2165,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2090,6 +2187,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2108,6 +2206,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessages-Custom-UI-visionOS"; @@ -2125,6 +2224,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-Customization-visionOS"; @@ -2141,6 +2241,7 @@ 3A99945F6AD5C26C141AE498 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2160,6 +2261,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2181,6 +2283,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-visionOS"; @@ -2199,6 +2302,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2221,6 +2325,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2244,6 +2349,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2266,6 +2372,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2288,6 +2395,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2308,6 +2416,7 @@ 7426535243345D9AC40B99FA /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2328,6 +2437,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2350,6 +2460,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2371,6 +2482,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-Customization-visionOS"; @@ -2388,6 +2500,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2405,6 +2518,7 @@ 830D38C1809836167165F50B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2423,6 +2537,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCardUI-Customization-visionOS"; @@ -2440,6 +2555,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.ContentCards-Custom-UI-visionOS"; @@ -2458,6 +2574,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2480,6 +2597,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Location-visionOS"; @@ -2498,6 +2616,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -2579,6 +2698,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-visionOS"; @@ -2597,6 +2717,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2619,6 +2740,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2642,6 +2764,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2665,6 +2788,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2688,6 +2812,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2709,6 +2834,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2728,6 +2854,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2750,6 +2877,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2772,6 +2900,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2794,6 +2923,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -2815,6 +2945,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-visionOS"; @@ -2832,6 +2963,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessages-Custom-UI-visionOS"; @@ -2849,6 +2981,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.InAppMessageUI-Customization-visionOS"; @@ -2867,6 +3000,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Location-visionOS"; @@ -2884,6 +3018,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = "com.braze.Analytics-visionOS"; @@ -2901,6 +3036,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -2977,6 +3113,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; PRODUCT_BUNDLE_IDENTIFIER = com.braze.PushNotifications; @@ -2995,6 +3132,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -3017,6 +3155,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -3040,6 +3179,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/Examples/Swift/Examples-Manual.xcodeproj/project.pbxproj b/Examples/Swift/Examples-Manual.xcodeproj/project.pbxproj index 315f1f3215..fead0a3985 100644 --- a/Examples/Swift/Examples-Manual.xcodeproj/project.pbxproj +++ b/Examples/Swift/Examples-Manual.xcodeproj/project.pbxproj @@ -817,6 +817,42 @@ BuildIndependentTargetsInParallel = YES; LastUpgradeCheck = 1430; TargetAttributes = { + 03B2052E558A71218BC22579 = { + ProvisioningStyle = automatic; + }; + 2D82CDF07E47504BAAA5B41F = { + ProvisioningStyle = automatic; + }; + 3424DE025B55C57D8D88CF98 = { + ProvisioningStyle = automatic; + }; + 4CF94578CDC41CCB2531C03E = { + ProvisioningStyle = automatic; + }; + 730CBD368DF92F037A30E1DB = { + ProvisioningStyle = automatic; + }; + 7A8A97B5756032F77C72A0FF = { + ProvisioningStyle = automatic; + }; + 7BC007CEA49315C4DA0291C9 = { + ProvisioningStyle = automatic; + }; + 8CE88AF5BE8687E1035552BA = { + ProvisioningStyle = automatic; + }; + 9271831B14E0049767FA3451 = { + ProvisioningStyle = automatic; + }; + 9844E2ECB2B13EACD3762C4C = { + ProvisioningStyle = automatic; + }; + ABDD889C9BD46680C87F8A70 = { + ProvisioningStyle = automatic; + }; + CC8373AC31E15FD5A870D3BB = { + ProvisioningStyle = automatic; + }; }; }; buildConfigurationList = E1DECCCD0247DE414EB92A53 /* Build configuration list for PBXProject "Examples-Manual" */; @@ -1138,6 +1174,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1161,6 +1198,7 @@ 086E04D720914C4631B4D126 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1186,6 +1224,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1213,6 +1252,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1238,6 +1278,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1261,6 +1302,7 @@ 21E085F47A614AA1DD021EB3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1287,6 +1329,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1312,6 +1355,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1338,6 +1382,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1363,6 +1408,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1388,6 +1434,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1413,6 +1460,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1438,6 +1486,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1463,6 +1512,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1489,6 +1539,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1514,6 +1565,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1538,6 +1590,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1565,6 +1618,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1590,6 +1644,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1738,6 +1793,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1763,6 +1819,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1789,6 +1846,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1815,6 +1873,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", @@ -1840,6 +1899,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"braze-swift-sdk-prebuilt/static\"", diff --git a/Examples/Swift/Examples-SwiftPM.xcodeproj/project.pbxproj b/Examples/Swift/Examples-SwiftPM.xcodeproj/project.pbxproj index 83d4232e80..451def1320 100644 --- a/Examples/Swift/Examples-SwiftPM.xcodeproj/project.pbxproj +++ b/Examples/Swift/Examples-SwiftPM.xcodeproj/project.pbxproj @@ -821,6 +821,42 @@ BuildIndependentTargetsInParallel = YES; LastUpgradeCheck = 1430; TargetAttributes = { + 0642C7DCDAD9AB0330096707 = { + ProvisioningStyle = automatic; + }; + 0A1211FC31CA5DD9A5E1D18E = { + ProvisioningStyle = automatic; + }; + 1BB9C370026C39B3DBE54065 = { + ProvisioningStyle = automatic; + }; + 59B8633A44EBC4A918E17FBF = { + ProvisioningStyle = automatic; + }; + 6F0145EB7E39FDE6D8D6FD4C = { + ProvisioningStyle = automatic; + }; + 842A3D91E0A246B872DA9846 = { + ProvisioningStyle = automatic; + }; + 908A74E9B2A6D8455EB2933D = { + ProvisioningStyle = automatic; + }; + BF81DFAFE8B8E3CB74955E60 = { + ProvisioningStyle = automatic; + }; + C20A5C88D2F5943F57B53CEE = { + ProvisioningStyle = automatic; + }; + C86DEA9CD6ED7E7E75358AD0 = { + ProvisioningStyle = automatic; + }; + E59DB4201FEAE1A212979375 = { + ProvisioningStyle = automatic; + }; + FA78BE27C24F0E569EC66970 = { + ProvisioningStyle = automatic; + }; }; }; buildConfigurationList = 121E4DAF0EB7FA3A0B03C3C0 /* Build configuration list for PBXProject "Examples-SwiftPM" */; @@ -1118,6 +1154,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1140,6 +1177,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1162,6 +1200,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1184,6 +1223,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1270,6 +1310,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1291,6 +1332,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1370,6 +1412,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1391,6 +1434,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/InAppMessageUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1413,6 +1457,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Automatic/PushNotifications-Automatic.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Automatic/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1434,6 +1479,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCards-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1456,6 +1502,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/Location/Location.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Location/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1477,6 +1524,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1496,6 +1544,7 @@ 9E13FBC998B0A5499C68208A /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1518,6 +1567,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/ContentCardUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1539,6 +1589,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1560,6 +1611,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1582,6 +1634,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = "Sources/PushNotifications-Manual/PushNotifications-Manual.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/PushNotifications-Manual/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1603,6 +1656,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessages-Custom-UI/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1623,6 +1677,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1644,6 +1699,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Sources/PushNotificationsContentExtension/PushNotificationsContentExtension.entitlements; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsContentExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1666,6 +1722,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/ContentCardUI/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1687,6 +1744,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/Analytics/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1706,6 +1764,7 @@ F83B82D7A7E5DB678B6196A6 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = Sources/PushNotificationsServiceExtension/Info.plist; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1728,6 +1787,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = automatic; INFOPLIST_FILE = "Sources/InAppMessageUI-Customization/Info.plist"; "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 14.0; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/Examples/Swift/Podfile b/Examples/Swift/Podfile index ae1658a940..7100d13cbe 100644 --- a/Examples/Swift/Podfile +++ b/Examples/Swift/Podfile @@ -157,6 +157,16 @@ target 'PushNotifications-Automatic-visionOS' do pod 'BrazeKit' end +target 'PushNotifications-DelayedInitialization-iOS' do + platform :ios, '12.0' + pod 'BrazeKit' +end + +target 'PushNotifications-DelayedInitialization-visionOS' do + platform :visionos, '1.0' + pod 'BrazeKit' +end + target 'PushNotificationsServiceExtension-iOS' do platform :ios, '12.0' pod 'BrazeNotificationService' diff --git a/Examples/Swift/Sources/PushNotifications-DelayedInitialization/AppDelegate.swift b/Examples/Swift/Sources/PushNotifications-DelayedInitialization/AppDelegate.swift new file mode 100644 index 0000000000..fff9633b36 --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications-DelayedInitialization/AppDelegate.swift @@ -0,0 +1,37 @@ +import BrazeKit +import UIKit +import UserNotifications + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + static var braze: Braze? = nil + + func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + // Prepare Braze for delayed initialization + // - This ensures that push notifications received before the SDK is initialized are processed + // during initialization. + Braze.prepareForDelayedInitialization() + + window?.makeKeyAndVisible() + return true + } + + static func initializeBraze() { + // Setup Braze + let configuration = Braze.Configuration(apiKey: brazeApiKey, endpoint: brazeEndpoint) + configuration.logger.level = .info + configuration.push.appGroup = "group.com.braze.PushNotifications.PushStories" + + // Enable all push notification automation features (default: disabled) + // - Using `Braze.prepareForDelayedInitialization()` implicitly enables push automation. + // - Specific properties of the automation configuration can be customized for initialization. + configuration.push.automation = true + + let braze = Braze(configuration: configuration) + AppDelegate.braze = braze + } +} diff --git a/Examples/Swift/Sources/PushNotifications-DelayedInitialization/Readme.swift b/Examples/Swift/Sources/PushNotifications-DelayedInitialization/Readme.swift new file mode 100644 index 0000000000..a4b922250d --- /dev/null +++ b/Examples/Swift/Sources/PushNotifications-DelayedInitialization/Readme.swift @@ -0,0 +1,35 @@ +let readme = + """ + This sample presents a complete push notification integration allowing the SDK to be initialized asynchronously. This is an extension of the PushNotifications-Automatic sample application. + + - PushNotifications/AppDelegate.swift: + - Delayed SDK initialization support + - Automatic push support via SDK configuration + + - PushNotificationsServiceExtension: + - Rich push notification support (image, GIF, audio, video) + + - PushNotificationsContentExtension: + - Braze Push Story implementation + """ + +let actions: [(String, String, (ReadmeViewController) -> Void)] = [ + ( + "Initialize Braze", + "", + initializeBraze + ) +] + +// MARK: - Internal + +func initializeBraze(_ viewController: ReadmeViewController) { + AppDelegate.initializeBraze() + + // Disable cell + for cell in viewController.tableView.visibleCells { + cell.isUserInteractionEnabled = false + cell.textLabel?.textColor = .systemGray + cell.detailTextLabel?.textColor = .systemGray + } +} diff --git a/Examples/Swift/Sources/PushNotifications/Info.plist b/Examples/Swift/Sources/PushNotifications/Info.plist deleted file mode 100644 index d7f8ec8ca2..0000000000 --- a/Examples/Swift/Sources/PushNotifications/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - 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/Swift/Sources/PushNotifications/PushNotifications.entitlements b/Examples/Swift/Sources/PushNotifications/PushNotifications.entitlements deleted file mode 100644 index 9cad402b51..0000000000 --- a/Examples/Swift/Sources/PushNotifications/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/manual-integration-setup.sh b/Examples/Swift/manual-integration-setup.sh index ecf601daad..eaf0f266d1 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/9.1.0/braze-swift-sdk-prebuilt.zip" +url="https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/braze-swift-sdk-prebuilt.zip" echo "→" "Cleaning up" rm -rf braze-swift-sdk-prebuilt diff --git a/Package.swift b/Package.swift index ed7e53349d..7419d71030 100644 --- a/Package.swift +++ b/Package.swift @@ -49,8 +49,8 @@ let package = Package( targets: [ .binaryTarget( name: "BrazeKit", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.1.0/BrazeKit.zip", - checksum: "693c8d5f940e8d68702910ccaec73cf4749f55b336cb9f5dd4b4d4364df168f8" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazeKit.zip", + checksum: "5ed56654230300f344fd9984931ec9ce973c47fc8f534787ed20ef28a3024eb2" ), .target( name: "BrazeKitResources", @@ -67,8 +67,8 @@ let package = Package( ), .binaryTarget( name: "BrazeLocation", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.1.0/BrazeLocation.zip", - checksum: "bfa13cd2b38dba7824377979c74fda8d08b10cb33f09aaad8a0617c620c3493e" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazeLocation.zip", + checksum: "17b43c37ff2c8cf1eef15df12c771cb12b4f901943a8045073be425da8b9bf58" ), .target( name: "BrazeLocationResources", @@ -78,13 +78,13 @@ let package = Package( ), .binaryTarget( name: "BrazeNotificationService", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.1.0/BrazeNotificationService.zip", - checksum: "c4648f53a3f8dd273304d7cdb6e6d2cecc8c9dc494d7b321508deb7bea5e884b" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazeNotificationService.zip", + checksum: "a816612048715dc2d6ba23a16dc274fed06a7ad12dcd49a97b5f1013978f5da7" ), .binaryTarget( name: "BrazePushStory", - url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.1.0/BrazePushStory.zip", - checksum: "5bf7915057a01c2f7087cc0ef5a1adcb36310366759927a19144be0a645625e0" + url: "https://github.com/braze-inc/braze-swift-sdk/releases/download/9.2.0/BrazePushStory.zip", + checksum: "de60b3324133b1664c5d152634e7ddcc41b36f187b400b205f209e7491d3fb17" ), .target( name: "BrazePushStoryResources", diff --git a/README.md b/README.md index 9be9ed3a51..5e973cfbfa 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

- Version: 9.1.0 + Version: 9.2.0