Skip to content

Commit 509402b

Browse files
Update min macOS version to equivalent iOS 15 (#27)
1 parent 1fc608b commit 509402b

31 files changed

+56
-56
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import PackageDescription
2121

2222
let package = Package(
2323
name: "FirebaseDataConnect",
24-
platforms: [.iOS(.v15), .macOS(.v11), .tvOS(.v15), .watchOS(.v8)],
24+
platforms: [.iOS(.v15), .macOS(.v12), .tvOS(.v15), .watchOS(.v8)],
2525
products: [
2626
.library(
2727
name: "FirebaseDataConnect",

Sources/BaseOperationRef.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414

1515
import Foundation
1616

17-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
17+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1818
public struct OperationResult<ResultData: Decodable> {
1919
public var data: ResultData
2020
}
2121

2222
// notional protocol that denotes a variable.
23-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
23+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2424
public protocol OperationVariable: Encodable, Hashable, Equatable {}
2525

26-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
26+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2727
protocol OperationRequest: Hashable, Equatable {
2828
associatedtype Variable: OperationVariable
2929
var operationName: String { get } // Name within Connector definition
3030
var variables: Variable? { get }
3131
}
3232

33-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
33+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
3434
public protocol OperationRef {
3535
associatedtype ResultData: Decodable
3636

Sources/CodecHelper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Foundation
2222
It is only for internal use by Data Connect generated code.
2323

2424
*/
25-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
25+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2626
public class CodecHelper<K: CodingKey> {
2727
// MARK: Encoding
2828

Sources/ConnectorConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import Foundation
1616

17-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
17+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1818
public struct ConnectorConfig: Hashable, Equatable {
1919
public private(set) var serviceId: String
2020
public private(set) var location: String

Sources/DataConnect.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import FirebaseAppCheck
1818
import FirebaseAuth
1919
import FirebaseCore
2020

21-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
21+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2222
public class DataConnect {
2323
private var connectorConfig: ConnectorConfig
2424
private var app: FirebaseApp
@@ -132,7 +132,7 @@ public class DataConnect {
132132
}
133133

134134
// This enum is public so the gen sdk can access it
135-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
135+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
136136
public enum CallerSDKType {
137137
case base // base sdk is directly used
138138
case generated // generated sdk is calling the base
@@ -142,7 +142,7 @@ public enum CallerSDKType {
142142

143143
// Support for creating or reusing DataConnect instances.
144144
// Instances are keyed by ConnectorConfig and FirebaseApp (projectID)
145-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
145+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
146146
private struct InstanceKey: Hashable, Equatable {
147147
let config: ConnectorConfig
148148
let app: FirebaseApp
@@ -159,7 +159,7 @@ private struct InstanceKey: Hashable, Equatable {
159159
}
160160
}
161161

162-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
162+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
163163
private class InstanceStore {
164164
let accessQ = DispatchQueue(
165165
label: "firebase.dataconnect.instanceQ",

Sources/DataConnectError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import Foundation
1616

17-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
17+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1818
public enum DataConnectError: Error {
1919
// no firebase app specified. configure not complete
2020
case appNotConfigured

Sources/DataConnectSettings.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import Foundation
1616

17-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
17+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1818
public struct DataConnectSettings: Hashable, Equatable {
1919
public private(set) var host: String
2020
public private(set) var port: Int

Sources/Internal/CodableHelpers.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import Foundation
1616

17-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
17+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1818
protocol CodableConverter {
1919
associatedtype E: Encodable
2020
associatedtype D: Decodable
@@ -23,7 +23,7 @@ protocol CodableConverter {
2323
func decode(input: D) throws -> E
2424
}
2525

26-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
26+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2727
class Int64CodableConverter: CodableConverter {
2828
func encode(input: Int64?) throws -> String? {
2929
guard let input else {
@@ -46,7 +46,7 @@ class Int64CodableConverter: CodableConverter {
4646
}
4747
}
4848

49-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
49+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5050
class UUIDCodableConverter: CodableConverter {
5151
func encode(input: UUID?) throws -> String? {
5252
guard let input else {

Sources/Internal/CodableTimestamp.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private enum TimestampKeys: String, CodingKey {
4242
* Note: this is implemented manually here because the Swift compiler can't synthesize these methods
4343
* when declaring an extension to conform to Codable.
4444
*/
45-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
45+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
4646
extension CodableTimestamp {
4747
public init(from decoder: any Swift.Decoder) throws {
4848
let container = try decoder.singleValueContainer()
@@ -75,7 +75,7 @@ extension CodableTimestamp {
7575
}
7676

7777
/** Extends Timestamp to conform to Codable. */
78-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
78+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
7979
extension Timestamp: CodableTimestamp {}
8080

8181
class CodableTimestampHelper {

Sources/Internal/Codec.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ import Foundation
1616

1717
import SwiftProtobuf
1818

19-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
19+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2020
typealias FirebaseDataConnectExecuteMutationRequest =
2121
Google_Firebase_Dataconnect_V1beta_ExecuteMutationRequest
2222
typealias FirebaseDataConnectExecuteQueryRequest =
2323
Google_Firebase_Dataconnect_V1beta_ExecuteQueryRequest
2424

25-
@available(iOS 15.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
25+
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2626
class Codec {
2727
// Encode Codable to Protos
2828
func encode(args: any Encodable) throws -> Google_Protobuf_Struct {

0 commit comments

Comments
 (0)