Skip to content

Commit a3424f2

Browse files
Remove iOS 9 support from misc other.
1 parent 1c1e60a commit a3424f2

File tree

4 files changed

+9
-22
lines changed

4 files changed

+9
-22
lines changed

swift-sdk/Internal/AppExtensionHelper.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,10 @@ protocol AppWrapperProtocol {
4747
@available(iOSApplicationExtension, unavailable)
4848
class AppWrapper: AppWrapperProtocol {
4949
func openUrl(url: URL) {
50-
if #available(iOS 10.0, *) {
51-
UIApplication.shared.open(url, options: [:]) { success in
52-
if !success {
53-
ITBError("Could not open url: \(url)")
54-
}
50+
UIApplication.shared.open(url, options: [:]) { success in
51+
if !success {
52+
ITBError("Could not open url: \(url)")
5553
}
56-
} else {
57-
_ = UIApplication.shared.openURL(url)
5854
}
5955
}
6056

swift-sdk/Internal/InternalIterableAPI.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,7 @@ final class InternalIterableAPI: NSObject, PushTrackerProtocol, AuthProvider {
585585

586586
private func handlePendingNotification() {
587587
if let pendingNotificationResponse = Self.pendingNotificationResponse {
588-
if #available(iOS 10.0, *) {
589-
IterableAppIntegration.implementation?.userNotificationCenter(nil, didReceive: pendingNotificationResponse, withCompletionHandler: nil)
590-
}
588+
IterableAppIntegration.implementation?.userNotificationCenter(nil, didReceive: pendingNotificationResponse, withCompletionHandler: nil)
591589
Self.pendingNotificationResponse = nil
592590
}
593591
}

swift-sdk/IterableInboxViewController.swift

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,10 @@ open class IterableInboxViewController: UITableViewController {
136136
tableView.rowHeight = UITableView.automaticDimension
137137
tableView.estimatedRowHeight = UITableView.automaticDimension
138138

139-
if #available(iOS 10.0, *) {
140-
let refreshControl = UIRefreshControl()
141-
refreshControl.attributedTitle = NSAttributedString(string: "Fetching new in-app messages")
142-
refreshControl.addTarget(self, action: #selector(handleRefreshControl), for: .valueChanged)
143-
tableView.refreshControl = refreshControl
144-
}
139+
let refreshControl = UIRefreshControl()
140+
refreshControl.attributedTitle = NSAttributedString(string: "Fetching new in-app messages")
141+
refreshControl.addTarget(self, action: #selector(handleRefreshControl), for: .valueChanged)
142+
tableView.refreshControl = refreshControl
145143

146144
cellLoader = CellLoader(viewDelegate: viewDelegate, cellNibName: cellNibName)
147145
cellLoader.registerCells(forTableView: tableView)
@@ -259,7 +257,6 @@ open class IterableInboxViewController: UITableViewController {
259257
ITBInfo()
260258
}
261259

262-
@available(iOS 10.0, *)
263260
@objc private func handleRefreshControl() {
264261
ITBInfo()
265262

swift-sdk/IterableLogging.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ import os
1919
}
2020

2121
let markedMessage = IterableLogUtil.markedMessage(level: level, message: message)
22-
if #available(iOS 10.0, *) {
23-
os_log("%@", log: OSLog.default, type: OSLogType.error, markedMessage)
24-
} else {
25-
print(markedMessage)
26-
}
22+
os_log("%@", log: OSLog.default, type: OSLogType.error, markedMessage)
2723
}
2824
}
2925

0 commit comments

Comments
 (0)