Skip to content

Commit

Permalink
Upgrade to Swift 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 16, 2020
1 parent 72d2a98 commit 42fea9b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Aperture.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Pod::Spec.new do |s|
s.authors = { 'Sindre Sorhus' => 'sindresorhus@gmail.com', 'Matheus Fernandes' => 'github@matheus.top' }
s.source = { :git => 'https://github.com/wulkano/Aperture.git', :tag => "v#{s.version}" }
s.source_files = 'Sources/**/*.swift'
s.swift_version = '5.1'
s.swift_version = '5.3'
s.platform = :macos, '10.12'
end
4 changes: 2 additions & 2 deletions Example/Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.2
import PackageDescription

let package = Package(
Expand All @@ -13,7 +13,7 @@ let package = Package(
.target(
name: "Example",
dependencies: [
"Aperture"
"Aperture"
]
)
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.3
import PackageDescription

let package = Package(
Expand Down
3 changes: 1 addition & 2 deletions Sources/Aperture/Aperture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public final class Aperture: NSObject {
videoCodec: String?
) throws {
self.destination = destination
session = AVCaptureSession()

self.session = AVCaptureSession()
self.output = output

// Needed because otherwise there is no audio on videos longer than 10 seconds.
Expand Down
5 changes: 4 additions & 1 deletion Sources/Aperture/util.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ extension NSScreen {
continue
}

if vendorID == CGDisplayVendorNumber(displayID) && productID == CGDisplayModelNumber(displayID) {
if
vendorID == CGDisplayVendorNumber(displayID),
productID == CGDisplayModelNumber(displayID)
{
return info
}

Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
## Requirements

- macOS 10.12+
- Xcode 11+
- Swift 5.1+
- Xcode 12+
- Swift 5.3+

## Install

Expand Down

0 comments on commit 42fea9b

Please sign in to comment.