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 22, 2022
1 parent b99d346 commit 3a904ff
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 26 deletions.
2 changes: 1 addition & 1 deletion 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 = "4.5.0"
s.version = "4.5.1"
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
Binary file modified AppboyKit/Appboy.bundle/Info.plist
Binary file not shown.
41 changes: 29 additions & 12 deletions AppboyKit/include/ABKInAppMessageControllerDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ typedef NS_ENUM(NSInteger, ABKInAppMessageDisplayChoice) {
ABKDiscardInAppMessage
};

typedef NS_ENUM(NSInteger, ABKTriggerEventType) {
ABKTriggerEventTypeSessionStart,
ABKTriggerEventTypeCustomEvent,
ABKTriggerEventTypePurchase,
ABKTriggerEventTypeOther
};

/*!
* The in-app message delegate allows you to control the display of the Braze in-app message. For more detailed
* information on in-app message behavior, including when and how the delegate is used, see the documentation for the
Expand All @@ -32,7 +39,7 @@ typedef NS_ENUM(NSInteger, ABKInAppMessageDisplayChoice) {
* you are using the In-App Message subspec, please use ABKInAppMessageUIDelegate.
*/

/*
/*!
* Braze Public API: ABKInAppMessageControllerDelegate
*/
@protocol ABKInAppMessageControllerDelegate <NSObject>
Expand All @@ -52,18 +59,28 @@ typedef NS_ENUM(NSInteger, ABKInAppMessageDisplayChoice) {
- (ABKInAppMessageDisplayChoice)beforeInAppMessageDisplayed:(ABKInAppMessage *)inAppMessage;

/*!
* @param inAppMessage The control in-app message object being offered to the delegate method.
* @return ABKInAppMessageDisplayChoice The control in-app message impression logging choice.
* For details refer to the documentation regarding the ENUM ABKInAppMessageDisplayChoice above.
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
*
* This delegate method defines the timing of when the control in-app message impression event should be logged: now, later, or discarded.
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
*
* If there are situations where you would not want the control in-app message impression to be logged, you can use this delegate to delay
* or discard it.
*/
* @param inAppMessage The control in-app message object being offered to the delegate method.
* @return ABKInAppMessageDisplayChoice The control in-app message impression logging choice.
* For details refer to the documentation regarding the ENUM ABKInAppMessageDisplayChoice above.
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
*
* This delegate method defines the timing of when the control in-app message impression event should be logged: now, later, or discarded.
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
*
* If there are situations where you would not want the control in-app message impression to be logged, you can use this delegate to delay
* or discard it.
*/
- (ABKInAppMessageDisplayChoice)beforeControlMessageImpressionLogged:(ABKInAppMessage *)inAppMessage;

/*!
* Executed when no trigger matches the Braze event.
*
* @param eventType The type of event that failed to match the user's triggers.
* @param name The event name of a custom event, the product identifier for a purchase
* event, or `nil` for a session start event.
*/
- (void)noMatchingTriggerForEvent:(ABKTriggerEventType)eventType
name:(nullable NSString *)name;

@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.5.0"
#define APPBOY_SDK_VERSION @"4.5.1"
#endif

#if !TARGET_OS_TV
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 4.5.1

##### Fixed
- Improves eligibility checks around the minimum trigger timeout for in-app messages by now checking at _trigger time_ in addition to _display time_.
- Fixes an issue where purchases would not trigger certain templated in-app messages.

##### Added
- Adds the delegate method `noMatchingTriggerForEvent:name:` to `ABKInAppMessageControllerDelegate`, which is called if no Braze in-app message was triggered for a given event.

## 4.5.0

##### Added
Expand Down
6 changes: 2 additions & 4 deletions Example/Stopwatch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "Apple Development";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 4.5.0;
CURRENT_PROJECT_VERSION = 4.5.1;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down Expand Up @@ -1357,7 +1357,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "Apple Distribution";
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 4.5.0;
CURRENT_PROJECT_VERSION = 4.5.1;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -1389,7 +1389,6 @@
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch-Prefix.pch";
Expand All @@ -1415,7 +1414,6 @@
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch-Prefix.pch";
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Example/Stopwatch/Sources/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ - (ABKInAppMessageDisplayChoice)beforeInAppMessageDisplayed:(ABKInAppMessage *)i
return ABKDisplayInAppMessageNow;
}

- (void)noMatchingTriggerForEvent:(ABKTriggerEventType)eventType
name:(nullable NSString *)name {
StopwatchDebugMsg(@"ABKInAppMessageControllerDelegate method called for eventType: %ld, and name: %@",
(long)eventType, name);
}

#pragma mark - ABKInAppMessageUIDelegate

/*- (WKWebViewConfiguration *)setCustomWKWebViewConfiguration {
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 @@ -5,7 +5,7 @@


<key>CFBundleShortVersionString</key>
<string>4.5.0</string>
<string>4.5.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleDevelopmentRegion</key>
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.5.0/AppboyKitLibrary.xcframework.zip",
checksum: "963172c4ef6ed121a90c21aa5d038351184748262039199eaa23631ad3ea80c4"
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.5.1/AppboyKitLibrary.xcframework.zip",
checksum: "8ddf1821d24ccb135affca3bd7cde7b723446d98ed0e0a126bbaf43c548131e8"
),
.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.5.0/AppboyPushStoryFramework.xcframework.zip",
checksum: "8c55069f0ad24ad6389764e4a6d4d85ac2f18964c1ed0c161f9d56e7a1e09cb4"
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.5.1/AppboyPushStoryFramework.xcframework.zip",
checksum: "f56eed2b727ad5d0c052cc192302b7d79ccd60a44766c8eda31f4f4fa7ab0091"
),
.target(
name: "AppboyPushStory",
Expand Down
2 changes: 1 addition & 1 deletion appboy_ios_sdk.json

Large diffs are not rendered by default.

Loading

0 comments on commit 3a904ff

Please sign in to comment.