Skip to content

Commit 26f8ca6

Browse files
committed
Updating Braze SDK
1 parent 4c5fa9b commit 26f8ca6

File tree

25 files changed

+128
-27
lines changed

25 files changed

+128
-27
lines changed

Appboy-iOS-SDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Appboy-iOS-SDK"
3-
s.version = "4.4.3"
3+
s.version = "4.4.4"
44
s.summary = "This is the Braze iOS SDK for Mobile Marketing Automation"
55
s.homepage = "http://www.braze.com"
66
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}

Appboy-tvOS-SDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Appboy-tvOS-SDK"
3-
s.version = "4.4.3"
3+
s.version = "4.4.4"
44
s.summary = "This is the Braze tvOS SDK for Mobile Marketing Automation"
55
s.homepage = "http://www.braze.com"
66
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}
215 KB
Binary file not shown.

Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKBannerCard.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ NS_ASSUME_NONNULL_BEGIN
1818
@property (copy, nullable) NSString *domain;
1919

2020
/*
21-
* This property is the aspect ratio of the card's image.
21+
* This property is the aspect ratio of the card's image. It is meant to serve as a hint before
22+
* image loading completes. Note that the property may not be supplied in certain circumstances.
2223
*/
2324
@property float imageAspectRatio;
2425

Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKBannerContentCard.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
@property (copy) NSString *image;
99

1010
/*
11-
* This property is the aspect ratio of the card's image.
11+
* This property is the aspect ratio of the card's image. It is meant to serve as a hint before
12+
* image loading completes. Note that the property may not be supplied in certain circumstances.
1213
*/
1314
@property float imageAspectRatio;
1415

Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKCaptionedImageCard.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ NS_ASSUME_NONNULL_BEGIN
1212
@property (copy) NSString *image;
1313

1414
/*
15-
* This property is the aspect ratio of the card's image.
15+
* This property is the aspect ratio of the card's image. It is meant to serve as a hint before
16+
* image loading completes. Note that the property may not be supplied in certain circumstances.
1617
*/
1718
@property float imageAspectRatio;
1819

Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKCaptionedImageContentCard.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ NS_ASSUME_NONNULL_BEGIN
99
@property (copy) NSString *image;
1010

