Skip to content

Commit

Permalink
Updating Braze SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Feb 8, 2024
1 parent cbc7621 commit 2afdd54
Show file tree
Hide file tree
Showing 26 changed files with 333 additions and 249 deletions.
4 changes: 2 additions & 2 deletions Appboy-Push-Story.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = "Appboy-Push-Story"
s.version = "4.6.0"
s.version = "4.7.0"
s.summary = "This is the Braze Push Story SDK for Mobile Marketing Automation"
s.homepage = "http://www.braze.com"
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}
s.author = { "Appboy" => "http://www.braze.com" }
s.source = { :http => "https://github.com/Appboy/appboy-ios-sdk/releases/download/#{s.version.to_s}/AppboyPushStory.zip" }
s.platform = :ios
s.ios.deployment_target = '10.0'
s.ios.deployment_target = '11.0'
s.requires_arc = true
s.documentation_url = 'https://www.braze.com/docs'
s.vendored_frameworks = 'AppboyPushStory/AppboyPushStory.xcframework'
Expand Down
12 changes: 6 additions & 6 deletions Appboy-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = "Appboy-iOS-SDK"
s.version = "4.6.0"
s.version = "4.7.0"
s.summary = "This is the Braze iOS SDK for Mobile Marketing Automation"
s.homepage = "http://www.braze.com"
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}
s.author = { "Appboy" => "http://www.braze.com" }
s.source = { :http => "https://github.com/Appboy/appboy-ios-sdk/releases/download/#{s.version.to_s}/Appboy_iOS_SDK.zip" }
s.platform = :ios
s.ios.deployment_target = '9.0'
s.ios.deployment_target = '11.0'
s.requires_arc = true
s.documentation_url = 'https://www.braze.com/docs'
s.exclude_files = 'AppboyKit/**/*.txt'
Expand All @@ -20,7 +20,7 @@ Pod::Spec.new do |s|
sc.ios.library = 'z'
sc.frameworks = 'SystemConfiguration', 'QuartzCore', 'CoreText', 'WebKit'
sc.source_files = 'AppboyKit/include/*.h', 'AppboyKit/ABKModalWebViewController.m', 'AppboyKit/ABKNoConnectionLocalization.m', 'AppboyKit/ABKLocationManagerProvider.m'
sc.resource_bundle = { 'Appboy' => ['AppboyKit/Appboy.bundle/*.{lproj,txt}'] }
sc.resource_bundle = { 'Appboy' => ['AppboyKit/Appboy.bundle/*.{lproj,txt,xcprivacy}'] }
sc.vendored_framework = 'AppboyKit/AppboyKitLibrary.xcframework'
sc.weak_framework = 'CoreTelephony', 'UserNotifications'
end
Expand All @@ -36,20 +36,20 @@ Pod::Spec.new do |s|
snf.source_files = 'AppboyUI/ABKNewsFeed/*.*', 'AppboyUI/ABKNewsFeed/ViewControllers/**/*.*', 'AppboyUI/ABKUIUtils/**/*.*', 'AppboyKit/ABKSDWebImageProxy.m'
snf.resource_bundle = { 'AppboyUI.NewsFeed' => 'AppboyUI/ABKNewsFeed/Resources/**/*.*' }
snf.dependency 'Appboy-iOS-SDK/Core'
snf.dependency 'SDWebImage', '>= 5.8.2', '< 6'
snf.dependency 'SDWebImage', '>= 5.18.7', '< 6'
end

s.subspec 'InAppMessage' do |siam|
siam.source_files = 'AppboyUI/ABKUIUtils/**/*.*', 'AppboyUI/ABKInAppMessage/*.*', 'AppboyUI/ABKInAppMessage/ViewControllers/*.*', 'AppboyKit/ABKSDWebImageProxy.m'
siam.resource_bundle = { 'AppboyUI.InAppMessage' => 'AppboyUI/ABKInAppMessage/Resources/*.*' }
siam.dependency 'Appboy-iOS-SDK/Core'
siam.dependency 'SDWebImage', '>= 5.8.2', '< 6'
siam.dependency 'SDWebImage', '>= 5.18.7', '< 6'
end

