Skip to content

Commit

Permalink
fixing swift 5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Nov 5, 2024
1 parent f37ecdd commit e635c62
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 23 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ let package = Package(
.enableUpcomingFeature("ImplicitOpenExistentials"),
.enableUpcomingFeature("StrictConcurrency"),
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableExperimentalFeature("StrictConcurrency")
.enableExperimentalFeature("StrictConcurrency"),
.enableExperimentalFeature("AccessLevelOnImport")
]
),
.testTarget(
Expand Down
2 changes: 1 addition & 1 deletion [email protected]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.9
// swift-tools-version: 6.0
// swiftlint:disable explicit_acl explicit_top_level_acl
import PackageDescription

Expand Down
2 changes: 1 addition & 1 deletion Sources/IPSWDownloads/Board.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

import Foundation
public import Foundation

/// A struct representing a board with configuration details.
public struct Board: Sendable, Codable, Hashable, Equatable {
Expand Down
3 changes: 2 additions & 1 deletion Sources/IPSWDownloads/Data.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

import Foundation
public import Foundation

extension Data {
internal init(hexString: String) throws {
var data = Data(capacity: hexString.count / 2)
Expand Down
2 changes: 1 addition & 1 deletion Sources/IPSWDownloads/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

import Foundation
public import Foundation

/// A struct representing an Apple device along with its firmware and supported boards.
public struct Device: Sendable, Codable, Hashable, Equatable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/IPSWDownloads/Firmware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//

public import Foundation
import OperatingSystemVersion
public import OperatingSystemVersion

/// A struct representing firmware details of a device.
public struct Firmware: Sendable, Codable, Hashable, Equatable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/IPSWDownloads/FirmwareType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

import Foundation
public import Foundation

/// Type of Firmware file.
public enum FirmwareType: String, Sendable, Codable, Hashable, Equatable {
Expand Down
16 changes: 8 additions & 8 deletions Sources/IPSWDownloads/Generated/Client.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Generated by swift-openapi-generator, do not modify.
@_spi(Generated) import OpenAPIRuntime
@_spi(Generated) public import OpenAPIRuntime
#if os(Linux)
@preconcurrency import struct Foundation.URL
@preconcurrency import struct Foundation.Data
@preconcurrency import struct Foundation.Date
@preconcurrency public import struct Foundation.URL
@preconcurrency public import struct Foundation.Data
@preconcurrency public import struct Foundation.Date
#else
import struct Foundation.URL
import struct Foundation.Data
import struct Foundation.Date
public import struct Foundation.URL
public import struct Foundation.Data
public import struct Foundation.Date
#endif
import HTTPTypes
public import HTTPTypes
/// Download current and previous versions of Apple's iOS Firmware, iTunes and OTA updates.
internal struct Client: APIProtocol {
/// The underlying HTTP client.
Expand Down
14 changes: 7 additions & 7 deletions Sources/IPSWDownloads/Generated/Types.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Generated by swift-openapi-generator, do not modify.
@_spi(Generated) import OpenAPIRuntime
@_spi(Generated) public import OpenAPIRuntime
#if os(Linux)
@preconcurrency import struct Foundation.URL
@preconcurrency import struct Foundation.Data
@preconcurrency import struct Foundation.Date
@preconcurrency public import struct Foundation.URL
@preconcurrency public import struct Foundation.Data
@preconcurrency public import struct Foundation.Date
#else
import struct Foundation.URL
import struct Foundation.Data
import struct Foundation.Date
public import struct Foundation.URL
public import struct Foundation.Data
public import struct Foundation.Date
#endif
/// A type that performs HTTP operations defined by the OpenAPI document.
internal protocol APIProtocol: Sendable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/IPSWDownloads/RuntimeError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

import Foundation
public import Foundation

internal enum RuntimeError: Error, Sendable {
case invalidURL(String)
Expand Down

0 comments on commit e635c62

Please sign in to comment.