1111
/*
12-
* This property is the aspect ratio of the card's image.
12+
* This property is the aspect ratio of the card's image. It is meant to serve as a hint before
13+
* image loading completes. Note that the property may not be supplied in certain circumstances.
1314
*/
1415
@property float imageAspectRatio;
1516

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*!
2+
* Enum representing the accepted SDK Metatadata.
3+
* See addSdkMetadata for more details.
4+
*/
5+
typedef NSString *ABKSdkMetadata NS_TYPED_EXTENSIBLE_ENUM;
6+
extern ABKSdkMetadata const ABKSdkMetadataAdjust;
7+
extern ABKSdkMetadata const ABKSdkMetadataAirBridge;
8+
extern ABKSdkMetadata const ABKSdkMetadataAppsFlyer;
9+
extern ABKSdkMetadata const ABKSdkMetadataBluedot;
10+
extern ABKSdkMetadata const ABKSdkMetadataBranch;
11+
extern ABKSdkMetadata const ABKSdkMetadataCordova;
12+
extern ABKSdkMetadata const ABKSdkMetadataCarthage;
13+
extern ABKSdkMetadata const ABKSdkMetadataCocoaPods;
14+
extern ABKSdkMetadata const ABKSdkMetadataCordovaPM;
15+
extern ABKSdkMetadata const ABKSdkMetadataExpo;
16+
extern ABKSdkMetadata const ABKSdkMetadataFoursquare;
17+
extern ABKSdkMetadata const ABKSdkMetadataFlutter;
18+
extern ABKSdkMetadata const ABKSdkMetadataGoogleTagManager;
19+
extern ABKSdkMetadata const ABKSdkMetadataGimbal;
20+
extern ABKSdkMetadata const ABKSdkMetadataGraddle;
21+
extern ABKSdkMetadata const ABKSdkMetadataIonic;
22+
extern ABKSdkMetadata const ABKSdkMetadataKochava;
23+
extern ABKSdkMetadata const ABKSdkMetadataManual;
24+
extern ABKSdkMetadata const ABKSdkMetadataMParticle;
25+
extern ABKSdkMetadata const ABKSdkMetadataNativeScript;
26+
extern ABKSdkMetadata const ABKSdkMetadataNPM;
27+
extern ABKSdkMetadata const ABKSdkMetadataNuGet;
28+
extern ABKSdkMetadata const ABKSdkMetadataPub;
29+
extern ABKSdkMetadata const ABKSdkMetadataRadar;
30+
extern ABKSdkMetadata const ABKSdkMetadataReactNative;
31+
extern ABKSdkMetadata const ABKSdkMetadataSegment;
32+
extern ABKSdkMetadata const ABKSdkMetadataSingular;
33+
extern ABKSdkMetadata const ABKSdkMetadataSwiftPM;
34+
extern ABKSdkMetadata const ABKSdkMetadataTealium;
35+
extern ABKSdkMetadata const ABKSdkMetadataUnreal;
36+
extern ABKSdkMetadata const ABKSdkMetadataUnityPM;
37+
extern ABKSdkMetadata const ABKSdkMetadataUnity;
38+
extern ABKSdkMetadata const ABKSdkMetadataVizbee;
39+
extern ABKSdkMetadata const ABKSdkMetadataXamarin;

Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKUser.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,22 @@ typedef NS_ENUM(NSInteger, ABKNotificationSubscriptionType) {
153153
*/
154154
- (BOOL)setPushNotificationSubscriptionType:(ABKNotificationSubscriptionType)pushNotificationSubscriptionType;
155155

156+
/*!
157+
* Adds the user to a Subscription Group.
158+
*
159+
* @param groupId The string UUID corresponding to the subscription group, provided by the Braze dashboard.
160+
* @return YES if the user was successfully added, else NO. If not, the groupId might have been nil or invalid.
161+
*/
162+
- (BOOL)addToSubscriptionGroupWithGroupId:(NSString *)groupId;
163+
164+
/*!
165+
* Removes the user from a Subscription Group.
166+
*
167+
* @param groupId The string UUID corresponding to the subscription group, provided by the Braze dashboard.
168+
* @return YES if the user was successfully removed, else NO. If not, the groupId might have been nil or invalid.
169+
*/
170+
- (BOOL)removeFromSubscriptionGroupWithGroupId:(NSString *)groupId;
171+
156172
/*!
157173
* @param key The String name of the custom user attribute
158174
* @param value A boolean value to set as a custom attribute

Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/Appboy.h

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
#import <UIKit/UIKit.h>
1313
#import <UserNotifications/UserNotifications.h>
1414

15+
#import "ABKSdkMetadata.h"
16+
1517
#ifndef APPBOY_SDK_VERSION
16-
#define APPBOY_SDK_VERSION @"4.3.2"
18+
#define APPBOY_SDK_VERSION @"4.4.4"
1719
#endif
1820

1921
#if !TARGET_OS_TV
@@ -152,13 +154,24 @@ extern NSString *const ABKDeviceAllowlistKey;
152154
*/
153155
extern NSString *const ABKDeviceWhitelistKey __deprecated_msg("ABKDeviceWhitelistKey is deprecated. Please use ABKDeviceAllowlistKey instead.");
154156

157+
extern NSString *const ABKEphemeralEventsKey;
158+
155159
/*!
156160
* This key can be set to a string value representing the app group name for the Push Story Notification
157161
* Content extension. This is required for the SDK to fetch data from and handle user interactions
158162
* with the Push Story app extension.
159163
*/
160164
extern NSString *const ABKPushStoryAppGroupKey;
161165

166+
/*!
167+
* This key can be set to an integer value to specify the level of the log statements output by the Braze SDK.
168+
*
169+
* The default log level is 8 and will minimally log info. To enable verbose logging for debugging, use log level 0.
170+
*
171+
* This selection will override any LogLevel value set in the Info.plist.
172+
*/
173+
extern NSString *const ABKLogLevelKey;
174+
162175
/* ------------------------------------------------------------------------------------------------------
163176
* Enums
164177
*/
@@ -268,8 +281,7 @@ typedef NS_ENUM(NSInteger, ABKChannel) {
268281
* @param apiKey The app's API key
269282
* @param application The current app
270283
* @param launchOptions The options NSDictionary that you get from application:didFinishLaunchingWithOptions
271-
* @param appboyOptions An optional NSDictionary with startup configuration values for Braze. This currently supports
272-
* ABKRequestProcessingPolicyOptionKey, ABKSocialAccountAcquisitionPolicyOptionKey and ABKFlushIntervalOptionKey. See below
284+
* @param appboyOptions An optional NSDictionary with startup configuration values for Braze. See below
273285
* for more information.
274286
*
275287
* @discussion Starts up Braze and tells it that your app is done launching. You should call this
@@ -378,7 +390,8 @@ typedef NS_ENUM(NSInteger, ABKChannel) {
378390
* @param userId The new user's ID (from the host application).
379391
*
380392
* @discussion
381-
* This method changes the user's ID.
393+
* This method changes the user's ID. These user IDs should be private and not easily obtained (e.g. not a plain
394+
* email address or username).
382395
*
383396
* When you first start using Braze on a device, the user is considered "anonymous". You can use this method to
384397
* optionally identify a user with a unique ID, which enables the following:
@@ -630,6 +643,15 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
630643

631644
#endif
632645

646+
/*!
647+
* Adds SDK Metadata values to those automatically collected by the SDK.
648+
*
649+
* Metadata tell Braze how the SDK is integrated (e.g. wrapper, package manager, etc.)
650+
*
651+
* @param metadata The metadata values reflecting the current SDK integration.
652+
*/
653+
- (void)addSdkMetadata:(NSArray<ABKSdkMetadata> *)metadata;
654+
633655
/* ------------------------------------------------------------------------------------------------------
634656
* Data processing configuration methods.
635657
*/

0 commit comments

Comments
 (0)