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 2, 2020
1 parent 1c46e40 commit 2f2a911
Show file tree
Hide file tree
Showing 20 changed files with 117 additions and 169 deletions.
5 changes: 4 additions & 1 deletion Appboy-Push-Story.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-Push-Story"
s.version = "3.22.0"
s.version = "3.27.0-beta3"
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.
9 changes: 6 additions & 3 deletions Appboy-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-iOS-SDK"
s.version = "3.27.0-beta2"
s.version = "3.27.0-beta3"
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,13 +12,16 @@ Pod::Spec.new do |s|
s.documentation_url = 'https://www.braze.com/docs'
s.exclude_files = 'AppboyKit/**/*.txt'
s.preserve_paths = 'AppboyKit/**/*.*'
s.default_subspec = 'UI'

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

# Skipping this architecture to pass Pod validation since we explicitly remove simulator `arm64` ARCH to do lipo later
# 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'
}
s.default_subspec = 'UI'
# Same reason as above
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.subspec 'Core' do |sc|
sc.ios.library = 'z'
Expand Down
5 changes: 4 additions & 1 deletion Appboy-tvOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-tvOS-SDK"
s.version = "3.21.0"
s.version = "3.27.0-beta3"
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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-beta3"
#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
Original file line number Diff line number Diff line change
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.
2 changes: 1 addition & 1 deletion AppboyKit/headers/AppboyKitLibrary/Appboy.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#import <UserNotifications/UserNotifications.h>

#ifndef APPBOY_SDK_VERSION
#define APPBOY_SDK_VERSION @"3.27.0-beta2"
#define APPBOY_SDK_VERSION @"3.27.0-beta3"
#endif

#if !TARGET_OS_TV
Expand Down
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 3.27.0-beta3
- This release can be used to beta test iOS 14. See `3.27.0-beta2` and `3.27.0-beta1` notes for additional changes.

##### Changed
- Adds support for Push Stories and the tvOS SDK when using Xcode 12.

## 3.27.0-beta2

- This release can be used to beta test iOS 14. See `3.27.0-beta1` notes for additional changes.
Expand Down Expand Up @@ -27,7 +33,7 @@
- If you wish to enable IDFA, please use the `ABKIDFADelegate`.
- Integration instructions for supporting iOS 14 in your `ABKIDFADelegate` will be included in a future beta release.

##### Updated
##### Changed
- Adds support for iOS 14's Approximate Location feature.
- Note that the Geofence feature will not work if the end user chooses to provide only approximate location.
- Optional session-start based location tracking will continue to work. Accuracy will be based on the user's precise vs. approximate choice.
Expand Down Expand Up @@ -462,7 +468,7 @@ with
## 3.7.0
#### Breaking
##### Breaking
- In `ABKInAppMessageUIControlling` protocol, `getCurrentDisplayChoiceForControlInAppMessage` method is added to define whether the control in-app message impression should be logged now, later or discarded.
- In `ABKInAppMessageControllerDelegate` protocol, `beforeControlMessageImpressionLogged` method is added to define whether the control in-app message impression should be logged now, later or discarded.
Expand Down
2 changes: 1 addition & 1 deletion Example/Stopwatch/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.27.0-beta2</string>
<string>3.27.0-beta3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
Loading

0 comments on commit 2f2a911

Please sign in to comment.