mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-10 17:46:07 -06:00
[PM-11133] Update Networking module for strict concurrency (#851)
This commit is contained in:
parent
c2d31c13ed
commit
2ed93f02d1
@ -14,7 +14,12 @@ let package = Package(
|
||||
),
|
||||
],
|
||||
targets: [
|
||||
.target(name: "Networking"),
|
||||
.target(name: "Networking",
|
||||
// TODO: PM-11195
|
||||
// This package can be updated to Swift 6, and this feature enablement removed
|
||||
swiftSettings: [
|
||||
.enableExperimentalFeature("StrictConcurrency"),
|
||||
]),
|
||||
.testTarget(
|
||||
name: "NetworkingTests",
|
||||
dependencies: ["Networking"]
|
||||
|
||||
@ -6,5 +6,5 @@ extension Logger {
|
||||
|
||||
/// The OSLog subsystem passed along with logs to the logging system to identify logs from this
|
||||
/// library.
|
||||
private static var subsystem = Bundle(for: HTTPService.self).bundleIdentifier!
|
||||
private static let subsystem = Bundle(for: HTTPService.self).bundleIdentifier!
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/// A type representing the HTTP method.
|
||||
///
|
||||
public struct HTTPMethod: Equatable {
|
||||
public struct HTTPMethod: Equatable, Sendable {
|
||||
/// The string value of the method.
|
||||
let rawValue: String
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@ import Foundation
|
||||
|
||||
/// A data model containing the details of an HTTP response that's been received.
|
||||
///
|
||||
public struct HTTPResponse: Equatable {
|
||||
public struct HTTPResponse: Equatable, Sendable {
|
||||
// MARK: Properties
|
||||
|
||||
/// Data received in the body of the response.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user