Skip to content

Commit

Permalink
Rename ActionKind (#514)
Browse files Browse the repository at this point in the history
* Rename ActionKind
  • Loading branch information
nzagorchev authored Sep 19, 2022
1 parent c3d7469 commit 3d49238
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LeanplumSDK/LeanplumSDK/Classes/Leanplum.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ typedef void (^LeanplumPushSetupBlock)(void);
typedef NS_OPTIONS(NSUInteger, LeanplumActionKind) {
kLeanplumActionKindMessage = 0b1,
kLeanplumActionKindAction = 0b10,
} NS_SWIFT_NAME(Leanplum.ActionKind);
} NS_SWIFT_NAME(LeanplumActionKind);

#define LP_PURCHASE_EVENT @"Purchase"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation

extension ActionManager {
func recordImpression(action: Action) {
typealias Kind = Leanplum.ActionKind
typealias Kind = LeanplumActionKind

switch action.type {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension ActionManager {
@objc public class ActionDefinition: NSObject {
@objc public let name: String
public let args: [ActionArg]
public let kind: Leanplum.ActionKind
public let kind: LeanplumActionKind
public let options: [String: String]

public var presentAction: ((ActionContext) -> (Bool))?
Expand All @@ -28,7 +28,7 @@ extension ActionManager {

@objc public required init(name: String,
args: [Any],
kind: Leanplum.ActionKind,
kind: LeanplumActionKind,
options: [String: String],
presentAction: ((ActionContext) -> (Bool))? = nil,
dismissAction: ((ActionContext) -> (Bool))? = nil) {
Expand Down

0 comments on commit 3d49238

Please sign in to comment.