Skip to content

Commit

Permalink
Updating Braze SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Sep 16, 2020
1 parent 5dd1d30 commit b5cc6d7
Show file tree
Hide file tree
Showing 36 changed files with 204 additions and 289 deletions.
5 changes: 4 additions & 1 deletion Appboy-Push-Story.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-Push-Story"
s.version = "3.22.0"
s.version = "3.27.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'}
Expand All @@ -12,4 +12,7 @@ Pod::Spec.new do |s|
s.documentation_url = 'https://www.braze.com/docs'
s.preserve_paths = 'Appboy-Push-Story/AppboyPushStory.framework'
s.vendored_frameworks = 'Appboy-Push-Story/AppboyPushStory.framework'

# Skip this architecture to pass Pod validation since we removed the `arm64` simulator ARCH in order to use lipo later
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
end
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Appboy-Push-Story/AppboyPushStory.framework/AppboyPushStory
Binary file not shown.
Binary file modified Appboy-Push-Story/AppboyPushStory.framework/Info.plist
Binary file not shown.
18 changes: 13 additions & 5 deletions Appboy-iOS-SDK.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-iOS-SDK"
s.version = "3.26.1"
s.version = "3.27.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'}
Expand All @@ -12,9 +12,17 @@ Pod::Spec.new do |s|
s.documentation_url = 'https://www.braze.com/docs'
s.exclude_files = 'AppboyKit/**/*.txt'
s.preserve_paths = 'AppboyKit/**/*.*'
s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
s.default_subspec = 'UI'

