Skip to content

Commit

Permalink
8.0.1 (#122)
Browse files Browse the repository at this point in the history
* Made Salesforce.RequestConfig constructor public and updated default API version to 48.0
* Updated README.md to correct misspelled method name in example: "logout( )" to "logOut( )"
* Updated CHANGELOG.md
  • Loading branch information
mike4aday authored Jul 10, 2020
1 parent 25bdcb2 commit e5063a3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log

## Version 8.0.1 (July 10, 2020)
- Made RequestConfig constructor public.
- Updated default Salesforce API version to 48.0 (Spring '20).

## Version 8.0.0 (Nov. 29, 2019)
Major release. Requires iO3 13, Swift 5.1, XCode 11.
- Swift Combine framework.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ salesforce.describe(object: "Account")
### Example: Log Out
If you want to log out the current Salesforce user, and then clear any locally-cached data, you could call the following. Swiftly Salesforce will revoke and remove any stored credentials.
```swift
let pub: AnyPublisher<Void, Error> = salesforce.logout()
let pub: AnyPublisher<Void, Error> = salesforce.logOut()
//TODO: Connect to UI element with SwiftUI
```

Expand Down
19 changes: 13 additions & 6 deletions Sources/SwiftlySalesforce/Salesforce.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,19 @@ open class Salesforce {
public var authenticateIfRequired: Bool
public var retries: Int

public static let shared = RequestConfig(
version: "47.0",
session: URLSession.shared,
authenticateIfRequired: true,
retries: 0
)
public static let shared = RequestConfig()

public init(
version: String = "48.0",
session: URLSession = .shared,
authenticateIfRequired: Bool = true,
retries: Int = 0
) {
self.version = version
self.session = session
self.authenticateIfRequired = authenticateIfRequired
self.retries = retries
}
}

// MARK: - Initializers -
Expand Down

0 comments on commit e5063a3

Please sign in to comment.