Skip to content

Commit

Permalink
Updating Braze SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Jun 21, 2022
1 parent 7b8ed21 commit be1866f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 8 deletions.
Binary file modified AppboyKit/Appboy.bundle/Info.plist
Binary file not shown.
8 changes: 7 additions & 1 deletion AppboyKit/include/ABKInAppMessageWebViewBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@ NS_ASSUME_NONNULL_BEGIN
@protocol ABKInAppMessageWebViewBridgeDelegate <NSObject>

/*!
* Tells the delegate the bridge has received a click action to execute
* Tells the delegate that the bridge has received a click action to execute
* @param webViewBridge The bridge informing the delegate
* @param clickAction The clickAction performed
*/
- (void)webViewBridge:(ABKInAppMessageWebViewBridge *)webViewBridge
receivedClickAction:(ABKInAppMessageClickActionType)clickAction;

/*!
* Tells the delegate that a close message action was received
* @param webViewBridge The bridge informing the delegate
*/
- (void)closeMessageWithWebViewBridge:(ABKInAppMessageWebViewBridge *)webViewBridge;

@end

NS_ASSUME_NONNULL_END
2 changes: 1 addition & 1 deletion 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.4.3"
#define APPBOY_SDK_VERSION @"4.4.4"
#endif

#if !TARGET_OS_TV
Expand Down
Binary file modified AppboyPushStory/Resources/ABKPageView.nib
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
NSLog(@"In-app message body click not registered. Automatic body clicks are disabled.");
}
}

[parentViewController inAppMessageClickedWithActionType:self.inAppMessage.inAppMessageClickActionType
URL:url
openURLInWebView:[self getOpenURLInWebView:queryParams]];
Expand Down Expand Up @@ -417,11 +416,20 @@ - (void)webViewBridge:(ABKInAppMessageWebViewBridge *)webViewBridge
receivedClickAction:(ABKInAppMessageClickActionType)clickAction {
ABKInAppMessageWindowController *parentViewController =
(ABKInAppMessageWindowController *)self.parentViewController;

[self.inAppMessage setInAppMessageClickAction:clickAction withURI:nil];
[parentViewController inAppMessageClickedWithActionType:self.inAppMessage.inAppMessageClickActionType
URL:nil
openURLInWebView:false];
}

- (void)closeMessageWithWebViewBridge:(ABKInAppMessageWebViewBridge *)webViewBridge {
ABKInAppMessageWindowController *parentViewController =
(ABKInAppMessageWindowController *)self.parentViewController;
if ([parentViewController.inAppMessageUIDelegate respondsToSelector:@selector(onInAppMessageDismissed:)]) {
[parentViewController.inAppMessageUIDelegate onInAppMessageDismissed:self.inAppMessage];
}
[super hideInAppMessage:self.inAppMessage.animateOut];
}

@end
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.4.4

##### Fixed
- Calling `appboyBridge.closeMessage()` or `brazeBridge.closeMessage()` from an HTML in-app message now correctly triggers `ABKInAppMessageUIDelegate.onInAppMessageDismissed:` when implemented.
- Fixes an issue in `4.4.3` where the tvOS SDK incorrectly referenced an older SDK version.

## 4.4.3

##### Fixed
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "AppboyKitLibrary",
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.4.3/AppboyKitLibrary.xcframework.zip",
checksum: "66f13ebff3323d7eeccfba4fb67ab2174402a2b021c6b5a28990737316041510"
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.4.4/AppboyKitLibrary.xcframework.zip",
checksum: "bf9170291c7eb894a4d96c0e11bcd6b5de90391795919223e59342df0827064b"
),
.target(
name: "AppboyKit",
Expand Down Expand Up @@ -53,8 +53,8 @@ let package = Package(
),
.binaryTarget(
name: "AppboyPushStoryFramework",
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.4.3/AppboyPushStoryFramework.xcframework.zip",
checksum: "950a16e8d8ad665f92986d4d0af405316ea28b2655228ac798d0f156ca892718"
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.4.4/AppboyPushStoryFramework.xcframework.zip",
checksum: "ce8f7999106a7f14400a18c18037dbc0bc44b925086514835ec86db0f06c839f"
),
.target(
name: "AppboyPushStory",
Expand Down

0 comments on commit be1866f

Please sign in to comment.