From 5e49f2bfa207976031887b42fcb6468984279acc Mon Sep 17 00:00:00 2001 From: Thorsten Stark Date: Tue, 19 Oct 2021 15:43:45 +0200 Subject: [PATCH] increase minimum SDK to iOS 11 --- .../project.xcworkspace/contents.xcworkspacedata | 7 +++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++++ Example/SwiftAudio.xcodeproj/project.pbxproj | 4 ++-- .../xcshareddata/WorkspaceSettings.xcsettings | 4 ++-- SwiftAudio.podspec | 2 +- .../Classes/AVPlayerWrapper/AVPlayerWrapperDelegate.swift | 2 +- .../Classes/AVPlayerWrapper/AVPlayerWrapperProtocol.swift | 2 +- .../NowPlayingInfoController/NowPlayingInfoProperty.swift | 2 -- 8 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Example/SwiftAudio.xcodeproj/project.pbxproj b/Example/SwiftAudio.xcodeproj/project.pbxproj index 03658e9..bbba862 100644 --- a/Example/SwiftAudio.xcodeproj/project.pbxproj +++ b/Example/SwiftAudio.xcodeproj/project.pbxproj @@ -625,7 +625,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEVELOPMENT_TEAM = HPNZWPB9JK; INFOPLIST_FILE = SwiftAudio/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; @@ -642,7 +642,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEVELOPMENT_TEAM = HPNZWPB9JK; INFOPLIST_FILE = SwiftAudio/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; diff --git a/Example/SwiftAudio.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/Example/SwiftAudio.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings index 949b678..f9b0d7c 100644 --- a/Example/SwiftAudio.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ b/Example/SwiftAudio.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -2,7 +2,7 @@ - BuildSystemType - Original + PreviewsEnabled + diff --git a/SwiftAudio.podspec b/SwiftAudio.podspec index f988012..5b15faa 100644 --- a/SwiftAudio.podspec +++ b/SwiftAudio.podspec @@ -19,7 +19,7 @@ DESC s.author = { 'Jørgen Henrichsen' => 'jh.henrichs@gmail.com' } s.source = { :git => 'https://github.com/jorgenhenrichsen/SwiftAudio.git', :tag => s.version.to_s } - s.ios.deployment_target = '10.0' + s.ios.deployment_target = '11.0' s.swift_version = '5.0' s.source_files = 'SwiftAudio/Classes/**/*' end diff --git a/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperDelegate.swift b/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperDelegate.swift index e38b4e4..f69c1b3 100644 --- a/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperDelegate.swift +++ b/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperDelegate.swift @@ -8,7 +8,7 @@ import Foundation -protocol AVPlayerWrapperDelegate: class { +protocol AVPlayerWrapperDelegate: AnyObject { func AVWrapper(didChangeState state: AVPlayerWrapperState) func AVWrapper(secondsElapsed seconds: Double) diff --git a/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperProtocol.swift b/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperProtocol.swift index d541ddf..07005d5 100755 --- a/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperProtocol.swift +++ b/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapperProtocol.swift @@ -9,7 +9,7 @@ import Foundation import AVFoundation -protocol AVPlayerWrapperProtocol: class { +protocol AVPlayerWrapperProtocol: AnyObject { var state: AVPlayerWrapperState { get } diff --git a/SwiftAudio/Classes/NowPlayingInfoController/NowPlayingInfoProperty.swift b/SwiftAudio/Classes/NowPlayingInfoController/NowPlayingInfoProperty.swift index 4260685..13141d0 100644 --- a/SwiftAudio/Classes/NowPlayingInfoController/NowPlayingInfoProperty.swift +++ b/SwiftAudio/Classes/NowPlayingInfoController/NowPlayingInfoProperty.swift @@ -31,7 +31,6 @@ public enum NowPlayingInfoProperty: NowPlayingInfoKeyValue { The URL pointing to the now playing item's underlying asset. This constant is used by the system UI when video thumbnails or audio waveform visualizations are applicable. */ - @available(iOS 10.3, *) case assetUrl(URL?) /** @@ -116,7 +115,6 @@ public enum NowPlayingInfoProperty: NowPlayingInfoKeyValue { The service provider associated with the now-playing item. Value is a unique NSString that identifies the service provider for the now-playing item. If the now-playing item belongs to a channel or subscription service, this key can be used to coordinate various types of now-playing content from the service provider. */ - @available(iOS 11.0, *) case serviceIdentifier(String?)