Skip to content

Commit 11b874c

Browse files
authored
fix warnings (#506)
1 parent 57f867a commit 11b874c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

LeanplumSDK/LeanplumSDK/ClassesSwift/Actions/ActionManager.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ import Foundation
9999
/// - Note: If this function is not implemented, the first message is presented only.
100100
///
101101
/// - Parameters:
102-
/// - contexts: messages' contexts
103-
/// - trigger: the action trigger that triggered the messages
102+
/// - callback: contexts - messages' contexts and trigger - the action trigger that triggered the messages
104103
///
105104
/// - Returns: the messages that should be presented in that order
106105
@objc public func prioritizeMessages(_ callback: ((_ contexts: [ActionContext], _ trigger: ActionsTrigger?) -> [ActionContext])?) {

LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/NotificationsManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import Foundation
3232
notificationSettings.getSettings(completionHandler: completionHandler)
3333
}
3434

35+
@available(iOS, deprecated: 10.0)
3536
@objc(didRegisterUserNotificationSettings:)
3637
public func didRegister(_ settings: UIUserNotificationSettings) {
3738
isAskToAskDisabled = true

LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/Proxy/NotificationsProxy+Disabled.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ extension NotificationsProxy {
2929
self.leanplum_userNotificationCenter(UNUserNotificationCenter.current(), willPresent: notification, withCompletionHandler: completionHandler)
3030
}
3131

32+
@available(iOS, deprecated: 10.0)
3233
@objc public func application(didReceive notification: UILocalNotification) {
3334
self.leanplum_application(UIApplication.shared, didReceive: notification)
3435
}
@@ -37,6 +38,7 @@ extension NotificationsProxy {
3738
Leanplum.notificationsManager().notificationOpened(userInfo: notification, action: identifier)
3839
}
3940

41+
@available(iOS, deprecated: 10.0)
4042
@objc public func handleActionWithIdentifier(_ identifier: String, forLocalNotification notification: UILocalNotification) {
4143
if let userInfo = notification.userInfo {
4244
Leanplum.notificationsManager().notificationOpened(userInfo: userInfo, action: identifier)

0 commit comments

Comments
 (0)