Skip to content

Commit

Permalink
Migrate to Swift 5.9 Toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
vsanthanam committed Sep 30, 2023
1 parent be3f523 commit 468afa6
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/xcodebuild-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:

jobs:
build:
runs-on: macos-13
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Xcode Version
run: sudo xcode-select --switch /Applications/Xcode_14.3.app
run: sudo xcode-select --switch /Applications/Xcode_15.0.app
- name: Lint
run: swift package plugin --allow-writing-to-package-directory swiftformat --lint
- name: Build & Test
Expand Down
4 changes: 2 additions & 2 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--enable isEmpty
--disable blankLinesAtEndOfScope, blankLinesAtStartOfScope, redundantNilInit, unusedArguments, redundantParens, wrapMultilineStatementBraces, trailingCommas, braces, opaqueGenericParameters
--swiftversion 5.8
--header "SafariUI\n{file}\n\nMIT License\n\nCopyright (c) 2021 Varun Santhanam\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\n\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
--swiftversion 5.9
--header "SafariUI\n{file}\n\nMIT License\n\nCopyright (c) 2023 Varun Santhanam\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\n\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
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.8
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![MIT License](https://img.shields.io/github/license/vsanthanam/SafariUI)](https://github.com/vsanthanam/SafariUI/blob/main/LICENSE)
[![Package Releases](https://img.shields.io/github/v/release/vsanthanam/SafariUI)](https://github.com/vsanthanam/SafariUI/releases)
[![Build Status](https://img.shields.io/github/actions/workflow/status/vsanthanam/SafariUI/xcodebuild-build-test.yml)](https://github.com/vsanthanam/SafariUI/actions)
[![Swift Version](https://img.shields.io/badge/swift-5.8-critical)](https://swift.org)
[![Swift Version](https://img.shields.io/badge/swift-5.9-critical)](https://swift.org)
[![Supported Platforms](https://img.shields.io/badge/platform-iOS%2014.0%20%7C%20Catalyst%2014.0-lightgrey)](https://developer.apple.com)

A SwiftUI wrappers for `SFSafariViewController` and `ASWebAuthenticationSession`
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafariUI/SafariUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
8 changes: 4 additions & 4 deletions Sources/SafariView/DismissButtonStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down Expand Up @@ -45,9 +45,9 @@ public extension SafariView {

var uikit: SFSafariViewController.DismissButtonStyle {
switch self {
case .done: return .done
case .close: return .close
case .cancel: return .cancel
case .done: .done
case .close: .close
case .cancel: .cancel
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafariView/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafariView/ExcludedActivityTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafariView/IncludedActivities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafariView/Modifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafariView/Presentation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafariView/PrewarmingToken.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
8 changes: 4 additions & 4 deletions Sources/SafariView/SafariView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down Expand Up @@ -682,11 +682,11 @@ extension UIView {

var controller: UIViewController? {
if let nextResponder = next as? UIViewController {
return nextResponder
nextResponder
} else if let nextResponder = next as? UIView {
return nextResponder.controller
nextResponder.controller
} else {
return nil
nil
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/WebAuthentication/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/WebAuthentication/Modifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/WebAuthentication/Presentation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/WebAuthentication/WebAuthentication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// MIT License
//
// Copyright (c) 2021 Varun Santhanam
// Copyright (c) 2023 Varun Santhanam
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
//
Expand Down

0 comments on commit 468afa6

Please sign in to comment.