Skip to content

Commit

Permalink
Update to Swift 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
vsanthanam committed Mar 17, 2024
1 parent c5cfcc6 commit 7e037ea
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/xcodebuild-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Xcode Version
run: sudo xcode-select --switch /Applications/Xcode_15.0.app
run: sudo xcode-select --switch /Applications/Xcode_15.3.app
- name: Lint
run: swift package plugin --allow-writing-to-package-directory swiftformat --lint
- name: Build & Test
Expand Down
2 changes: 1 addition & 1 deletion .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.9
--swiftversion 5.10
--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."
7 changes: 4 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"originHash" : "142227e4a8ed2c551a49a84de0b51fdd68e27f598de8dba00e6b1369095220e5",
"pins" : [
{
"identity" : "swift-docc-plugin",
Expand All @@ -23,10 +24,10 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/nicklockwood/SwiftFormat",
"state" : {
"revision" : "507d63f6e890621f055397c9503bfc9468e8bcb6",
"version" : "0.51.15"
"revision" : "a03119407c4773322d9e3c6cb5279bb597b68317",
"version" : "0.53.4"
}
}
],
"version" : 2
"version" : 3
}
29 changes: 22 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.9
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -12,25 +12,40 @@ let package = Package(
products: [
.library(
name: "SafariUI",
targets: ["SafariUI"]
targets: [
"SafariUI"
]
),
.library(
name: "SafariView",
targets: ["SafariView"]
targets: [
"SafariView"
]
),
.library(
name: "WebAuthentication",
targets: ["WebAuthentication"]
targets: [
"WebAuthentication"
]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", exact: "0.51.15")
.package(
url: "https://github.com/apple/swift-docc-plugin",
from: "1.0.0"
),
.package(
url: "https://github.com/nicklockwood/SwiftFormat",
exact: "0.53.4"
)
],
targets: [
.target(
name: "SafariUI",
dependencies: ["SafariView", "WebAuthentication"]
dependencies: [
"SafariView",
"WebAuthentication"
]
),
.target(
name: "SafariView",
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.9-critical)](https://swift.org)
[![Swift Version](https://img.shields.io/badge/swift-5.10-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

0 comments on commit 7e037ea

Please sign in to comment.