diff --git a/CHANGELOG.md b/CHANGELOG.md index 785578fc3..93131527f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ __New features__ - Adds isNull QueryConstraint along with the ability set/forceSet null using ParseOperation ([#308](https://github.com/parse-community/Parse-Swift/pull/308)), thanks to [Corey Baker](https://github.com/cbaker6). __Improvements__ +- (Breaking Change) Change boolean configuration parameters to match Swift conventions. The compilor should help with name changes ([#311](https://github.com/parse-community/Parse-Swift/pull/311)), thanks to [Corey Baker](https://github.com/cbaker6). - Improve QueryWhere by making at a set of QueryConstraint's instead of any array. This dedupes the same constraint when encoding the query; improving the encoding speed when the same constraints are added ([#308](https://github.com/parse-community/Parse-Swift/pull/308)), thanks to [Corey Baker](https://github.com/cbaker6). ### 2.5.1 @@ -78,7 +79,7 @@ __Fixes__ [Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.2.3...2.2.4) __Fixes__ -- Delete all stored Parse data and cache when deleteKeychainIfNeeded is true ([#280](https://github.com/parse-community/Parse-Swift/pull/280)), thanks to [Corey Baker](https://github.com/cbaker6). +- Delete all stored Parse data and cache when isDeletingKeychainIfNeeded is true ([#280](https://github.com/parse-community/Parse-Swift/pull/280)), thanks to [Corey Baker](https://github.com/cbaker6). ### 2.2.3 [Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.2.2...2.2.3) @@ -320,7 +321,7 @@ __Improvements__ - Append instead of replace when using query select, exclude, include, and fields ([#155](https://github.com/parse-community/Parse-Swift/pull/155)), thanks to [Corey Baker](https://github.com/cbaker6). __Fixes__ -- Transactions currently don't work when using MongoDB(postgres does work) on the parse-server. Internal use of transactions are disabled by default. If you want the Swift SDK to use transactions internally, you need to set useTransactionsInternally=true when configuring the client. It is recommended not to use transactions if you are using MongoDB until it's fixed on the server ([#158](https://github.com/parse-community/Parse-Swift/pull/158)), thanks to [Corey Baker](https://github.com/cbaker6). +- Transactions currently don't work when using MongoDB(postgres does work) on the parse-server. Internal use of transactions are disabled by default. If you want the Swift SDK to use transactions internally, you need to set isUsingTransactionsInternally=true when configuring the client. It is recommended not to use transactions if you are using MongoDB until it's fixed on the server ([#158](https://github.com/parse-community/Parse-Swift/pull/158)), thanks to [Corey Baker](https://github.com/cbaker6). ### 1.8.0 [Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.7.2...1.8.0) diff --git a/ParseSwift.playground/Sources/Common.swift b/ParseSwift.playground/Sources/Common.swift index 0c1bf8205..ce8d88b82 100644 --- a/ParseSwift.playground/Sources/Common.swift +++ b/ParseSwift.playground/Sources/Common.swift @@ -6,12 +6,12 @@ public func initializeParse() { clientKey: "clientKey", masterKey: "masterKey", serverURL: URL(string: "http://localhost:1337/1")!, - useTransactions: false) + isUsingTransactions: false) } public func initializeParseCustomObjectId() { ParseSwift.initialize(applicationId: "applicationId", clientKey: "clientKey", serverURL: URL(string: "http://localhost:1337/1")!, - allowCustomObjectId: true) + isAllowingCustomObjectIds: true) } diff --git a/Sources/ParseSwift/API/API+Command.swift b/Sources/ParseSwift/API/API+Command.swift index 2c4abe6dd..6560d834a 100644 --- a/Sources/ParseSwift/API/API+Command.swift +++ b/Sources/ParseSwift/API/API+Command.swift @@ -386,7 +386,8 @@ internal extension API.Command { // MARK: Saving ParseObjects static func save(_ object: T, isIgnoreCustomObjectIdConfig: Bool) throws -> API.Command where T: ParseObject { - if ParseSwift.configuration.allowCustomObjectId && object.objectId == nil && !isIgnoreCustomObjectIdConfig { + if ParseSwift.configuration.isAllowingCustomObjectIds + && object.objectId == nil && !isIgnoreCustomObjectIdConfig { throw ParseError(code: .missingObjectId, message: "objectId must not be nil") } if object.isSaved { diff --git a/Sources/ParseSwift/Coding/ParseEncoder.swift b/Sources/ParseSwift/Coding/ParseEncoder.swift index ff136e2bc..5f07a8c07 100644 --- a/Sources/ParseSwift/Coding/ParseEncoder.swift +++ b/Sources/ParseSwift/Coding/ParseEncoder.swift @@ -126,7 +126,7 @@ public struct ParseEncoder { objectsSavedBeforeThisOne: [String: PointerType]?, filesSavedBeforeThisOne: [UUID: ParseFile]?) throws -> (encoded: Data, unique: PointerType?, unsavedChildren: [Encodable]) { let keysToSkip: Set! - if !ParseSwift.configuration.allowCustomObjectId { + if !ParseSwift.configuration.isAllowingCustomObjectIds { keysToSkip = SkipKeys.object.keys() } else { keysToSkip = SkipKeys.customObjectId.keys() @@ -148,7 +148,7 @@ public struct ParseEncoder { objectsSavedBeforeThisOne: [String: PointerType]?, filesSavedBeforeThisOne: [UUID: ParseFile]?) throws -> (encoded: Data, unique: PointerType?, unsavedChildren: [Encodable]) { let keysToSkip: Set! - if !ParseSwift.configuration.allowCustomObjectId { + if !ParseSwift.configuration.isAllowingCustomObjectIds { keysToSkip = SkipKeys.object.keys() } else { keysToSkip = SkipKeys.customObjectId.keys() diff --git a/Sources/ParseSwift/Objects/ParseInstallation+async.swift b/Sources/ParseSwift/Objects/ParseInstallation+async.swift index 80e084801..512676be9 100644 --- a/Sources/ParseSwift/Objects/ParseInstallation+async.swift +++ b/Sources/ParseSwift/Objects/ParseInstallation+async.swift @@ -37,16 +37,16 @@ public extension ParseInstallation { /** Saves the `ParseInstallation` *asynchronously*. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: Returns saved `ParseInstallation`. - throws: An error of type `ParseError`. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -150,7 +150,7 @@ public extension Sequence where Element: ParseInstallation { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: Returns an array of Result enums with the object if a save was successful or a @@ -160,10 +160,10 @@ public extension Sequence where Element: ParseInstallation { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -173,7 +173,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func saveAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in @@ -203,7 +203,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func createAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.createAll(batchLimit: limit, @@ -232,7 +232,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func replaceAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.replaceAll(batchLimit: limit, @@ -261,7 +261,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ internal func updateAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.updateAll(batchLimit: limit, @@ -287,7 +287,7 @@ public extension Sequence where Element: ParseInstallation { the transactions can fail. */ func deleteAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.deleteAll(batchLimit: limit, diff --git a/Sources/ParseSwift/Objects/ParseInstallation+combine.swift b/Sources/ParseSwift/Objects/ParseInstallation+combine.swift index 66295440a..374a44008 100644 --- a/Sources/ParseSwift/Objects/ParseInstallation+combine.swift +++ b/Sources/ParseSwift/Objects/ParseInstallation+combine.swift @@ -38,15 +38,15 @@ public extension ParseInstallation { Saves the `ParseInstallation` *asynchronously* and publishes when complete. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: A publisher that eventually produces a single value and then finishes or fails. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -148,7 +148,7 @@ public extension Sequence where Element: ParseInstallation { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: A publisher that eventually produces an an array of Result enums with the object if a save was @@ -157,10 +157,10 @@ public extension Sequence where Element: ParseInstallation { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -170,7 +170,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func saveAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in @@ -199,7 +199,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func createAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.createAll(batchLimit: limit, @@ -227,7 +227,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func replaceAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.replaceAll(batchLimit: limit, @@ -255,7 +255,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ internal func updateAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in @@ -282,7 +282,7 @@ public extension Sequence where Element: ParseInstallation { the transactions can fail. */ func deleteAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.deleteAll(batchLimit: limit, diff --git a/Sources/ParseSwift/Objects/ParseInstallation.swift b/Sources/ParseSwift/Objects/ParseInstallation.swift index 9bf34cf53..7efe18504 100644 --- a/Sources/ParseSwift/Objects/ParseInstallation.swift +++ b/Sources/ParseSwift/Objects/ParseInstallation.swift @@ -93,7 +93,7 @@ extension ParseInstallation { } func endpoint(_ method: API.Method) -> API.Endpoint { - if !ParseSwift.configuration.allowCustomObjectId || method != .POST { + if !ParseSwift.configuration.isAllowingCustomObjectIds || method != .POST { return endpoint } else { return .installations @@ -461,16 +461,16 @@ extension ParseInstallation { Saves the `ParseInstallation` *synchronously* and throws an error if there's an issue. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - throws: An error of type `ParseError`. - returns: Returns saved `ParseInstallation`. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using @@ -512,17 +512,17 @@ extension ParseInstallation { Saves the `ParseInstallation` *asynchronously* and executes the given callback block. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - parameter callbackQueue: The queue to return to after completion. Default value of .main. - parameter completion: The block to execute. It should have the following argument signature: `(Result)`. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using @@ -660,7 +660,7 @@ extension ParseInstallation { } func saveCommand(isIgnoreCustomObjectIdConfig: Bool = false) throws -> API.Command { - if ParseSwift.configuration.allowCustomObjectId && objectId == nil && !isIgnoreCustomObjectIdConfig { + if ParseSwift.configuration.isAllowingCustomObjectIds && objectId == nil && !isIgnoreCustomObjectIdConfig { throw ParseError(code: .missingObjectId, message: "objectId must not be nil") } if isSaved { @@ -814,7 +814,7 @@ public extension Sequence where Element: ParseInstallation { is greater than the `batchLimit`, the objects will be sent to the server in waves up to the `batchLimit`. Defaults to 50. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that @@ -826,10 +826,10 @@ public extension Sequence where Element: ParseInstallation { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using @@ -839,7 +839,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func saveAll(batchLimit limit: Int? = nil, // swiftlint:disable:this function_body_length - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) throws -> [(Result)] { var options = options @@ -914,7 +914,7 @@ public extension Sequence where Element: ParseInstallation { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - parameter callbackQueue: The queue to return to after completion. Default value of .main. @@ -924,10 +924,10 @@ public extension Sequence where Element: ParseInstallation { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using @@ -938,7 +938,7 @@ public extension Sequence where Element: ParseInstallation { */ func saveAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = [], callbackQueue: DispatchQueue = .main, @@ -972,7 +972,7 @@ public extension Sequence where Element: ParseInstallation { */ func createAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -1005,7 +1005,7 @@ public extension Sequence where Element: ParseInstallation { */ func replaceAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -1038,7 +1038,7 @@ public extension Sequence where Element: ParseInstallation { */ internal func updateAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -1302,7 +1302,7 @@ public extension Sequence where Element: ParseInstallation { desires a different policy, it should be inserted in `options`. */ func deleteAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) throws -> [(Result)] { var options = options options.insert(.cachePolicy(.reloadIgnoringLocalCacheData)) @@ -1351,7 +1351,7 @@ public extension Sequence where Element: ParseInstallation { */ func deleteAll( batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void diff --git a/Sources/ParseSwift/Objects/ParseObject+async.swift b/Sources/ParseSwift/Objects/ParseObject+async.swift index 9bdbcc1bb..50f22ab54 100644 --- a/Sources/ParseSwift/Objects/ParseObject+async.swift +++ b/Sources/ParseSwift/Objects/ParseObject+async.swift @@ -35,7 +35,7 @@ public extension ParseObject { /** Saves the `ParseObject` *asynchronously*. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: Returns the saved `ParseObject`. @@ -132,7 +132,7 @@ public extension Sequence where Element: ParseObject { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: Returns an array of Result enums with the object if a save was successful or a @@ -141,10 +141,10 @@ public extension Sequence where Element: ParseObject { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -154,7 +154,7 @@ public extension Sequence where Element: ParseObject { desires a different policy, it should be inserted in `options`. */ func saveAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in @@ -184,7 +184,7 @@ public extension Sequence where Element: ParseObject { desires a different policy, it should be inserted in `options`. */ func createAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.createAll(batchLimit: limit, @@ -212,7 +212,7 @@ public extension Sequence where Element: ParseObject { desires a different policy, it should be inserted in `options`. */ func replaceAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.replaceAll(batchLimit: limit, @@ -240,7 +240,7 @@ public extension Sequence where Element: ParseObject { desires a different policy, it should be inserted in `options`. */ internal func updateAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.updateAll(batchLimit: limit, @@ -265,7 +265,7 @@ public extension Sequence where Element: ParseObject { the transactions can fail. */ func deleteAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.deleteAll(batchLimit: limit, diff --git a/Sources/ParseSwift/Objects/ParseObject+combine.swift b/Sources/ParseSwift/Objects/ParseObject+combine.swift index d3a084200..85ceecfaa 100644 --- a/Sources/ParseSwift/Objects/ParseObject+combine.swift +++ b/Sources/ParseSwift/Objects/ParseObject+combine.swift @@ -36,14 +36,14 @@ public extension ParseObject { /** Saves the `ParseObject` *asynchronously* and publishes when complete. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: A publisher that eventually produces a single value and then finishes or fails. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -141,7 +141,7 @@ public extension Sequence where Element: ParseObject { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: A publisher that eventually produces an an array of Result enums with the object if a save was @@ -149,10 +149,10 @@ public extension Sequence where Element: ParseObject { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -160,7 +160,7 @@ public extension Sequence where Element: ParseObject { client-side checks are disabled. Developers are responsible for handling such cases. */ func saveAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in @@ -187,7 +187,7 @@ public extension Sequence where Element: ParseObject { the transactions can fail. */ func createAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.createAll(batchLimit: limit, @@ -212,7 +212,7 @@ public extension Sequence where Element: ParseObject { the transactions can fail. */ func replaceAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.replaceAll(batchLimit: limit, @@ -237,7 +237,7 @@ public extension Sequence where Element: ParseObject { the transactions can fail. */ internal func updateAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in @@ -263,7 +263,7 @@ public extension Sequence where Element: ParseObject { the transactions can fail. */ func deleteAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.deleteAll(batchLimit: limit, diff --git a/Sources/ParseSwift/Objects/ParseObject.swift b/Sources/ParseSwift/Objects/ParseObject.swift index 4d81aabef..ee602757a 100644 --- a/Sources/ParseSwift/Objects/ParseObject.swift +++ b/Sources/ParseSwift/Objects/ParseObject.swift @@ -113,7 +113,7 @@ transactions for this call. - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: Returns an array of Result enums with the object if a save was successful or a @@ -122,10 +122,10 @@ transactions for this call. - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -135,7 +135,7 @@ transactions for this call. desires a different policy, it should be inserted in `options`. */ func saveAll(batchLimit limit: Int? = nil, // swiftlint:disable:this function_body_length - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) throws -> [(Result)] { var options = options @@ -209,7 +209,7 @@ transactions for this call. - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - parameter callbackQueue: The queue to return to after completion. Default value of .main. @@ -218,10 +218,10 @@ transactions for this call. - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -232,7 +232,7 @@ transactions for this call. */ func saveAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = [], callbackQueue: DispatchQueue = .main, @@ -266,7 +266,7 @@ transactions for this call. */ func createAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -298,7 +298,7 @@ transactions for this call. */ func replaceAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -330,7 +330,7 @@ transactions for this call. */ internal func updateAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -582,7 +582,7 @@ transactions for this call. desires a different policy, it should be inserted in `options`. */ func deleteAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) throws -> [(Result)] { var options = options options.insert(.cachePolicy(.reloadIgnoringLocalCacheData)) @@ -628,7 +628,7 @@ transactions for this call. */ func deleteAll( batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -775,16 +775,16 @@ extension ParseObject { /** Saves the `ParseObject` *synchronously* and throws an error if there's an issue. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - throws: An error of type `ParseError`. - returns: Returns saved `ParseObject`. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -824,16 +824,16 @@ extension ParseObject { Saves the `ParseObject` *asynchronously* and executes the given callback block. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - parameter callbackQueue: The queue to return to after completion. Default value of .main. - parameter completion: The block to execute. It should have the following argument signature: `(Result)`. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -1075,7 +1075,7 @@ extension ParseObject { // MARK: Savable Encodable Version internal extension ParseType { func saveAll(objects: [ParseType], - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) throws -> [(Result)] { try API.NonParseBodyCommand .batch(objects: objects, diff --git a/Sources/ParseSwift/Objects/ParseUser+async.swift b/Sources/ParseSwift/Objects/ParseUser+async.swift index 01b2aaca2..f3042888c 100644 --- a/Sources/ParseSwift/Objects/ParseUser+async.swift +++ b/Sources/ParseSwift/Objects/ParseUser+async.swift @@ -158,16 +158,16 @@ public extension ParseUser { /** Saves the `ParseUser` *asynchronously*. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: Returns the saved `ParseUser`. - throws: An error of type `ParseError`. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -270,7 +270,7 @@ public extension Sequence where Element: ParseUser { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: Returns an array of Result enums with the object if a save was successful or a @@ -280,10 +280,10 @@ public extension Sequence where Element: ParseUser { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -293,7 +293,7 @@ public extension Sequence where Element: ParseUser { desires a different policy, it should be inserted in `options`. */ func saveAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in @@ -323,7 +323,7 @@ public extension Sequence where Element: ParseUser { desires a different policy, it should be inserted in `options`. */ func createAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.createAll(batchLimit: limit, @@ -352,7 +352,7 @@ public extension Sequence where Element: ParseUser { desires a different policy, it should be inserted in `options`. */ func replaceAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.replaceAll(batchLimit: limit, @@ -381,7 +381,7 @@ public extension Sequence where Element: ParseUser { desires a different policy, it should be inserted in `options`. */ internal func updateAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.updateAll(batchLimit: limit, @@ -407,7 +407,7 @@ public extension Sequence where Element: ParseUser { the transactions can fail. */ func deleteAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) async throws -> [(Result)] { try await withCheckedThrowingContinuation { continuation in self.deleteAll(batchLimit: limit, diff --git a/Sources/ParseSwift/Objects/ParseUser+combine.swift b/Sources/ParseSwift/Objects/ParseUser+combine.swift index 715446313..3b0c22b52 100644 --- a/Sources/ParseSwift/Objects/ParseUser+combine.swift +++ b/Sources/ParseSwift/Objects/ParseUser+combine.swift @@ -156,15 +156,15 @@ public extension ParseUser { Saves the `ParseUser` *asynchronously* and publishes when complete. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: A publisher that eventually produces a single value and then finishes or fails. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -264,7 +264,7 @@ public extension Sequence where Element: ParseUser { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - returns: A publisher that eventually produces an an array of Result enums with the object if a save was @@ -273,10 +273,10 @@ public extension Sequence where Element: ParseUser { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -284,7 +284,7 @@ public extension Sequence where Element: ParseUser { client-side checks are disabled. Developers are responsible for handling such cases. */ func saveAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in @@ -311,7 +311,7 @@ public extension Sequence where Element: ParseUser { the transactions can fail. */ func createAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.createAll(batchLimit: limit, @@ -337,7 +337,7 @@ public extension Sequence where Element: ParseUser { the transactions can fail. */ func replaceAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in @@ -364,7 +364,7 @@ public extension Sequence where Element: ParseUser { the transactions can fail. */ internal func updateAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in @@ -391,7 +391,7 @@ public extension Sequence where Element: ParseUser { the transactions can fail. */ func deleteAllPublisher(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) -> Future<[(Result)], ParseError> { Future { promise in self.deleteAll(batchLimit: limit, diff --git a/Sources/ParseSwift/Objects/ParseUser.swift b/Sources/ParseSwift/Objects/ParseUser.swift index 32224bccd..f05d7c13b 100644 --- a/Sources/ParseSwift/Objects/ParseUser.swift +++ b/Sources/ParseSwift/Objects/ParseUser.swift @@ -76,7 +76,7 @@ extension ParseUser { } func endpoint(_ method: API.Method) -> API.Endpoint { - if !ParseSwift.configuration.allowCustomObjectId || method != .POST { + if !ParseSwift.configuration.isAllowingCustomObjectIds || method != .POST { return endpoint } else { return .users @@ -849,16 +849,16 @@ extension ParseUser { Saves the `ParseUser` *synchronously* and throws an error if there's an issue. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - throws: An error of type `ParseError`. - returns: Returns saved `ParseUser`. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -900,17 +900,17 @@ extension ParseUser { Saves the `ParseUser` *asynchronously* and executes the given callback block. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - parameter callbackQueue: The queue to return to after completion. Default value of .main. - parameter completion: The block to execute. It should have the following argument signature: `(Result)`. - important: If an object saved has the same objectId as current, it will automatically update the current. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -1042,7 +1042,7 @@ extension ParseUser { } func saveCommand(isIgnoreCustomObjectIdConfig: Bool = false) throws -> API.Command { - if ParseSwift.configuration.allowCustomObjectId && objectId == nil && !isIgnoreCustomObjectIdConfig { + if ParseSwift.configuration.isAllowingCustomObjectIds && objectId == nil && !isIgnoreCustomObjectIdConfig { throw ParseError(code: .missingObjectId, message: "objectId must not be nil") } if isSaved { @@ -1218,7 +1218,7 @@ public extension Sequence where Element: ParseUser { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. @@ -1228,10 +1228,10 @@ public extension Sequence where Element: ParseUser { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -1241,7 +1241,7 @@ public extension Sequence where Element: ParseUser { desires a different policy, it should be inserted in `options`. */ func saveAll(batchLimit limit: Int? = nil, // swiftlint:disable:this function_body_length - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = []) throws -> [(Result)] { var childObjects = [String: PointerType]() @@ -1317,7 +1317,7 @@ public extension Sequence where Element: ParseUser { - parameter transaction: Treat as an all-or-nothing operation. If some operation failure occurs that prevents the transaction from completing, then none of the objects are committed to the Parse Server database. - parameter isIgnoreCustomObjectIdConfig: Ignore checking for `objectId` - when `ParseConfiguration.allowCustomObjectId = true` to allow for mixed + when `ParseConfiguration.isAllowingCustomObjectIds = true` to allow for mixed `objectId` environments. Defaults to false. - parameter options: A set of header options sent to the server. Defaults to an empty set. - parameter callbackQueue: The queue to return to after completion. Default value of .main. @@ -1327,10 +1327,10 @@ public extension Sequence where Element: ParseUser { - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else the transactions can fail. - - warning: If you are using `ParseConfiguration.allowCustomObjectId = true` + - warning: If you are using `ParseConfiguration.isAllowingCustomObjectIds = true` and plan to generate all of your `objectId`'s on the client-side then you should leave `isIgnoreCustomObjectIdConfig = false`. Setting - `ParseConfiguration.allowCustomObjectId = true` and + `ParseConfiguration.isAllowingCustomObjectIds = true` and `isIgnoreCustomObjectIdConfig = true` means the client will generate `objectId`'s and the server will generate an `objectId` only when the client does not provide one. This can increase the probability of colliiding `objectId`'s as the client and server `objectId`'s may be generated using @@ -1341,7 +1341,7 @@ public extension Sequence where Element: ParseUser { */ func saveAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, isIgnoreCustomObjectIdConfig: Bool = false, options: API.Options = [], callbackQueue: DispatchQueue = .main, @@ -1375,7 +1375,7 @@ public extension Sequence where Element: ParseUser { */ func createAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -1408,7 +1408,7 @@ public extension Sequence where Element: ParseUser { */ func replaceAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -1441,7 +1441,7 @@ public extension Sequence where Element: ParseUser { */ internal func updateAll( // swiftlint:disable:this function_body_length cyclomatic_complexity batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void @@ -1699,7 +1699,7 @@ public extension Sequence where Element: ParseUser { desires a different policy, it should be inserted in `options`. */ func deleteAll(batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = []) throws -> [(Result)] { var options = options options.insert(.cachePolicy(.reloadIgnoringLocalCacheData)) @@ -1747,7 +1747,7 @@ public extension Sequence where Element: ParseUser { */ func deleteAll( batchLimit limit: Int? = nil, - transaction: Bool = ParseSwift.configuration.useTransactions, + transaction: Bool = ParseSwift.configuration.isUsingTransactions, options: API.Options = [], callbackQueue: DispatchQueue = .main, completion: @escaping (Result<[(Result)], ParseError>) -> Void diff --git a/Sources/ParseSwift/Parse.swift b/Sources/ParseSwift/Parse.swift index bd41faccd..c51404026 100644 --- a/Sources/ParseSwift/Parse.swift +++ b/Sources/ParseSwift/Parse.swift @@ -24,11 +24,11 @@ public struct ParseConfiguration { public internal(set) var liveQuerysServerURL: URL? /// Allows objectIds to be created on the client. - public internal(set) var allowCustomObjectId = false + public internal(set) var isAllowingCustomObjectIds = false /// Use transactions when saving/updating multiple objects. /// - warning: This is experimental. - public internal(set) var useTransactions = false + public internal(set) var isUsingTransactions = false /// The default caching policy for all http requests that determines when to /// return a response from the cache. Defaults to `useProtocolCachePolicy`. @@ -50,11 +50,11 @@ public struct ParseConfiguration { /// If your app previously used the iOS Objective-C SDK, setting this value /// to `true` will attempt to migrate relevant data stored in the Keychain to /// ParseSwift. Defaults to `false`. - public internal(set) var migrateFromObjcSDK: Bool = false + public internal(set) var isMigratingFromObjcSDK: Bool = false /// Deletes the Parse Keychain when the app is running for the first time. /// Defaults to `false`. - public internal(set) var deleteKeychainIfNeeded: Bool = false + public internal(set) var isDeletingKeychainIfNeeded: Bool = false /// Maximum number of times to try to connect to Parse Server. /// Defaults to 5. @@ -73,9 +73,9 @@ public struct ParseConfiguration { - parameter masterKey: The master key of your Parse application. - parameter serverURL: The server URL to connect to Parse Server. - parameter liveQueryServerURL: The live query server URL to connect to Parse Server. - - parameter allowCustomObjectId: Allows objectIds to be created on the client. + - parameter isAllowingCustomObjectIds: Allows objectIds to be created on the client. side for each object. Must be enabled on the server to work. - - parameter useTransactions: Use transactions when saving/updating multiple objects. + - parameter isUsingTransactions: Use transactions when saving/updating multiple objects. - parameter keyValueStore: A key/value store that conforms to the `ParseKeyValueStore` protocol. Defaults to `nil` in which one will be created an memory, but never persisted. For Linux, this this is the only store available since there is no Keychain. Linux users should replace this store with an @@ -85,9 +85,9 @@ public struct ParseConfiguration { for more info. - parameter cacheMemoryCapacity: The memory capacity of the cache, in bytes. Defaults to 512KB. - parameter cacheDiskCapacity: The disk capacity of the cache, in bytes. Defaults to 10MB. - - parameter migrateFromObjcSDK: If your app previously used the iOS Objective-C SDK, setting this value + - parameter isMigratingFromObjcSDK: If your app previously used the iOS Objective-C SDK, setting this value to `true` will attempt to migrate relevant data stored in the Keychain to ParseSwift. Defaults to `false`. - - parameter deleteKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time. + - parameter isDeletingKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time. Defaults to `false`. - parameter httpAdditionalHeaders: A dictionary of additional headers to send with requests. See Apple's [documentation](https://developer.apple.com/documentation/foundation/urlsessionconfiguration/1411532-httpadditionalheaders) @@ -99,21 +99,21 @@ public struct ParseConfiguration { It should have the following argument signature: `(challenge: URLAuthenticationChallenge, completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void`. See Apple's [documentation](https://developer.apple.com/documentation/foundation/urlsessiontaskdelegate/1411595-urlsession) for more for details. - - warning: `useTransactions` is experimental. + - warning: `isUsingTransactions` is experimental. */ public init(applicationId: String, clientKey: String? = nil, masterKey: String? = nil, serverURL: URL, liveQueryServerURL: URL? = nil, - allowCustomObjectId: Bool = false, - useTransactions: Bool = false, + isAllowingCustomObjectIds: Bool = false, + isUsingTransactions: Bool = false, keyValueStore: ParseKeyValueStore? = nil, requestCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, cacheMemoryCapacity: Int = 512_000, cacheDiskCapacity: Int = 10_000_000, - migrateFromObjcSDK: Bool = false, - deleteKeychainIfNeeded: Bool = false, + isMigratingFromObjcSDK: Bool = false, + isDeletingKeychainIfNeeded: Bool = false, httpAdditionalHeaders: [AnyHashable: Any]? = nil, maxConnectionAttempts: Int = 5, authentication: ((URLAuthenticationChallenge, @@ -124,8 +124,8 @@ public struct ParseConfiguration { self.masterKey = masterKey self.serverURL = serverURL self.liveQuerysServerURL = liveQueryServerURL - self.allowCustomObjectId = allowCustomObjectId - self.useTransactions = useTransactions + self.isAllowingCustomObjectIds = isAllowingCustomObjectIds + self.isUsingTransactions = isUsingTransactions self.mountPath = "/" + serverURL.pathComponents .filter { $0 != "/" } .joined(separator: "/") @@ -133,8 +133,8 @@ public struct ParseConfiguration { self.requestCachePolicy = requestCachePolicy self.cacheMemoryCapacity = cacheMemoryCapacity self.cacheDiskCapacity = cacheDiskCapacity - self.migrateFromObjcSDK = migrateFromObjcSDK - self.deleteKeychainIfNeeded = deleteKeychainIfNeeded + self.isMigratingFromObjcSDK = isMigratingFromObjcSDK + self.isDeletingKeychainIfNeeded = isDeletingKeychainIfNeeded self.httpAdditionalHeaders = httpAdditionalHeaders self.maxConnectionAttempts = maxConnectionAttempts ParseStorage.shared.use(keyValueStore ?? InMemoryKeyValueStore()) @@ -158,7 +158,7 @@ public struct ParseSwift { Self.configuration = configuration Self.sessionDelegate = ParseURLSessionDelegate(callbackQueue: .main, authentication: configuration.authentication) - deleteKeychainIfNeeded() + isDeletingKeychainIfNeeded() do { let previousSDKVersion = try ParseVersion(ParseVersion.current) @@ -209,7 +209,7 @@ public struct ParseSwift { BaseParseInstallation.createNewInstallationIfNeeded() #if !os(Linux) && !os(Android) && !os(Windows) - if configuration.migrateFromObjcSDK { + if configuration.isMigratingFromObjcSDK { if let identifier = Bundle.main.bundleIdentifier { let objcParseKeychain = KeychainStore(service: "\(identifier).com.parse.sdk") guard let installationId: String = objcParseKeychain.object(forKey: "installationId"), @@ -234,9 +234,9 @@ public struct ParseSwift { - parameter masterKey: The master key of your Parse application. - parameter serverURL: The server URL to connect to Parse Server. - parameter liveQueryServerURL: The live query server URL to connect to Parse Server. - - parameter allowCustomObjectId: Allows objectIds to be created on the client. + - parameter isAllowingCustomObjectIds: Allows objectIds to be created on the client. side for each object. Must be enabled on the server to work. - - parameter useTransactions: Use transactions when saving/updating multiple objects. + - parameter isUsingTransactions: Use transactions when saving/updating multiple objects. - parameter keyValueStore: A key/value store that conforms to the `ParseKeyValueStore` protocol. Defaults to `nil` in which one will be created an memory, but never persisted. For Linux, this this is the only store available since there is no Keychain. Linux users should replace this store with an @@ -246,9 +246,9 @@ public struct ParseSwift { for more info. - parameter cacheMemoryCapacity: The memory capacity of the cache, in bytes. Defaults to 512KB. - parameter cacheDiskCapacity: The disk capacity of the cache, in bytes. Defaults to 10MB. - - parameter migrateFromObjcSDK: If your app previously used the iOS Objective-C SDK, setting this value + - parameter isMigratingFromObjcSDK: If your app previously used the iOS Objective-C SDK, setting this value to `true` will attempt to migrate relevant data stored in the Keychain to ParseSwift. Defaults to `false`. - - parameter deleteKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time. + - parameter isDeletingKeychainIfNeeded: Deletes the Parse Keychain when the app is running for the first time. Defaults to `false`. - parameter httpAdditionalHeaders: A dictionary of additional headers to send with requests. See Apple's [documentation](https://developer.apple.com/documentation/foundation/urlsessionconfiguration/1411532-httpadditionalheaders) @@ -258,7 +258,7 @@ public struct ParseSwift { It should have the following argument signature: `(challenge: URLAuthenticationChallenge, completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void`. See Apple's [documentation](https://developer.apple.com/documentation/foundation/urlsessiontaskdelegate/1411595-urlsession) for more for details. - - warning: `useTransactions` is experimental. + - warning: `isUsingTransactions` is experimental. */ static public func initialize( applicationId: String, @@ -266,14 +266,14 @@ public struct ParseSwift { masterKey: String? = nil, serverURL: URL, liveQueryServerURL: URL? = nil, - allowCustomObjectId: Bool = false, - useTransactions: Bool = false, + isAllowingCustomObjectIds: Bool = false, + isUsingTransactions: Bool = false, keyValueStore: ParseKeyValueStore? = nil, requestCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, cacheMemoryCapacity: Int = 512_000, cacheDiskCapacity: Int = 10_000_000, - migrateFromObjcSDK: Bool = false, - deleteKeychainIfNeeded: Bool = false, + isMigratingFromObjcSDK: Bool = false, + isDeletingKeychainIfNeeded: Bool = false, httpAdditionalHeaders: [AnyHashable: Any]? = nil, maxConnectionAttempts: Int = 5, authentication: ((URLAuthenticationChallenge, @@ -285,14 +285,14 @@ public struct ParseSwift { masterKey: masterKey, serverURL: serverURL, liveQueryServerURL: liveQueryServerURL, - allowCustomObjectId: allowCustomObjectId, - useTransactions: useTransactions, + isAllowingCustomObjectIds: isAllowingCustomObjectIds, + isUsingTransactions: isUsingTransactions, keyValueStore: keyValueStore, requestCachePolicy: requestCachePolicy, cacheMemoryCapacity: cacheMemoryCapacity, cacheDiskCapacity: cacheDiskCapacity, - migrateFromObjcSDK: migrateFromObjcSDK, - deleteKeychainIfNeeded: deleteKeychainIfNeeded, + isMigratingFromObjcSDK: isMigratingFromObjcSDK, + isDeletingKeychainIfNeeded: isDeletingKeychainIfNeeded, httpAdditionalHeaders: httpAdditionalHeaders, maxConnectionAttempts: maxConnectionAttempts, authentication: authentication)) @@ -303,17 +303,17 @@ public struct ParseSwift { masterKey: String? = nil, serverURL: URL, liveQueryServerURL: URL? = nil, - allowCustomObjectId: Bool = false, - useTransactions: Bool = false, + isAllowingCustomObjectIds: Bool = false, + isUsingTransactions: Bool = false, keyValueStore: ParseKeyValueStore? = nil, requestCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, cacheMemoryCapacity: Int = 512_000, cacheDiskCapacity: Int = 10_000_000, - migrateFromObjcSDK: Bool = false, - deleteKeychainIfNeeded: Bool = false, + isMigratingFromObjcSDK: Bool = false, + isDeletingKeychainIfNeeded: Bool = false, httpAdditionalHeaders: [AnyHashable: Any]? = nil, maxConnectionAttempts: Int = 5, - testing: Bool = false, + isTesting: Bool = false, authentication: ((URLAuthenticationChallenge, (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)? = nil) { @@ -322,26 +322,26 @@ public struct ParseSwift { masterKey: masterKey, serverURL: serverURL, liveQueryServerURL: liveQueryServerURL, - allowCustomObjectId: allowCustomObjectId, - useTransactions: useTransactions, + isAllowingCustomObjectIds: isAllowingCustomObjectIds, + isUsingTransactions: isUsingTransactions, keyValueStore: keyValueStore, requestCachePolicy: requestCachePolicy, cacheMemoryCapacity: cacheMemoryCapacity, cacheDiskCapacity: cacheDiskCapacity, - migrateFromObjcSDK: migrateFromObjcSDK, - deleteKeychainIfNeeded: deleteKeychainIfNeeded, + isMigratingFromObjcSDK: isMigratingFromObjcSDK, + isDeletingKeychainIfNeeded: isDeletingKeychainIfNeeded, httpAdditionalHeaders: httpAdditionalHeaders, maxConnectionAttempts: maxConnectionAttempts, authentication: authentication) - configuration.isTestingSDK = testing + configuration.isTestingSDK = isTesting initialize(configuration: configuration) } - static internal func deleteKeychainIfNeeded() { + static internal func isDeletingKeychainIfNeeded() { #if !os(Linux) && !os(Android) && !os(Windows) // Clear items out of the Keychain on app first run. if UserDefaults.standard.object(forKey: ParseConstants.bundlePrefix) == nil { - if Self.configuration.deleteKeychainIfNeeded == true { + if Self.configuration.isDeletingKeychainIfNeeded == true { try? KeychainStore.old.deleteAll() try? KeychainStore.shared.deleteAll() } diff --git a/Sources/ParseSwift/Protocols/Objectable.swift b/Sources/ParseSwift/Protocols/Objectable.swift index b1a8e4b1e..98dca56e6 100644 --- a/Sources/ParseSwift/Protocols/Objectable.swift +++ b/Sources/ParseSwift/Protocols/Objectable.swift @@ -74,7 +74,7 @@ extension Objectable { /// Specifies if a `ParseObject` has been saved. public var isSaved: Bool { - if !ParseSwift.configuration.allowCustomObjectId { + if !ParseSwift.configuration.isAllowingCustomObjectIds { return objectId != nil } else { return objectId != nil && createdAt != nil @@ -86,7 +86,7 @@ extension Objectable { } func endpoint(_ method: API.Method) -> API.Endpoint { - if !ParseSwift.configuration.allowCustomObjectId || method != .POST { + if !ParseSwift.configuration.isAllowingCustomObjectIds || method != .POST { return endpoint } else { return .objects(className: className) diff --git a/Tests/ParseSwiftTests/APICommandTests.swift b/Tests/ParseSwiftTests/APICommandTests.swift index 8621f7e16..872663d1a 100644 --- a/Tests/ParseSwiftTests/APICommandTests.swift +++ b/Tests/ParseSwiftTests/APICommandTests.swift @@ -36,7 +36,7 @@ class APICommandTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ExtensionsTests.swift b/Tests/ParseSwiftTests/ExtensionsTests.swift index 08595d973..0a4f8c4e1 100644 --- a/Tests/ParseSwiftTests/ExtensionsTests.swift +++ b/Tests/ParseSwiftTests/ExtensionsTests.swift @@ -21,7 +21,7 @@ class ExtensionsTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: false) + isTesting: false) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/IOS13Tests.swift b/Tests/ParseSwiftTests/IOS13Tests.swift index a2d9ab983..b716862f7 100644 --- a/Tests/ParseSwiftTests/IOS13Tests.swift +++ b/Tests/ParseSwiftTests/IOS13Tests.swift @@ -65,7 +65,7 @@ class IOS13Tests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/InitializeSDKTests.swift b/Tests/ParseSwiftTests/InitializeSDKTests.swift index 7dc03145e..459dd26e0 100644 --- a/Tests/ParseSwiftTests/InitializeSDKTests.swift +++ b/Tests/ParseSwiftTests/InitializeSDKTests.swift @@ -86,14 +86,14 @@ class InitializeSDKTests: XCTestCase { } ParseSwift.configuration = ParseConfiguration(applicationId: "yo", serverURL: server, - deleteKeychainIfNeeded: false) + isDeletingKeychainIfNeeded: false) let key = "Hello" let value = "World" try KeychainStore.shared.set(value, for: key) addCachedResponse() // Keychain should contain value on first run - ParseSwift.deleteKeychainIfNeeded() + ParseSwift.isDeletingKeychainIfNeeded() do { let storedValue: String? = try KeychainStore.shared.get(valueFor: key) @@ -105,8 +105,8 @@ class InitializeSDKTests: XCTestCase { XCTAssertEqual(firstRun, ParseConstants.bundlePrefix) // Keychain should remain unchanged on 2+ runs - ParseSwift.configuration.deleteKeychainIfNeeded = true - ParseSwift.deleteKeychainIfNeeded() + ParseSwift.configuration.isDeletingKeychainIfNeeded = true + ParseSwift.isDeletingKeychainIfNeeded() let storedValue2: String? = try KeychainStore.shared.get(valueFor: key) XCTAssertEqual(storedValue2, value) guard let firstRun2 = UserDefaults.standard @@ -122,7 +122,7 @@ class InitializeSDKTests: XCTestCase { let firstRun3 = UserDefaults.standard.object(forKey: ParseConstants.bundlePrefix) as? String XCTAssertNil(firstRun3) addCachedResponse() - ParseSwift.deleteKeychainIfNeeded() + ParseSwift.isDeletingKeychainIfNeeded() let storedValue3: String? = try KeychainStore.shared.get(valueFor: key) XCTAssertNil(storedValue3) guard let firstRun4 = UserDefaults.standard @@ -220,7 +220,7 @@ class InitializeSDKTests: XCTestCase { masterKey: "masterKey", serverURL: url, keyValueStore: memory, - testing: true) + isTesting: true) guard let currentInstallation = Installation.current else { XCTFail("Should unwrap current Installation") @@ -449,7 +449,7 @@ class InitializeSDKTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - migrateFromObjcSDK: true) + isMigratingFromObjcSDK: true) guard let installation = Installation.current else { XCTFail("Should have installation") return @@ -530,7 +530,7 @@ class InitializeSDKTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - migrateFromObjcSDK: true) + isMigratingFromObjcSDK: true) guard let installation = Installation.current else { XCTFail("Should have installation") return @@ -589,7 +589,7 @@ class InitializeSDKTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - migrateFromObjcSDK: true) + isMigratingFromObjcSDK: true) guard let installation = Installation.current else { XCTFail("Should have installation") return diff --git a/Tests/ParseSwiftTests/ParseACLTests.swift b/Tests/ParseSwiftTests/ParseACLTests.swift index e417e3a23..94a78dc28 100644 --- a/Tests/ParseSwiftTests/ParseACLTests.swift +++ b/Tests/ParseSwiftTests/ParseACLTests.swift @@ -21,7 +21,7 @@ class ParseACLTests: XCTestCase { ParseSwift.initialize(applicationId: "applicationId", clientKey: "clientKey", masterKey: "masterKey", - serverURL: url, testing: true) + serverURL: url, isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAnalyticsTests.swift b/Tests/ParseSwiftTests/ParseAnalyticsTests.swift index c8d18485b..a3626089e 100644 --- a/Tests/ParseSwiftTests/ParseAnalyticsTests.swift +++ b/Tests/ParseSwiftTests/ParseAnalyticsTests.swift @@ -22,7 +22,7 @@ class ParseAnalyticsTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAnanlyticsAsyncTests.swift b/Tests/ParseSwiftTests/ParseAnanlyticsAsyncTests.swift index 0769109f4..fb6d6b706 100644 --- a/Tests/ParseSwiftTests/ParseAnanlyticsAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseAnanlyticsAsyncTests.swift @@ -22,7 +22,7 @@ class ParseAnanlyticsAsyncTests: XCTestCase { // swiftlint:disable:this type_bod clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAnanlyticsCombineTests.swift b/Tests/ParseSwiftTests/ParseAnanlyticsCombineTests.swift index 1a745152d..b5addefd6 100644 --- a/Tests/ParseSwiftTests/ParseAnanlyticsCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseAnanlyticsCombineTests.swift @@ -25,7 +25,7 @@ class ParseAnanlyticsCombineTests: XCTestCase { // swiftlint:disable:this type_b clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAnonymousAsyncTests.swift b/Tests/ParseSwiftTests/ParseAnonymousAsyncTests.swift index dfdec9f03..fd34428d7 100644 --- a/Tests/ParseSwiftTests/ParseAnonymousAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseAnonymousAsyncTests.swift @@ -70,7 +70,7 @@ class ParseAnonymousAsyncTests: XCTestCase { // swiftlint:disable:this type_body clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAnonymousCombineTests.swift b/Tests/ParseSwiftTests/ParseAnonymousCombineTests.swift index 32876e127..07cd02bdb 100644 --- a/Tests/ParseSwiftTests/ParseAnonymousCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseAnonymousCombineTests.swift @@ -73,7 +73,7 @@ class ParseAnonymousCombineTests: XCTestCase { // swiftlint:disable:this type_bo clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAnonymousTests.swift b/Tests/ParseSwiftTests/ParseAnonymousTests.swift index 5e6898585..d9d7e5f2c 100644 --- a/Tests/ParseSwiftTests/ParseAnonymousTests.swift +++ b/Tests/ParseSwiftTests/ParseAnonymousTests.swift @@ -76,7 +76,7 @@ class ParseAnonymousTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseAppleAsyncTests.swift b/Tests/ParseSwiftTests/ParseAppleAsyncTests.swift index f52fc1722..ddf8cd7cf 100644 --- a/Tests/ParseSwiftTests/ParseAppleAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseAppleAsyncTests.swift @@ -71,7 +71,7 @@ class ParseAppleAsyncTests: XCTestCase { // swiftlint:disable:this type_body_len clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAppleCombineTests.swift b/Tests/ParseSwiftTests/ParseAppleCombineTests.swift index 749a2063d..411a29d11 100644 --- a/Tests/ParseSwiftTests/ParseAppleCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseAppleCombineTests.swift @@ -74,7 +74,7 @@ class ParseAppleCombineTests: XCTestCase { // swiftlint:disable:this type_body_l clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseAppleTests.swift b/Tests/ParseSwiftTests/ParseAppleTests.swift index a641040ca..7d7144d19 100644 --- a/Tests/ParseSwiftTests/ParseAppleTests.swift +++ b/Tests/ParseSwiftTests/ParseAppleTests.swift @@ -70,7 +70,7 @@ class ParseAppleTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseAuthenticationAsyncTests.swift b/Tests/ParseSwiftTests/ParseAuthenticationAsyncTests.swift index fd94f47dc..64e5459ea 100644 --- a/Tests/ParseSwiftTests/ParseAuthenticationAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseAuthenticationAsyncTests.swift @@ -121,7 +121,7 @@ class ParseAuthenticationAsyncTests: XCTestCase { // swiftlint:disable:this type clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseAuthenticationCombineTests.swift b/Tests/ParseSwiftTests/ParseAuthenticationCombineTests.swift index 855b78915..79b8b9740 100644 --- a/Tests/ParseSwiftTests/ParseAuthenticationCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseAuthenticationCombineTests.swift @@ -125,7 +125,7 @@ class ParseAuthenticationCombineTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseAuthenticationTests.swift b/Tests/ParseSwiftTests/ParseAuthenticationTests.swift index 5a9e89c92..0b4c48273 100644 --- a/Tests/ParseSwiftTests/ParseAuthenticationTests.swift +++ b/Tests/ParseSwiftTests/ParseAuthenticationTests.swift @@ -125,7 +125,7 @@ class ParseAuthenticationTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseBytesTests.swift b/Tests/ParseSwiftTests/ParseBytesTests.swift index 3b07e03f7..2069e52d1 100644 --- a/Tests/ParseSwiftTests/ParseBytesTests.swift +++ b/Tests/ParseSwiftTests/ParseBytesTests.swift @@ -20,7 +20,7 @@ class ParseBytesTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseCloudAsyncTests.swift b/Tests/ParseSwiftTests/ParseCloudAsyncTests.swift index 9801e4cce..7a668a52d 100644 --- a/Tests/ParseSwiftTests/ParseCloudAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseCloudAsyncTests.swift @@ -33,7 +33,7 @@ class ParseCloudAsyncTests: XCTestCase { // swiftlint:disable:this type_body_len clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseCloudCombineTests.swift b/Tests/ParseSwiftTests/ParseCloudCombineTests.swift index f3a7a098c..6d08c50b7 100644 --- a/Tests/ParseSwiftTests/ParseCloudCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseCloudCombineTests.swift @@ -36,7 +36,7 @@ class ParseCloudCombineTests: XCTestCase { // swiftlint:disable:this type_body_l clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseCloudTests.swift b/Tests/ParseSwiftTests/ParseCloudTests.swift index 51339d398..afe7b63f4 100644 --- a/Tests/ParseSwiftTests/ParseCloudTests.swift +++ b/Tests/ParseSwiftTests/ParseCloudTests.swift @@ -50,7 +50,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseCloudViewModelTests.swift b/Tests/ParseSwiftTests/ParseCloudViewModelTests.swift index 957e09030..163aaefc9 100644 --- a/Tests/ParseSwiftTests/ParseCloudViewModelTests.swift +++ b/Tests/ParseSwiftTests/ParseCloudViewModelTests.swift @@ -33,7 +33,7 @@ class ParseCloudViewModelTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseConfigAsyncTests.swift b/Tests/ParseSwiftTests/ParseConfigAsyncTests.swift index 780baa2dc..9ebd29f07 100644 --- a/Tests/ParseSwiftTests/ParseConfigAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseConfigAsyncTests.swift @@ -79,7 +79,7 @@ class ParseConfigAsyncTests: XCTestCase { // swiftlint:disable:this type_body_le clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseConfigCombineTests.swift b/Tests/ParseSwiftTests/ParseConfigCombineTests.swift index 1b69c3085..66bdba31e 100644 --- a/Tests/ParseSwiftTests/ParseConfigCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseConfigCombineTests.swift @@ -82,7 +82,7 @@ class ParseConfigCombineTests: XCTestCase { // swiftlint:disable:this type_body_ clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseConfigTests.swift b/Tests/ParseSwiftTests/ParseConfigTests.swift index 879fabdac..6696ff617 100644 --- a/Tests/ParseSwiftTests/ParseConfigTests.swift +++ b/Tests/ParseSwiftTests/ParseConfigTests.swift @@ -79,7 +79,7 @@ class ParseConfigTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseErrorTests.swift b/Tests/ParseSwiftTests/ParseErrorTests.swift index e18bcc41c..ef4a9d440 100644 --- a/Tests/ParseSwiftTests/ParseErrorTests.swift +++ b/Tests/ParseSwiftTests/ParseErrorTests.swift @@ -22,7 +22,7 @@ class ParseErrorTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseFacebookAsyncTests.swift b/Tests/ParseSwiftTests/ParseFacebookAsyncTests.swift index 068d04648..c6ecdb4e9 100644 --- a/Tests/ParseSwiftTests/ParseFacebookAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseFacebookAsyncTests.swift @@ -71,7 +71,7 @@ class ParseFacebookAsyncTests: XCTestCase { // swiftlint:disable:this type_body_ clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseFacebookCombineTests.swift b/Tests/ParseSwiftTests/ParseFacebookCombineTests.swift index 016c6f069..5474f4c15 100644 --- a/Tests/ParseSwiftTests/ParseFacebookCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseFacebookCombineTests.swift @@ -74,7 +74,7 @@ class ParseFacebookCombineTests: XCTestCase { // swiftlint:disable:this type_bod clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseFacebookTests.swift b/Tests/ParseSwiftTests/ParseFacebookTests.swift index f2cbe4722..83f2b6890 100644 --- a/Tests/ParseSwiftTests/ParseFacebookTests.swift +++ b/Tests/ParseSwiftTests/ParseFacebookTests.swift @@ -70,7 +70,7 @@ class ParseFacebookTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseFileAsyncTests.swift b/Tests/ParseSwiftTests/ParseFileAsyncTests.swift index d1c1d80e8..c2dd1cbfc 100644 --- a/Tests/ParseSwiftTests/ParseFileAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseFileAsyncTests.swift @@ -29,7 +29,7 @@ class ParseFileAsyncTests: XCTestCase { // swiftlint:disable:this type_body_leng clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) guard let fileManager = ParseFileManager() else { throw ParseError(code: .unknownError, message: "Should have initialized file manage") } diff --git a/Tests/ParseSwiftTests/ParseFileCombineTests.swift b/Tests/ParseSwiftTests/ParseFileCombineTests.swift index 73c504174..baef55db5 100644 --- a/Tests/ParseSwiftTests/ParseFileCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseFileCombineTests.swift @@ -32,7 +32,7 @@ class ParseFileCombineTests: XCTestCase { // swiftlint:disable:this type_body_le clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) guard let fileManager = ParseFileManager() else { throw ParseError(code: .unknownError, message: "Should have initialized file manage") } diff --git a/Tests/ParseSwiftTests/ParseFileManagerTests.swift b/Tests/ParseSwiftTests/ParseFileManagerTests.swift index ddf8f7bc6..b180398aa 100644 --- a/Tests/ParseSwiftTests/ParseFileManagerTests.swift +++ b/Tests/ParseSwiftTests/ParseFileManagerTests.swift @@ -27,7 +27,7 @@ class ParseFileManagerTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) guard let fileManager = ParseFileManager(), let defaultDirectory = fileManager.defaultDataDirectoryPath else { diff --git a/Tests/ParseSwiftTests/ParseFileTests.swift b/Tests/ParseSwiftTests/ParseFileTests.swift index 24d7353c5..b97410a68 100644 --- a/Tests/ParseSwiftTests/ParseFileTests.swift +++ b/Tests/ParseSwiftTests/ParseFileTests.swift @@ -32,7 +32,7 @@ class ParseFileTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) guard let fileManager = ParseFileManager() else { throw ParseError(code: .unknownError, message: "Should have initialized file manage") diff --git a/Tests/ParseSwiftTests/ParseGeoPointTests.swift b/Tests/ParseSwiftTests/ParseGeoPointTests.swift index 05121994f..0fe594b14 100644 --- a/Tests/ParseSwiftTests/ParseGeoPointTests.swift +++ b/Tests/ParseSwiftTests/ParseGeoPointTests.swift @@ -23,7 +23,7 @@ class ParseGeoPointTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseGitHubCombineTests.swift b/Tests/ParseSwiftTests/ParseGitHubCombineTests.swift index 0dc899d73..163585175 100644 --- a/Tests/ParseSwiftTests/ParseGitHubCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseGitHubCombineTests.swift @@ -74,7 +74,7 @@ class ParseGitHubCombineTests: XCTestCase { // swiftlint:disable:this type_body_ clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseGitHubTests.swift b/Tests/ParseSwiftTests/ParseGitHubTests.swift index 832192f60..bda3b59fc 100644 --- a/Tests/ParseSwiftTests/ParseGitHubTests.swift +++ b/Tests/ParseSwiftTests/ParseGitHubTests.swift @@ -70,7 +70,7 @@ class ParseGitHubTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseGoogleCombineTests.swift b/Tests/ParseSwiftTests/ParseGoogleCombineTests.swift index c2080f710..2e5745e15 100644 --- a/Tests/ParseSwiftTests/ParseGoogleCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseGoogleCombineTests.swift @@ -74,7 +74,7 @@ class ParseGoogleCombineTests: XCTestCase { // swiftlint:disable:this type_body_ clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseGoogleTests.swift b/Tests/ParseSwiftTests/ParseGoogleTests.swift index 0e8ee75ba..8c3cc7608 100644 --- a/Tests/ParseSwiftTests/ParseGoogleTests.swift +++ b/Tests/ParseSwiftTests/ParseGoogleTests.swift @@ -70,7 +70,7 @@ class ParseGoogleTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseHealthAsyncTests.swift b/Tests/ParseSwiftTests/ParseHealthAsyncTests.swift index 67b2287f7..f2303f559 100644 --- a/Tests/ParseSwiftTests/ParseHealthAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseHealthAsyncTests.swift @@ -22,7 +22,7 @@ class ParseHealthAsyncTests: XCTestCase { // swiftlint:disable:this type_body_le clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseHealthCombineTests.swift b/Tests/ParseSwiftTests/ParseHealthCombineTests.swift index 783246aa3..2fd104b43 100644 --- a/Tests/ParseSwiftTests/ParseHealthCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseHealthCombineTests.swift @@ -24,7 +24,7 @@ class ParseHealthCombineTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseHealthTests.swift b/Tests/ParseSwiftTests/ParseHealthTests.swift index b95693d3b..053313b6e 100644 --- a/Tests/ParseSwiftTests/ParseHealthTests.swift +++ b/Tests/ParseSwiftTests/ParseHealthTests.swift @@ -22,7 +22,7 @@ class ParseHealthTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseInstallationAsyncTests.swift b/Tests/ParseSwiftTests/ParseInstallationAsyncTests.swift index 7f53d2cc7..0b9d73cad 100644 --- a/Tests/ParseSwiftTests/ParseInstallationAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseInstallationAsyncTests.swift @@ -100,7 +100,7 @@ class ParseInstallationAsyncTests: XCTestCase { // swiftlint:disable:this type_b clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) login() } diff --git a/Tests/ParseSwiftTests/ParseInstallationCombineTests.swift b/Tests/ParseSwiftTests/ParseInstallationCombineTests.swift index e6ff7fa83..94ff6f391 100644 --- a/Tests/ParseSwiftTests/ParseInstallationCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseInstallationCombineTests.swift @@ -102,7 +102,7 @@ class ParseInstallationCombineTests: XCTestCase { // swiftlint:disable:this type clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) login() } diff --git a/Tests/ParseSwiftTests/ParseInstallationTests.swift b/Tests/ParseSwiftTests/ParseInstallationTests.swift index 4ff3dcb74..81f30d2e3 100644 --- a/Tests/ParseSwiftTests/ParseInstallationTests.swift +++ b/Tests/ParseSwiftTests/ParseInstallationTests.swift @@ -96,7 +96,7 @@ class ParseInstallationTests: XCTestCase { // swiftlint:disable:this type_body_l clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) try userLogin() } diff --git a/Tests/ParseSwiftTests/ParseLDAPAsyncTests.swift b/Tests/ParseSwiftTests/ParseLDAPAsyncTests.swift index 27ee3b7ca..954dd737e 100644 --- a/Tests/ParseSwiftTests/ParseLDAPAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseLDAPAsyncTests.swift @@ -71,7 +71,7 @@ class ParseLDAPAsyncTests: XCTestCase { // swiftlint:disable:this type_body_leng clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseLDAPCombineTests.swift b/Tests/ParseSwiftTests/ParseLDAPCombineTests.swift index a9202bae3..0c82cbd32 100644 --- a/Tests/ParseSwiftTests/ParseLDAPCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseLDAPCombineTests.swift @@ -74,7 +74,7 @@ class ParseLDAPCombineTests: XCTestCase { // swiftlint:disable:this type_body_le clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseLDAPTests.swift b/Tests/ParseSwiftTests/ParseLDAPTests.swift index 887640273..b53107d9f 100644 --- a/Tests/ParseSwiftTests/ParseLDAPTests.swift +++ b/Tests/ParseSwiftTests/ParseLDAPTests.swift @@ -70,7 +70,7 @@ class ParseLDAPTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseLinkedInCombineTests.swift b/Tests/ParseSwiftTests/ParseLinkedInCombineTests.swift index 5c215ce39..373eec23b 100644 --- a/Tests/ParseSwiftTests/ParseLinkedInCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseLinkedInCombineTests.swift @@ -74,7 +74,7 @@ class ParseLinkedInCombineTests: XCTestCase { // swiftlint:disable:this type_bod clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseLinkedInTests.swift b/Tests/ParseSwiftTests/ParseLinkedInTests.swift index d8f3c6f6f..715d8ceef 100644 --- a/Tests/ParseSwiftTests/ParseLinkedInTests.swift +++ b/Tests/ParseSwiftTests/ParseLinkedInTests.swift @@ -70,7 +70,7 @@ class ParseLinkedInTests: XCTestCase { // swiftlint:disable:this type_body_lengt clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseLiveQueryAsyncTests.swift b/Tests/ParseSwiftTests/ParseLiveQueryAsyncTests.swift index 09251c40d..79e22f211 100644 --- a/Tests/ParseSwiftTests/ParseLiveQueryAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseLiveQueryAsyncTests.swift @@ -22,7 +22,7 @@ class ParseLiveQueryAsyncTests: XCTestCase { // swiftlint:disable:this type_body clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) ParseLiveQuery.setDefault(try ParseLiveQuery(isDefault: true)) } diff --git a/Tests/ParseSwiftTests/ParseLiveQueryCombineTests.swift b/Tests/ParseSwiftTests/ParseLiveQueryCombineTests.swift index 78350696a..b22b38550 100644 --- a/Tests/ParseSwiftTests/ParseLiveQueryCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseLiveQueryCombineTests.swift @@ -26,7 +26,7 @@ class ParseLiveQueryCombineTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) ParseLiveQuery.setDefault(try ParseLiveQuery(isDefault: true)) } diff --git a/Tests/ParseSwiftTests/ParseLiveQueryTests.swift b/Tests/ParseSwiftTests/ParseLiveQueryTests.swift index 91670babf..6e786fbff 100644 --- a/Tests/ParseSwiftTests/ParseLiveQueryTests.swift +++ b/Tests/ParseSwiftTests/ParseLiveQueryTests.swift @@ -59,7 +59,7 @@ class ParseLiveQueryTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) ParseLiveQuery.setDefault(try ParseLiveQuery(isDefault: true)) } diff --git a/Tests/ParseSwiftTests/ParseObjectAsyncTests.swift b/Tests/ParseSwiftTests/ParseObjectAsyncTests.swift index c13e3042e..ce7e28529 100644 --- a/Tests/ParseSwiftTests/ParseObjectAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseObjectAsyncTests.swift @@ -52,7 +52,7 @@ class ParseObjectAsyncTests: XCTestCase { // swiftlint:disable:this type_body_le clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseObjectBatchTests.swift b/Tests/ParseSwiftTests/ParseObjectBatchTests.swift index 5065d997b..7277b4384 100644 --- a/Tests/ParseSwiftTests/ParseObjectBatchTests.swift +++ b/Tests/ParseSwiftTests/ParseObjectBatchTests.swift @@ -60,7 +60,7 @@ class ParseObjectBatchTests: XCTestCase { // swiftlint:disable:this type_body_le clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseObjectCombineTests.swift b/Tests/ParseSwiftTests/ParseObjectCombineTests.swift index 6d72a7702..ac70ebc25 100644 --- a/Tests/ParseSwiftTests/ParseObjectCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseObjectCombineTests.swift @@ -52,7 +52,7 @@ class ParseObjectCombineTests: XCTestCase { // swiftlint:disable:this type_body_ clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseObjectCustomObjectIdTests.swift b/Tests/ParseSwiftTests/ParseObjectCustomObjectIdTests.swift index e98edbb87..3fa509288 100644 --- a/Tests/ParseSwiftTests/ParseObjectCustomObjectIdTests.swift +++ b/Tests/ParseSwiftTests/ParseObjectCustomObjectIdTests.swift @@ -127,8 +127,8 @@ class ParseObjectCustomObjectIdTests: XCTestCase { // swiftlint:disable:this typ clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - allowCustomObjectId: true, - testing: true) + isAllowingCustomObjectIds: true, + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseObjectTests.swift b/Tests/ParseSwiftTests/ParseObjectTests.swift index e3cb35b58..c0e236fb1 100644 --- a/Tests/ParseSwiftTests/ParseObjectTests.swift +++ b/Tests/ParseSwiftTests/ParseObjectTests.swift @@ -290,7 +290,7 @@ class ParseObjectTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseOperationAsyncTests.swift b/Tests/ParseSwiftTests/ParseOperationAsyncTests.swift index e6dce6af4..dd86fb787 100644 --- a/Tests/ParseSwiftTests/ParseOperationAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseOperationAsyncTests.swift @@ -49,7 +49,7 @@ class ParseOperationAsyncTests: XCTestCase { // swiftlint:disable:this type_body clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseOperationCombineTests.swift b/Tests/ParseSwiftTests/ParseOperationCombineTests.swift index 065815e7d..cf722c48d 100644 --- a/Tests/ParseSwiftTests/ParseOperationCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseOperationCombineTests.swift @@ -52,7 +52,7 @@ class ParseOperationCombineTests: XCTestCase { // swiftlint:disable:this type_bo clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseOperationTests.swift b/Tests/ParseSwiftTests/ParseOperationTests.swift index fed4bc66f..80bf61246 100644 --- a/Tests/ParseSwiftTests/ParseOperationTests.swift +++ b/Tests/ParseSwiftTests/ParseOperationTests.swift @@ -69,7 +69,7 @@ class ParseOperationTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParsePointerAsyncTests.swift b/Tests/ParseSwiftTests/ParsePointerAsyncTests.swift index 1e45fed5b..8013ccc85 100644 --- a/Tests/ParseSwiftTests/ParsePointerAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParsePointerAsyncTests.swift @@ -42,7 +42,7 @@ class ParsePointerAsyncTests: XCTestCase { // swiftlint:disable:this type_body_l clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParsePointerCombineTests.swift b/Tests/ParseSwiftTests/ParsePointerCombineTests.swift index 6cf68fe46..a05542a6b 100644 --- a/Tests/ParseSwiftTests/ParsePointerCombineTests.swift +++ b/Tests/ParseSwiftTests/ParsePointerCombineTests.swift @@ -44,7 +44,7 @@ class ParsePointerCombineTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParsePointerTests.swift b/Tests/ParseSwiftTests/ParsePointerTests.swift index 58ce65ff3..bae7c3ba0 100644 --- a/Tests/ParseSwiftTests/ParsePointerTests.swift +++ b/Tests/ParseSwiftTests/ParsePointerTests.swift @@ -44,7 +44,7 @@ class ParsePointerTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParsePolygonTests.swift b/Tests/ParseSwiftTests/ParsePolygonTests.swift index 46d81f09d..c880618f7 100644 --- a/Tests/ParseSwiftTests/ParsePolygonTests.swift +++ b/Tests/ParseSwiftTests/ParsePolygonTests.swift @@ -26,7 +26,7 @@ class ParsePolygonTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) points = [ try ParseGeoPoint(latitude: 0, longitude: 0), try ParseGeoPoint(latitude: 0, longitude: 1), diff --git a/Tests/ParseSwiftTests/ParseQueryAsyncTests.swift b/Tests/ParseSwiftTests/ParseQueryAsyncTests.swift index 183358200..3de2410d6 100644 --- a/Tests/ParseSwiftTests/ParseQueryAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseQueryAsyncTests.swift @@ -56,7 +56,7 @@ class ParseQueryAsyncTests: XCTestCase { // swiftlint:disable:this type_body_len clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseQueryCombineTests.swift b/Tests/ParseSwiftTests/ParseQueryCombineTests.swift index 1ae127431..4e1024503 100644 --- a/Tests/ParseSwiftTests/ParseQueryCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseQueryCombineTests.swift @@ -61,7 +61,7 @@ class ParseQueryCombineTests: XCTestCase { // swiftlint:disable:this type_body_l clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseQueryTests.swift b/Tests/ParseSwiftTests/ParseQueryTests.swift index bb9101ebd..3a5f78b22 100644 --- a/Tests/ParseSwiftTests/ParseQueryTests.swift +++ b/Tests/ParseSwiftTests/ParseQueryTests.swift @@ -62,7 +62,7 @@ class ParseQueryTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseQueryViewModelTests.swift b/Tests/ParseSwiftTests/ParseQueryViewModelTests.swift index 680c66627..bb0128940 100644 --- a/Tests/ParseSwiftTests/ParseQueryViewModelTests.swift +++ b/Tests/ParseSwiftTests/ParseQueryViewModelTests.swift @@ -44,7 +44,7 @@ class ParseQueryViewModelTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseRelationTests.swift b/Tests/ParseSwiftTests/ParseRelationTests.swift index c032cb655..78320bcbf 100644 --- a/Tests/ParseSwiftTests/ParseRelationTests.swift +++ b/Tests/ParseSwiftTests/ParseRelationTests.swift @@ -66,7 +66,7 @@ class ParseRelationTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseRoleTests.swift b/Tests/ParseSwiftTests/ParseRoleTests.swift index 7772ae422..8e6e5b50e 100644 --- a/Tests/ParseSwiftTests/ParseRoleTests.swift +++ b/Tests/ParseSwiftTests/ParseRoleTests.swift @@ -103,7 +103,7 @@ class ParseRoleTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseSessionTests.swift b/Tests/ParseSwiftTests/ParseSessionTests.swift index 9cca9ab03..8f3b013f2 100644 --- a/Tests/ParseSwiftTests/ParseSessionTests.swift +++ b/Tests/ParseSwiftTests/ParseSessionTests.swift @@ -65,7 +65,7 @@ class ParseSessionTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: false) // Set to false for codecov + isTesting: false) // Set to false for codecov } diff --git a/Tests/ParseSwiftTests/ParseTwitterAsyncTests.swift b/Tests/ParseSwiftTests/ParseTwitterAsyncTests.swift index c2a93f37a..775a71239 100644 --- a/Tests/ParseSwiftTests/ParseTwitterAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseTwitterAsyncTests.swift @@ -71,7 +71,7 @@ class ParseTwitterAsyncTests: XCTestCase { // swiftlint:disable:this type_body_l clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseTwitterCombineTests.swift b/Tests/ParseSwiftTests/ParseTwitterCombineTests.swift index 6169be8dc..6dfad8741 100644 --- a/Tests/ParseSwiftTests/ParseTwitterCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseTwitterCombineTests.swift @@ -74,7 +74,7 @@ class ParseTwitterCombineTests: XCTestCase { // swiftlint:disable:this type_body clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseTwitterTests.swift b/Tests/ParseSwiftTests/ParseTwitterTests.swift index 71cd999f1..463ee8d0b 100644 --- a/Tests/ParseSwiftTests/ParseTwitterTests.swift +++ b/Tests/ParseSwiftTests/ParseTwitterTests.swift @@ -70,7 +70,7 @@ class ParseTwitterTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } diff --git a/Tests/ParseSwiftTests/ParseUserAsyncTests.swift b/Tests/ParseSwiftTests/ParseUserAsyncTests.swift index 19aa63298..c7dd12467 100644 --- a/Tests/ParseSwiftTests/ParseUserAsyncTests.swift +++ b/Tests/ParseSwiftTests/ParseUserAsyncTests.swift @@ -78,7 +78,7 @@ class ParseUserAsyncTests: XCTestCase { // swiftlint:disable:this type_body_leng clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseUserCombineTests.swift b/Tests/ParseSwiftTests/ParseUserCombineTests.swift index dc285a2af..f2ef434e2 100644 --- a/Tests/ParseSwiftTests/ParseUserCombineTests.swift +++ b/Tests/ParseSwiftTests/ParseUserCombineTests.swift @@ -80,7 +80,7 @@ class ParseUserCombineTests: XCTestCase { // swiftlint:disable:this type_body_le clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseUserTests.swift b/Tests/ParseSwiftTests/ParseUserTests.swift index 0922e2408..bccaded4c 100644 --- a/Tests/ParseSwiftTests/ParseUserTests.swift +++ b/Tests/ParseSwiftTests/ParseUserTests.swift @@ -88,7 +88,7 @@ class ParseUserTests: XCTestCase { // swiftlint:disable:this type_body_length clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws { diff --git a/Tests/ParseSwiftTests/ParseVersionTests.swift b/Tests/ParseSwiftTests/ParseVersionTests.swift index 2a3dbe8f7..9defddef2 100644 --- a/Tests/ParseSwiftTests/ParseVersionTests.swift +++ b/Tests/ParseSwiftTests/ParseVersionTests.swift @@ -21,7 +21,7 @@ class ParseVersionTests: XCTestCase { clientKey: "clientKey", masterKey: "masterKey", serverURL: url, - testing: true) + isTesting: true) } override func tearDownWithError() throws {