From cf79fc270043be48603be17e0858800e85ae1cae Mon Sep 17 00:00:00 2001 From: YoungJun Lee Date: Thu, 25 Mar 2021 14:49:53 +0900 Subject: [PATCH 1/2] migrates to swift 5 --- SystemSounds.podspec | 4 ++-- SystemSounds/SystemSounds.xcodeproj/project.pbxproj | 7 +++++++ SystemSounds/SystemSounds/SystemSounds.swift | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/SystemSounds.podspec b/SystemSounds.podspec index fffa835..9ff554b 100755 --- a/SystemSounds.podspec +++ b/SystemSounds.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "SystemSounds" - s.version = "1.0.1" + s.version = "1.0.2" s.summary = "An iOS System Sounds Player Framework." s.description = <<-DESC @@ -17,7 +17,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '8.0' s.osx.deployment_target = '10.9' - s.pod_target_xcconfig = { 'SWIFT_VERSION' => '3.0' } + s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.0' } s.source_files = 'SystemSounds/**/*{.swift}', 'SystemSounds/**/*{.h}' s.public_header_files = 'SystemSounds/**/*{.h}' diff --git a/SystemSounds/SystemSounds.xcodeproj/project.pbxproj b/SystemSounds/SystemSounds.xcodeproj/project.pbxproj index a59c7da..5263fe1 100644 --- a/SystemSounds/SystemSounds.xcodeproj/project.pbxproj +++ b/SystemSounds/SystemSounds.xcodeproj/project.pbxproj @@ -8,6 +8,7 @@ /* Begin PBXBuildFile section */ 5CED4F1A1EC61DAB00948FC4 /* SystemSounds.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CED4F191EC61DAB00948FC4 /* SystemSounds.swift */; }; + 8A716253260C576800D548DB /* SystemSounds.podspec in Resources */ = {isa = PBXBuildFile; fileRef = 8A716252260C576800D548DB /* SystemSounds.podspec */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -17,6 +18,7 @@ 5CED4F111EC61D7A00948FC4 /* macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 5CED4F141EC61D7A00948FC4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 5CED4F191EC61DAB00948FC4 /* SystemSounds.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SystemSounds.swift; sourceTree = ""; }; + 8A716252260C576800D548DB /* SystemSounds.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = SystemSounds.podspec; path = ../SystemSounds.podspec; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -40,6 +42,7 @@ 5CED4EEA1EC61D5200948FC4 = { isa = PBXGroup; children = ( + 8A716252260C576800D548DB /* SystemSounds.podspec */, 5CED4EF61EC61D5200948FC4 /* SystemSounds */, 5CED4F051EC61D7400948FC4 /* iOS */, 5CED4F121EC61D7A00948FC4 /* macOS */, @@ -164,6 +167,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, ); mainGroup = 5CED4EEA1EC61D5200948FC4; @@ -182,6 +186,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 8A716253260C576800D548DB /* SystemSounds.podspec in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -412,6 +417,7 @@ 5CED4F0B1EC61D7400948FC4 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 5CED4F161EC61D7A00948FC4 /* Build configuration list for PBXNativeTarget "macOS" */ = { isa = XCConfigurationList; @@ -420,6 +426,7 @@ 5CED4F181EC61D7A00948FC4 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/SystemSounds/SystemSounds/SystemSounds.swift b/SystemSounds/SystemSounds/SystemSounds.swift index 1de7da2..296289f 100644 --- a/SystemSounds/SystemSounds/SystemSounds.swift +++ b/SystemSounds/SystemSounds/SystemSounds.swift @@ -29,7 +29,7 @@ import AudioToolbox // MARK: - Init - open static let shared: SystemSounds = SystemSounds() + public static let shared: SystemSounds = SystemSounds() override init() { self.bundle = Bundle.main @@ -49,7 +49,7 @@ import AudioToolbox NotificationCenter.default.addObserver( self, selector: sel, - name: .UIApplicationDidReceiveMemoryWarning, + name: UIApplication.didReceiveMemoryWarningNotification, object: nil ) #endif From 61f3756c6e9c47e234c25952fdca588cc2badc43 Mon Sep 17 00:00:00 2001 From: YoungJun Lee Date: Thu, 25 Mar 2021 14:51:16 +0900 Subject: [PATCH 2/2] release 1.2.0 --- SystemSounds.podspec | 2 +- SystemSounds/SystemSounds.xcodeproj/project.pbxproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SystemSounds.podspec b/SystemSounds.podspec index 9ff554b..b032f4a 100755 --- a/SystemSounds.podspec +++ b/SystemSounds.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "SystemSounds" - s.version = "1.0.2" + s.version = "1.2.0" s.summary = "An iOS System Sounds Player Framework." s.description = <<-DESC diff --git a/SystemSounds/SystemSounds.xcodeproj/project.pbxproj b/SystemSounds/SystemSounds.xcodeproj/project.pbxproj index 5263fe1..af94cb0 100644 --- a/SystemSounds/SystemSounds.xcodeproj/project.pbxproj +++ b/SystemSounds/SystemSounds.xcodeproj/project.pbxproj @@ -18,7 +18,7 @@ 5CED4F111EC61D7A00948FC4 /* macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 5CED4F141EC61D7A00948FC4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 5CED4F191EC61DAB00948FC4 /* SystemSounds.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SystemSounds.swift; sourceTree = ""; }; - 8A716252260C576800D548DB /* SystemSounds.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = SystemSounds.podspec; path = ../SystemSounds.podspec; sourceTree = ""; }; + 8A716252260C576800D548DB /* SystemSounds.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = SystemSounds.podspec; path = ../SystemSounds.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */