Skip to content

Commit 95b2b1f

Browse files
authored
Bump the Swift version to 6.0 (#3)
* Bump the Swift version to 6.0 * Update gems * Update `ci.yml` * Update `README.md` * Update `CHANGELOG.md`
1 parent 116edec commit 95b2b1f

File tree

11 files changed

+93
-28
lines changed

11 files changed

+93
-28
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
include:
37+
- destination: "OS=18.1,name=iPhone 16 Pro"
38+
name: "iOS 18.1"
39+
xcode: "Xcode_16.1"
40+
runsOn: macOS-14
41+
- destination: "OS=18.0,name=iPhone 16 Pro"
42+
name: "iOS 18.0"
43+
xcode: "Xcode_16.0"
44+
runsOn: macOS-14
45+
- destination: "OS=17.5,name=iPhone 15 Pro"
46+
name: "iOS 17.5"
47+
xcode: "Xcode_15.4"
48+
runsOn: macOS-14
3749
- destination: "OS=17.0.1,name=iPhone 14 Pro"
3850
name: "iOS 17.0.1"
3951
xcode: "Xcode_15.0"
@@ -49,11 +61,11 @@ jobs:
4961

5062
discover-typos:
5163
name: Discover Typos
52-
runs-on: macOS-12
64+
runs-on: macOS-13
5365
env:
5466
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
5567
steps:
56-
- uses: actions/checkout@v2
68+
- uses: actions/checkout@v4
5769
- name: Discover typos
5870
run: |
5971
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin"

.swiftlint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ excluded:
33
- Package.swift
44
- Package@swift-5.7.swift
55
- Package@swift-5.8.swift
6+
- Package@swift-5.9.swift
7+
- Package@swift-5.10.swift
68
- .build
79

810
# Rules
@@ -134,4 +136,4 @@ nesting:
134136
type_name:
135137
max_length:
136138
warning: 40
137-
error: 50
139+
error: 50

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22
All notable changes to this project will be documented in this file.
33

44
#### 1.x Releases
5+
- `1.1.x` Releases - [1.1.0](#110)
56
- `1.0.x` Releases - [1.0.0](#100) | [1.0.1](#101)
67

8+
## [1.1.0](https://github.com/space-code/haptic-feedback/releases/tag/1.1.0)
9+
Released on 2024-12-25.
10+
11+
#### Added
12+
- Bump the Swift version to 6.0.
13+
- Added in Pull Request [#3](https://github.com/space-code/haptic-feedback/pull/3).
14+
715
## [1.0.1](https://github.com/space-code/haptic-feedback/releases/tag/1.0.1)
816
Released on 2024-01-31.
917

Gemfile.lock

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.5)
5-
public_suffix (>= 2.0.2, < 6.0)
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
66
base64 (0.2.0)
77
claide (1.1.0)
88
claide-plugins (0.9.2)
@@ -12,7 +12,8 @@ GEM
1212
colored2 (3.1.2)
1313
cork (0.3.0)
1414
colored2 (~> 3.1)
15-
danger (9.4.0)
15+
danger (9.5.1)
16+
base64 (~> 0.2)
1617
claide (~> 1.0)
1718
claide-plugins (>= 0.9.2)
1819
colored2 (~> 3.1)
@@ -22,39 +23,44 @@ GEM
2223
git (~> 1.13)
2324
kramdown (~> 2.3)
2425
kramdown-parser-gfm (~> 1.0)
25-
no_proxy_fix
26-
octokit (>= 6.0, < 8.0)
26+
octokit (>= 4.0)
27+
pstore (~> 0.1)
2728
terminal-table (>= 1, < 4)
28-
faraday (2.7.12)
29-
base64
30-
faraday-net_http (>= 2.0, < 3.1)
31-
ruby2_keywords (>= 0.0.4)
32-
faraday-http-cache (2.5.0)
29+
faraday (2.12.2)
30+
faraday-net_http (>= 2.0, < 3.5)
31+
json
32+
logger
33+
faraday-http-cache (2.5.1)
3334
faraday (>= 0.8)
34-
faraday-net_http (3.0.2)
35-
git (1.18.0)
35+
faraday-net_http (3.4.0)
36+
net-http (>= 0.5.0)
37+
git (1.19.1)
3638
addressable (~> 2.8)
3739
rchardet (~> 1.8)
38-
kramdown (2.4.0)
39-
rexml
40+
json (2.9.1)
41+
kramdown (2.5.1)
42+
rexml (>= 3.3.9)
4043
kramdown-parser-gfm (1.1.0)
4144
kramdown (~> 2.0)
45+
logger (1.6.4)
4246
nap (1.1.0)
43-
no_proxy_fix (0.1.2)
44-
octokit (7.2.0)
47+
net-http (0.6.0)
48+
uri
49+
octokit (9.2.0)
4550
faraday (>= 1, < 3)
4651
sawyer (~> 0.9)
4752
open4 (1.3.4)
48-
public_suffix (5.0.4)
53+
pstore (0.1.4)
54+
public_suffix (6.0.1)
4955
rchardet (1.8.0)
50-
rexml (3.2.6)
51-
ruby2_keywords (0.0.5)
56+
rexml (3.4.0)
5257
sawyer (0.9.2)
5358
addressable (>= 2.3.5)
5459
faraday (>= 0.17.3, < 3)
5560
terminal-table (3.0.2)
5661
unicode-display_width (>= 1.1.1, < 3)
57-
unicode-display_width (2.5.0)
62+
unicode-display_width (2.6.0)
63+
uri (1.0.2)
5864

5965
PLATFORMS
6066
x86_64-darwin-22

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 6.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "HapticFeedback",
88
platforms: [
9-
.iOS(.v11),
9+
.iOS(.v13),
1010
],
1111
products: [
1212
.library(name: "HapticFeedback", targets: ["HapticFeedback"]),

Package@swift-5.10.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// swift-tools-version: 5.10
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "HapticFeedback",
8+
platforms: [
9+
.iOS(.v13),
10+
],
11+
products: [
12+
.library(name: "HapticFeedback", targets: ["HapticFeedback"]),
13+
],
14+
dependencies: [],
15+
targets: [
16+
.target(name: "HapticFeedback", dependencies: []),
17+
]
18+
)

Package@swift-5.7.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PackageDescription
66
let package = Package(
77
name: "HapticFeedback",
88
platforms: [
9-
.iOS(.v11),
9+
.iOS(.v13),
1010
],
1111
products: [
1212
.library(name: "HapticFeedback", targets: ["HapticFeedback"]),

Package@swift-5.8.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PackageDescription
66
let package = Package(
77
name: "HapticFeedback",
88
platforms: [
9-
.iOS(.v11),
9+
.iOS(.v13),
1010
],
1111
products: [
1212
.library(name: "HapticFeedback", targets: ["HapticFeedback"]),

Package@swift-5.9.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "HapticFeedback",
8+
platforms: [
9+
.iOS(.v13),
10+
],
11+
products: [
12+
.library(name: "HapticFeedback", targets: ["HapticFeedback"]),
13+
],
14+
dependencies: [],
15+
targets: [
16+
.target(name: "HapticFeedback", dependencies: []),
17+
]
18+
)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ HapticFeedback.notification(.heavy).generate()
3131
```
3232

3333
## Requirements
34-
- iOS 11.0+
34+
- iOS 13.0+
3535
- Xcode 14.0
3636
- Swift 5.7
3737

Sources/HapticFeedback/Classes/HapticFeedback.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import UIKit
77

88
/// Enum defining different types of haptic feedback
9+
@MainActor
910
public enum HapticFeedback: Equatable {
1011
/// Haptic feedback for impact with a specified style
1112
case impact(UIImpactFeedbackGenerator.FeedbackStyle)

0 commit comments

Comments
 (0)