s.pod_target_xcconfig = {
'OTHER_LDFLAGS' => '-ObjC',

# Skip this architecture to pass Pod validation since we removed the `arm64` simulator ARCH in order to use lipo later
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
# Same reason as above
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.subspec 'Core' do |sc|
sc.ios.library = 'z'
sc.frameworks = 'SystemConfiguration', 'QuartzCore', 'CoreText', 'WebKit'
Expand All @@ -35,20 +43,20 @@ Pod::Spec.new do |s|
snf.source_files = 'AppboyUI/ABKNewsFeed/*.*', 'AppboyUI/ABKNewsFeed/ViewControllers/**/*.*', 'AppboyUI/ABKUIUtils/**/*.*', 'AppboyKit/ABKSDWebImageProxy.m'
snf.resource = 'AppboyUI/ABKNewsFeed/Resources/**/*.*'
snf.dependency 'Appboy-iOS-SDK/Core'
snf.dependency 'SDWebImage', '~>5.0'
snf.dependency 'SDWebImage', '~>5.8.2'
end

s.subspec 'InAppMessage' do |siam|
siam.source_files = 'AppboyUI/ABKUIUtils/**/*.*', 'AppboyUI/ABKInAppMessage/*.*', 'AppboyUI/ABKInAppMessage/ViewControllers/*.*', 'AppboyKit/ABKSDWebImageProxy.m'
siam.resource = 'AppboyUI/ABKInAppMessage/Resources/*.*'
siam.dependency 'Appboy-iOS-SDK/Core'
siam.dependency 'SDWebImage', '~>5.0'
siam.dependency 'SDWebImage', '~>5.8.2'
end

s.subspec 'ContentCards' do |scc|
scc.source_files = 'AppboyUI/ABKContentCards/*.*', 'AppboyUI/ABKContentCards/ViewControllers/**/*.*', 'AppboyUI/ABKUIUtils/**/*.*', 'AppboyKit/ABKSDWebImageProxy.m'
scc.resource = 'AppboyUI/ABKContentCards/Resources/**/*.*'
scc.dependency 'Appboy-iOS-SDK/Core'
scc.dependency 'SDWebImage', '~>5.0'
scc.dependency 'SDWebImage', '~>5.8.2'
end
end
5 changes: 4 additions & 1 deletion Appboy-tvOS-SDK.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-tvOS-SDK"
s.version = "3.21.0"
s.version = "3.27.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'}
Expand All @@ -14,4 +14,7 @@ Pod::Spec.new do |s|
s.tvos.weak_framework = 'AdSupport', 'StoreKit'
s.preserve_paths = 'Appboy-tvOS-SDK/AppboyTVOSKit.framework'
s.vendored_frameworks = 'Appboy-tvOS-SDK/AppboyTVOSKit.framework'

# Skip this architecture to pass Pod validation since we removed the `arm64` simulator ARCH in order to use lipo later
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
end
Binary file modified Appboy-tvOS-SDK/AppboyTVOSKit.framework/AppboyTVOSKit
Binary file not shown.
10 changes: 7 additions & 3 deletions Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKContentCard.h
Expand Up @@ -7,8 +7,8 @@ NS_ASSUME_NONNULL_BEGIN
@interface ABKContentCard : NSObject <NSCopying, NSCoding>

/*!
* Card's ID.
*/
* Card's ID.
*/
@property (readonly) NSString *idString;

/*!
Expand Down Expand Up @@ -53,6 +53,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nullable) NSDictionary *extras;

/*!
* This property is set to YES if the instance represents a test content card
*/
@property (nonatomic, readonly) BOOL isTest;

/*!
* The URL string that will be opened after the card is clicked on.
*/
Expand Down Expand Up @@ -89,7 +94,6 @@ NS_ASSUME_NONNULL_BEGIN
/*!
* Manually log a click to Braze for the card.
* This should only be used for custom contentcard view controllers.
* The SDK will only log a card click when the card has the url property with a valid url.
*/
- (void)logContentCardClicked;

Expand Down

This file was deleted.

30 changes: 0 additions & 30 deletions Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKFeedback.h

This file was deleted.

23 changes: 0 additions & 23 deletions Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/ABKIDFADelegate.h

This file was deleted.

28 changes: 25 additions & 3 deletions Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/Appboy.h
Expand Up @@ -13,7 +13,7 @@
#import <UserNotifications/UserNotifications.h>

#ifndef APPBOY_SDK_VERSION
#define APPBOY_SDK_VERSION @"3.21.0"
#define APPBOY_SDK_VERSION @"3.27.0"
#endif

#if !TARGET_OS_TV
Expand Down Expand Up @@ -59,13 +59,19 @@ extern NSString *const ABKFlushIntervalOptionKey;
extern NSString *const ABKEnableAutomaticLocationCollectionKey;

/*!
* This key can be set to YES or NO and will configure whether goefences are enabled.
* This key can be set to YES or NO and will configure whether geofences are enabled.
* If set to YES, geofences will be enabled.
* If set to NO, geofences will be disabled.
* If the field is omitted, we will use the value of ABKEnableAutomaticLocationCollectionKey.
*/
extern NSString *const ABKEnableGeofencesKey;

/*!
* This key can be set to YES or NO and will configure whether geofence requests are made automatically.
* If set to YES, geofence requests will not be made automatically.
* If set to NO, geofence requests will be made automatically. This is the default value when you have geofences enabled.
*/
extern NSString *const ABKDisableAutomaticGeofenceRequestsKey;

/*!
* This key can be set to an instance of a class that extends ABKIDFADelegate, which can be used to pass advertiser tracking information to to Braze.
Expand All @@ -87,6 +93,14 @@ extern NSString *const ABKURLDelegateKey;
*/
extern NSString *const ABKInAppMessageControllerDelegateKey;

/*!
* This key can be set YES or NO and will configure whether a modal in-app message will be dismissed when the user clicks
* outside of the in-app message.
* If set to YES, the in-app message will be dismissed.
* If set to NO, the in-app message will not be dismissed. This is the default value.
*/
extern NSString *const ABKEnableDismissModalOnOutsideTapKey;

/*!
* Set the time interval for session time out (in seconds). This will affect the case when user has a session shorter than
* the set time interval. In that case, the session won't be close even though the user closed the app, but will continue until
Expand All @@ -96,7 +110,7 @@ extern NSString *const ABKSessionTimeoutKey;

/*!
* Set the minimum time interval in seconds between triggers. After a trigger happens, we will ignore any triggers until
* the minimum time interval elapses. The default value is 30s.
* the minimum time interval elapses. The default value is 30s. The minimum valid value is 0s.
*/
extern NSString *const ABKMinimumTriggerTimeIntervalKey;

Expand Down Expand Up @@ -169,6 +183,9 @@ typedef NS_OPTIONS(NSUInteger, ABKDeviceOptions) {
ABKDeviceOptionLocale = (1 << 2),
ABKDeviceOptionModel = (1 << 3),
ABKDeviceOptionOSVersion = (1 << 4),
// Note: The ABKDeviceOptionIDFV whitelist key currently has no effect.
// IDFV is read regardless of whitelist settings due to its
// role as the primary device identifier within the Braze system.
ABKDeviceOptionIDFV = (1 << 5),
ABKDeviceOptionIDFA = (1 << 6),
ABKDeviceOptionPushEnabled = (1 << 7),
Expand Down Expand Up @@ -460,6 +477,11 @@ typedef NS_OPTIONS(NSUInteger, ABKDeviceOptions) {
*/
- (void)requestContentCardsRefresh;

/*!
* Manually request geofences with a specific location.
*/
- (void)requestGeofencesWithLongitude:(double)longitude latitude:(double)latitude;

/*!
* Get the device ID - the IDFV - which will reset if all apps for a given vendor are removed from the device.
*
Expand Down
5 changes: 2 additions & 3 deletions Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/AppboyKit.h
Expand Up @@ -26,12 +26,12 @@
#import "ABKInAppMessageFull.h"
#import "ABKInAppMessageHTML.h"
#import "ABKInAppMessageHTMLFull.h"
#import "ABKInAppMessageHTMLBase.h"
#import "ABKInAppMessageControl.h"
#import "ABKInAppMessageControllerDelegate.h"
#import "ABKInAppMessageController.h"
#import "ABKInAppMessageButton.h"
#import "ABKInAppMessageHTMLJSBridge.h"
#import "ABKInAppMessageHTMLJSInterface.h"
#import "ABKInAppMessageWebViewBridge.h"
#import "ABKInAppMessageUIControlling.h"
#import "ABKInAppMessageDarkTheme.h"
#import "ABKInAppMessageDarkButtonTheme.h"
Expand All @@ -43,7 +43,6 @@
#import "ABKContentCardsController.h"

// IDFA
#import "ABKIdentifierForAdvertisingProvider.h"
#import "ABKIDFADelegate.h"

// SDWebImage
Expand Down
Binary file modified Appboy-tvOS-SDK/AppboyTVOSKit.framework/Info.plist
Binary file not shown.

0 comments on commit b5cc6d7

Please sign in to comment.