Skip to content

Commit fa08f0d

Browse files
committed
update podspec
1 parent 2765463 commit fa08f0d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

LocalNotificationManager.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A Lib that remove from your shoulders the responsability to handle with version
2828
s.source = { :git => 'https://github.com/OpenCraft/LocalNotificationManager.git', :tag => s.version.to_s }
2929
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
3030

31-
s.ios.deployment_target = '8.0'
31+
s.ios.deployment_target = '9.0'
3232

3333
s.source_files = 'LocalNotificationManager/Classes/**/*'
3434

LocalNotificationManager/Classes/LocalNotificationRegister.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ protocol LocalNotificationRegister {
1515
}
1616

1717
class LocalNotificationRegisterFactory {
18+
1819
static func instantiate(application: UIApplication) -> LocalNotificationRegister {
1920
if #available(iOS 10, *) {
2021
return LocalNotificationRegisterNewestiOS(application: application)
2122
}
22-
return LocalNotificationRegisterLegacyiOS(application: application)
23+
24+
if #available(iOS 9, *) {
25+
return LocalNotificationRegisterLegacyiOS(application: application)
26+
} else {
27+
return LocalNotificationRegisterLegacyiOS(application: application)
28+
}
2329
}
2430
}
2531

LocalNotificationManager/Classes/LocalNotificationScheduler.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class LocalNotificationSchedulerNewestiOS: LocalNotificationScheduler {
5555
}
5656

5757
@available(iOS 9, *)
58-
@available(iOS 8, *)
5958
class LocalNotificationSchedulerLegacyiOS: LocalNotificationScheduler {
6059

6160
fileprivate var notification: UILocalNotification?

0 commit comments

Comments
 (0)