From 107ca9139d67b0707602965167a8ed77491b452c Mon Sep 17 00:00:00 2001 From: Corey's iMac Date: Fri, 11 Jun 2021 19:50:51 -0400 Subject: [PATCH 1/5] Add description of useTransactionsInternally to docs --- Sources/ParseSwift/Parse.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/ParseSwift/Parse.swift b/Sources/ParseSwift/Parse.swift index bb00db4e9..9621da24f 100644 --- a/Sources/ParseSwift/Parse.swift +++ b/Sources/ParseSwift/Parse.swift @@ -45,6 +45,7 @@ public struct ParseConfiguration { - parameter liveQueryServerURL: The live query server URL to connect to Parse Server. - parameter allowCustomObjectId: Allows objectIds to be created on the client. side for each object. Must be enabled on the server to work. + - parameter useTransactionsInternally: Use transactions inside the Client SDK. - 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 @@ -140,6 +141,7 @@ public struct ParseSwift { - parameter liveQueryServerURL: The live query server URL to connect to Parse Server. - parameter allowCustomObjectId: Allows objectIds to be created on the client. side for each object. Must be enabled on the server to work. + - parameter useTransactionsInternally: Use transactions inside the Client SDK. - 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 From d5414355b5b167e5131e0dc987114c62557716a3 Mon Sep 17 00:00:00 2001 From: Corey's iMac Date: Sat, 12 Jun 2021 07:33:52 -0400 Subject: [PATCH 2/5] More docs --- Sources/ParseSwift/Parse.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/ParseSwift/Parse.swift b/Sources/ParseSwift/Parse.swift index 9621da24f..8b4894dbb 100644 --- a/Sources/ParseSwift/Parse.swift +++ b/Sources/ParseSwift/Parse.swift @@ -55,6 +55,7 @@ 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: `useTransactionsInternally` is experimental and known not to work with mongoDB. */ public init(applicationId: String, clientKey: String? = nil, @@ -153,6 +154,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: `useTransactionsInternally` is experimental and known not to work with mongoDB. */ static public func initialize( applicationId: String, From 22a745eaf2dc7339eb1167e5a01ed7c78f9472f5 Mon Sep 17 00:00:00 2001 From: Corey's iMac Date: Sat, 12 Jun 2021 07:38:58 -0400 Subject: [PATCH 3/5] remove extra linux build from ci --- .github/workflows/ci.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03af9aa2d..e3802e338 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,23 +99,7 @@ jobs: - uses: actions/checkout@v2 - uses: sersoft-gmbh/SwiftyActions@v1.1.1 with: - release-version: 5.3.3 - - name: Build - run: swift build - - name: Test - run: swift test --enable-test-discovery --enable-code-coverage - - name: Prepare codecov - run: llvm-cov export -format="lcov" .build/x86_64-unknown-linux-gnu/debug/ParseSwiftPackageTests.xctest -instr-profile .build/x86_64-unknown-linux-gnu/debug/codecov/default.profdata > info.lcov - - name: Send codecov - run: bash <(curl https://codecov.io/bash) - - linux-5_4: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: sersoft-gmbh/SwiftyActions@v1.1.1 - with: - release-version: 5.4 + release-version: 5.4.1 - name: Build run: swift build - name: Test From 0443566ba5f39e879ccef643df156dbb285b24d2 Mon Sep 17 00:00:00 2001 From: Corey's iMac Date: Sat, 12 Jun 2021 07:46:44 -0400 Subject: [PATCH 4/5] use latest version of swiftyactions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3802e338..4972adc90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - - uses: sersoft-gmbh/SwiftyActions@v1.1.1 + - uses: sersoft-gmbh/SwiftyActions@v1 with: release-version: 5.4.1 - name: Build From fb71222d4fdd016b64b18770e039e698f2ef0775 Mon Sep 17 00:00:00 2001 From: Corey's iMac Date: Sat, 12 Jun 2021 07:55:24 -0400 Subject: [PATCH 5/5] bump SDK version in readme because of mongo transaction issue --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 030f3dd5f..aa3ca0f43 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ import PackageDescription let package = Package( name: "YOUR_PROJECT_NAME", dependencies: [ - .package(url: "https://github.com/parse-community/Parse-Swift", from: "1.3.0"), + .package(url: "https://github.com/parse-community/Parse-Swift", from: "1.8.1"), ] ) ```