s.subspec 'ContentCards' do |scc|
scc.source_files = 'AppboyUI/ABKContentCards/*.*', 'AppboyUI/ABKContentCards/ViewControllers/**/*.*', 'AppboyUI/ABKUIUtils/**/*.*', 'AppboyKit/ABKSDWebImageProxy.m'
scc.resource_bundle = { 'AppboyUI.ContentCards' => 'AppboyUI/ABKContentCards/Resources/**/*.*' }
scc.dependency 'Appboy-iOS-SDK/Core'
scc.dependency 'SDWebImage', '>= 5.8.2', '< 6'
scc.dependency 'SDWebImage', '>= 5.18.7', '< 6'
end
end
4 changes: 2 additions & 2 deletions Appboy-tvOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = "Appboy-tvOS-SDK"
s.version = "4.6.0"
s.version = "4.7.0"
s.summary = "This is the Braze tvOS SDK for Mobile Marketing Automation"
s.homepage = "http://www.braze.com"
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}
s.author = { "Appboy" => "http://www.braze.com" }
s.source = { :git => 'https://github.com/Appboy/appboy-ios-sdk.git', :tag => s.version.to_s}
s.platform = :tvos
s.tvos.deployment_target = 9.0
s.tvos.deployment_target = 11.0
s.requires_arc = true
s.documentation_url = 'https://www.braze.com/docs'
s.tvos.frameworks = 'SystemConfiguration'
Expand Down
Binary file modified Appboy-tvOS-SDK/AppboyTVOSKit.framework/AppboyTVOSKit
Binary file not shown.
4 changes: 2 additions & 2 deletions Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/Appboy.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#import "ABKSdkMetadata.h"

#ifndef APPBOY_SDK_VERSION
#define APPBOY_SDK_VERSION @"4.6.0"
#define APPBOY_SDK_VERSION @"4.7.0"
#endif

