Skip to content

Commit

Permalink
Reduce Swift version
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Nov 3, 2023
1 parent 60af64c commit 29b5f60
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-13
runs-on: macos-12
steps:
- name: git checkout
uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: docbuild
run: |
xcodebuild docbuild -scheme AppState \
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ on:

jobs:
build:
runs-on: macos-13
runs-on: macos-latest

steps:
- uses: swift-actions/setup-swift@v1
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v3
- name: Build
run: swift build -v
Expand Down
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// swift-tools-version: 5.9
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "AppState",
platforms: [
.iOS(.v17),
.watchOS(.v10),
.macOS(.v14),
.tvOS(.v17)
.iOS(.v16),
.watchOS(.v9),
.macOS(.v13),
.tvOS(.v16)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
Expand Down
4 changes: 2 additions & 2 deletions Sources/AppState/Application+internal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ extension Application {
static func codeID(
fileID: StaticString,
function: StaticString,
line: StaticBigInt,
column: StaticBigInt
line: Int,
column: Int
) -> String {
"\(fileID)[\(function)@\(line)|\(column)]"
}
Expand Down
8 changes: 4 additions & 4 deletions Sources/AppState/Application+public.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public extension Application {
initial: @autoclosure () -> Value,
_ fileID: StaticString = #fileID,
_ function: StaticString = #function,
_ line: StaticBigInt = #line,
_ column: StaticBigInt = #column
_ line: Int = #line,
_ column: Int = #column
) -> State<Value> {
state(
initial: initial(),
Expand Down Expand Up @@ -74,8 +74,8 @@ public extension Application {
_ object: @autoclosure () -> Value,
_ fileID: StaticString = #fileID,
_ function: StaticString = #function,
_ line: StaticBigInt = #line,
_ column: StaticBigInt = #column
_ line: Int = #line,
_ column: Int = #column
) -> Value {
dependency(
object(),
Expand Down

0 comments on commit 29b5f60

Please sign in to comment.