Skip to content

Commit e627045

Browse files
authored
Release/6.0.5 (#562)
* disable push open prioritization when in async * Add code comments * Update version * Update spm
1 parent 34bd301 commit e627045

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

LeanplumSDK/LeanplumSDK/Classes/Internal/LPConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define IS_NOOP (IS_JAILBROKEN || [LPConstantsState sharedState].isTestMode || [LPConstantsState sharedState].isInPermanentFailureState)
3939
#define RETURN_IF_NOOP if (IS_NOOP) return
4040

41-
#define LEANPLUM_SDK_VERSION @"6.0.4"
41+
#define LEANPLUM_SDK_VERSION @"6.0.5"
4242
#define LEANPLUM_CLIENT @"ios"
4343
#define LEANPLUM_SUPPORTED_ENCODING @"gzip"
4444

LeanplumSDK/LeanplumSDK/ClassesSwift/Actions/ActionManager+Configuration.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ extension ActionManager {
1717
/// push notification will go into the queue and will be presented after in-app dismissal, otherwise
1818
/// the in-app is dismissed and the push notification's action is presented.
1919
///
20+
/// If `useAsyncHandlers` is `true`, this configuration will not have any effect and
21+
/// push notification open will not dismiss the currently shown message.
22+
///
2023
/// - Default value: `true`
2124
public let dismissOnPushArrival: Bool
2225

LeanplumSDK/LeanplumSDK/ClassesSwift/Actions/ActionManager+Executor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extension ActionManager {
1919
// ask user to dimiss current action so we can execute next one
2020
if
2121
configuration.dismissOnPushArrival,
22+
!useAsyncHandlers, // disable dismiss on push open action when using async handlers
2223
let nextAction = queue.first(),
2324
nextAction.notification
2425
{

LeanplumSDK/LeanplumSDK/ClassesSwift/Actions/ActionManager.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ import Foundation
1515
/// Set a new configuration to override a configuration option
1616
public var configuration: Configuration = .default
1717

18+
/// Setting `useAsyncHandlers` to `true` will have `prioritizeMessages` and
19+
/// `shouldDisplayMessage` handlers to be invoked in a background dispatch queue.
20+
/// OnMessage handlers will also be invoked in that background queue.
21+
/// Enabling `useAsyncHandlers` disables `ActionManager.Configuration.dismissOnPushArrival` and
22+
/// push notification open action will not dismiss currently shown message.
1823
public var useAsyncHandlers = false
1924
public let actionQueue = DispatchQueue(label: "leanplum.background_action_queue", qos: .background, target: DispatchQueue.global())
2025

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ let package = Package(
1616
targets: [
1717
.binaryTarget(
1818
name: "Leanplum",
19-
url: "https://github.com/Leanplum/Leanplum-iOS-SDK/releases/download/6.0.4/Leanplum.xcframework.zip",
20-
checksum: "9253a47af31f6e00fc45c96e96b6bec117ba74d3fcd44ffa297f4c77918740d9"
19+
url: "https://github.com/Leanplum/Leanplum-iOS-SDK/releases/download/6.0.5/Leanplum.xcframework.zip",
20+
checksum: "3dbde241cb4c7b2d0da12caadff6c4d51e8f79607ab9174e858d8301f638eaf6"
2121
),
2222
.target(
2323
name: "LeanplumLocation",

sdk-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.4
1+
6.0.5

0 commit comments

Comments
 (0)