#if !TARGET_OS_TV
Expand Down Expand Up @@ -435,7 +435,7 @@ typedef NS_ENUM(NSInteger, ABKChannel) {
* @param userId The new user's ID (from the host application)
* @param signature The SDK Authentication signature for the user being identified.
*
* @discussion See documantation for `changeUser:` above
* @discussion See documantation for `changeUser:` above
*/
- (void)changeUser:(NSString *)userId sdkAuthSignature:(nullable NSString *)signature;

Expand Down
100 changes: 100 additions & 0 deletions AppboyKit/Appboy.bundle/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
</array>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePreciseLocation</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeCoarseLocation</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
</dict>
</plist>
Binary file modified AppboyKit/Appboy.bundle/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/_CodeSignature/CodeRequirements-1
Binary file not shown.
15 changes: 15 additions & 0 deletions AppboyKit/Appboy.bundle/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<dict>
<key>files</key>
<dict>
<key>PrivacyInfo.xcprivacy</key>
<data>
35537WDlOfHuEOldTrUa7OmzNwQ=
</data>
<key>ZipArchive_LICENSE.txt</key>
<data>
JbmSdiuxe/Zs/esUY7pUvV4byF4=
Expand Down Expand Up @@ -348,6 +352,17 @@
</dict>
<key>files2</key>
<dict>
<key>PrivacyInfo.xcprivacy</key>
<dict>
<key>hash</key>
<data>
35537WDlOfHuEOldTrUa7OmzNwQ=
</data>
<key>hash2</key>
<data>
vz81m6KH2HKZHoLSODBrzGNp/+lfzoLblqWy7rtuvpI=
</data>
</dict>
<key>ZipArchive_LICENSE.txt</key>
<dict>
<key>hash</key>
Expand Down
Binary file modified AppboyKit/Appboy.bundle/_CodeSignature/CodeSignature
Binary file not shown.
4 changes: 2 additions & 2 deletions AppboyKit/include/Appboy.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#import "ABKSdkMetadata.h"

#ifndef APPBOY_SDK_VERSION
#define APPBOY_SDK_VERSION @"4.6.0"
#define APPBOY_SDK_VERSION @"4.7.0"
#endif

#if !TARGET_OS_TV
Expand Down Expand Up @@ -435,7 +435,7 @@ typedef NS_ENUM(NSInteger, ABKChannel) {
* @param userId The new user's ID (from the host application)
* @param signature The SDK Authentication signature for the user being identified.
*
* @discussion See documantation for `changeUser:` above
* @discussion See documantation for `changeUser:` above
*/
- (void)changeUser:(NSString *)userId sdkAuthSignature:(nullable NSString *)signature;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ - (void)loadView {
[attributedStringHeader addAttribute:NSParagraphStyleAttributeName
value:headerStyle
range:NSMakeRange(0, ((ABKInAppMessageImmersive *)self.inAppMessage).header.length)];
self.inAppMessageMessageLabel.attributedText = attributedStringHeader;
self.inAppMessageHeaderLabel.attributedText = attributedStringHeader;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ - (void)loadView {
[attributedStringHeader addAttribute:NSParagraphStyleAttributeName
value:headerStyle
range:NSMakeRange(0, ((ABKInAppMessageImmersive *)self.inAppMessage).header.length)];
self.inAppMessageMessageLabel.attributedText = attributedStringHeader;
self.inAppMessageHeaderLabel.attributedText = attributedStringHeader;
}
}
}
Expand Down
19 changes: 16 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#### ⚠️ The New Braze [Swift SDK](https://github.com/braze-inc/braze-swift-sdk) is now available!
#### ⚠️ The New Braze [Swift SDK](https://github.com/braze-inc/braze-swift-sdk) is now available!

## 4.7.0

#### Breaking
- Updates the minimum required version of SDWebImage from 5.8.2 to [5.18.7](https://github.com/SDWebImage/SDWebImage/releases/tag/5.18.7).
- This version includes the privacy manifest for SDWebImage, which appears on the [privacy-impacting SDKs list](https://developer.apple.com/support/third-party-SDK-requirements/).

#### Added
- Adds the privacy manifest to describe data usage collected by Braze. For more details, refer to the [Apple documentation on privacy manifests](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files).
- Adds code signatures to all XCFrameworks in the Braze iOS SDK, signed by `Braze, Inc.`.

##### Fixed
- Fixes an issue in Full or Modal in-app messages where the header text would be duplicated in place of the body text under certain conditions.

## 4.6.0

Expand Down Expand Up @@ -69,7 +82,7 @@ This release requires Xcode `14.x`.
- Fixes an issue introduced in `4.3.2` and limited to users of `Appboy-tvOS-SDK`, which prevented custom events with properties or purchases with properties from being logged.
##### Added
- Adds a `padding` property to `ABKCaptionedImageContentCardCell` to support modifying the default value.
- Adds a `padding` property to `ABKCaptionedImageContentCardCell` to support modifying the default value.
## 4.4.2
Expand Down Expand Up @@ -159,7 +172,7 @@ This release requires Xcode 13.
- Deprecates `ABKInAppMessageController`'s method `displayNextInAppMessageWithDelegate:` in favor of `displayNextInAppMessage`.
##### Added
- Custom events and purchases now support nested properties.
- Custom events and purchases now support nested properties.
- In addition to integers, floats, booleans, dates, or strings, a JSON object can be provided containing dictionaries of arrays or nested dictionaries. All properties combined can be up to 50 KB in total length.
## 4.3.0
Expand Down
10 changes: 5 additions & 5 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
source 'https://cdn.cocoapods.org/'

target :Stopwatch do
platform :ios, '9.0'
platform :ios, '11.0'
pod 'Appboy-iOS-SDK'
pod 'KKColorListPicker', :git => 'https://github.com/leoru/KKColorListPicker.git', :inhibit_warnings => true
pod 'Branch'
end

target :tvOS_Stopwatch do
platform :tvos, '9.0'
platform :tvos, '11.0'
pod 'Appboy-tvOS-SDK'
end

target :tvOS_TVML_Stopwatch do
platform :tvos, '9.0'
platform :tvos, '11.0'
pod 'Appboy-tvOS-SDK'
end

target :StopwatchNotificationContentExtension do
platform :ios, '10.0'
platform :ios, '11.0'
pod 'Appboy-Push-Story'
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
Loading

0 comments on commit 2afdd54

Please sign in to comment.