Skip to content

Commit

Permalink
Updating Braze SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Jul 28, 2020
1 parent 09f589d commit a9d3e07
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 108 deletions.
8 changes: 4 additions & 4 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.26.0"
s.version = "3.27.0-beta1"
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 Down Expand Up @@ -35,20 +35,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
71 changes: 0 additions & 71 deletions AppboyKit/ABKIdentifierForAdvertisingProvider.m

This file was deleted.

Binary file modified AppboyKit/Appboy.bundle/Info.plist
Binary file not shown.

This file was deleted.

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.26.0"
#define APPBOY_SDK_VERSION @"3.27.0-beta1"
#endif

#if !TARGET_OS_TV
Expand Down
1 change: 0 additions & 1 deletion AppboyKit/headers/AppboyKitLibrary/AppboyKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#import "ABKContentCardsController.h"

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

// SDWebImage
Expand Down
28 changes: 22 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
## 3.27.0-beta1

- This release can be used to beta test iOS 14.

##### Breaking
- Requires Xcode 12.
- Updates the minimum required version of SDWebImage from 5.0 to 5.8.2.
- Removes the `ABK_ENABLE_IDFA_COLLECTION` preprocessor macro from the SDK.
- 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
- 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.

## 3.26.0

##### Breaking
- Removed readonly property `overrideApplicationStatusBarHiddenState` in `ABKInAppMessageViewController.h`.

##### Changed
- Added Binary Project Specification file for more efficient Carthage integration of the full SDK.
- Update your Cartfile to use `binary "https://raw.githubusercontent.com/Appboy/appboy-ios-sdk/master/appboy_ios_sdk_full.json"`
- Support for this integration method was added starting with version 3.24.0 of the SDK.

##### Fixed
- Fixes an issue with in-app messages not respecting the application's status bar style when _View controller-based status bar appearance_ (`UIViewControllerBasedStatusBarAppearance`) is set to `YES` in the Info.plist.
- Fixes an issue which can lead to text being cut off in Content Cards for specific iPhone models.
- Fixes an issue preventing test Content Cards from displaying under specific conditions.

#### Added
##### Changed
- Added Binary Project Specification file for more efficient Carthage integration of the full SDK.
- Update your Cartfile to use `binary "https://raw.githubusercontent.com/Appboy/appboy-ios-sdk/master/appboy_ios_sdk_full.json"`
- Support for this integration method was added starting with version 3.24.0 of the SDK.

##### Added
- Adds support for specifying `PushStoryAppGroup` in the `Appboy` dictionary in your app's `Info.plist`. This [Apple App Group](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups?language=objc) will share the [Braze Push Story](https://www.braze.com/docs/developer_guide/platform_integration_guides/ios/push_story/) information such as Campaign IDs between applications from a single Apple Developer account.
- Adds `appboyBridge.getUser().addAlias(alias, label)` to the javascript interface for HTML in-app messages.
- Adds the property `overrideUserInterfaceStyle` to `ABKInAppMessage` that allows forcing Light or Dark mode in the same way as Apple's [`UIViewController.overrideUserInterfaceStyle`](https://developer.apple.com/documentation/uikit/uiviewcontroller/3238087-overrideuserinterfacestyle?language=objc).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,13 @@ - (IBAction)logSingleLocation:(id)sender {
- (IBAction)manuallyRequestGeofences:(id)sender {
CLLocationManager *locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
CLAuthorizationStatus authorizationStatus = [CLLocationManager authorizationStatus];

CLAuthorizationStatus authorizationStatus;
if (@available(iOS 14.0, *)) {
authorizationStatus = [locationManager authorizationStatus];
} else {
authorizationStatus = [CLLocationManager authorizationStatus];
}

if (authorizationStatus == kCLAuthorizationStatusAuthorizedAlways ||
authorizationStatus == kCLAuthorizationStatusAuthorizedWhenInUse) {
[self showAlertWithMessage:@"Manually requesting Geofences."];
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.26.0</string>
<string>3.27.0-beta1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down

0 comments on commit a9d3e07

Please sign in to comment.