Skip to content

Commit 86d4bc7

Browse files
authored
Add description of useTransactionsInternally to docs (#162)
* Add description of useTransactionsInternally to docs * More docs * remove extra linux build from ci * use latest version of swiftyactions * bump SDK version in readme because of mongo transaction issue
1 parent 973cf33 commit 86d4bc7

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,9 @@ jobs:
9797
runs-on: ubuntu-18.04
9898
steps:
9999
- uses: actions/checkout@v2
100-
- uses: sersoft-gmbh/SwiftyActions@v1.1.1
100+
- uses: sersoft-gmbh/SwiftyActions@v1
101101
with:
102-
release-version: 5.3.3
103-
- name: Build
104-
run: swift build
105-
- name: Test
106-
run: swift test --enable-test-discovery --enable-code-coverage
107-
- name: Prepare codecov
108-
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
109-
- name: Send codecov
110-
run: bash <(curl https://codecov.io/bash)
111-
112-
linux-5_4:
113-
runs-on: ubuntu-18.04
114-
steps:
115-
- uses: actions/checkout@v2
116-
- uses: sersoft-gmbh/[email protected]
117-
with:
118-
release-version: 5.4
102+
release-version: 5.4.1
119103
- name: Build
120104
run: swift build
121105
- name: Test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import PackageDescription
4444
let package = Package(
4545
name: "YOUR_PROJECT_NAME",
4646
dependencies: [
47-
.package(url: "https://github.com/parse-community/Parse-Swift", from: "1.3.0"),
47+
.package(url: "https://github.com/parse-community/Parse-Swift", from: "1.8.1"),
4848
]
4949
)
5050
```

Sources/ParseSwift/Parse.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public struct ParseConfiguration {
4545
- parameter liveQueryServerURL: The live query server URL to connect to Parse Server.
4646
- parameter allowCustomObjectId: Allows objectIds to be created on the client.
4747
side for each object. Must be enabled on the server to work.
48+
- parameter useTransactionsInternally: Use transactions inside the Client SDK.
4849
- parameter keyValueStore: A key/value store that conforms to the `ParseKeyValueStore`
4950
protocol. Defaults to `nil` in which one will be created an memory, but never persisted. For Linux, this
5051
this is the only store available since there is no Keychain. Linux users should replace this store with an
@@ -54,6 +55,7 @@ public struct ParseConfiguration {
5455
It should have the following argument signature: `(challenge: URLAuthenticationChallenge,
5556
completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void`.
5657
See Apple's [documentation](https://developer.apple.com/documentation/foundation/urlsessiontaskdelegate/1411595-urlsession) for more for details.
58+
- warning: `useTransactionsInternally` is experimental and known not to work with mongoDB.
5759
*/
5860
public init(applicationId: String,
5961
clientKey: String? = nil,
@@ -140,6 +142,7 @@ public struct ParseSwift {
140142
- parameter liveQueryServerURL: The live query server URL to connect to Parse Server.
141143
- parameter allowCustomObjectId: Allows objectIds to be created on the client.
142144
side for each object. Must be enabled on the server to work.
145+
- parameter useTransactionsInternally: Use transactions inside the Client SDK.
143146
- parameter keyValueStore: A key/value store that conforms to the `ParseKeyValueStore`
144147
protocol. Defaults to `nil` in which one will be created an memory, but never persisted. For Linux, this
145148
this is the only store available since there is no Keychain. Linux users should replace this store with an
@@ -151,6 +154,7 @@ public struct ParseSwift {
151154
It should have the following argument signature: `(challenge: URLAuthenticationChallenge,
152155
completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void`.
153156
See Apple's [documentation](https://developer.apple.com/documentation/foundation/urlsessiontaskdelegate/1411595-urlsession) for more for details.
157+
- warning: `useTransactionsInternally` is experimental and known not to work with mongoDB.
154158
*/
155159
static public func initialize(
156160
applicationId: String,

0 commit comments

Comments
 (0)