Skip to content

Commit

Permalink
remove old documentation, fix an old view file name (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymorse authored Mar 23, 2020
1 parent 0c8a88d commit ca4cffe
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 277 deletions.
File renamed without changes
File renamed without changes
268 changes: 0 additions & 268 deletions Documentation/iOSSDKDocumentation.md

This file was deleted.

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "PactSafe",
targets: ["PactSafe"]),
targets: ["PactSafe"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand All @@ -24,7 +24,7 @@ let package = Package(
dependencies: []),
.testTarget(
name: "PactSafeTests",
dependencies: ["PactSafe"]),
dependencies: ["PactSafe"])
],
swiftLanguageVersions: [.v5]
)
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ myClickWrap.sendAgreed(signer: signer) { (response, error) in
}
```

#### PSClickWrapViewDelegate

You can optionally use the `PSClickWrapViewDelegate` protocol to receive events for your `PSClickWrapView`. The following methods are available to be used:

| Method Definition | Description | Optional |
| ------------------------------------------------- | ---------------------------------------------------------- | -------- |
| `clickWrapRendered(withGroup groupData: PSGroup)` | Triggered when a group has loaded and provides group data. | No |
| `errorLoadingGroup(error: Error?)` | Triggered when there's an error loading the group data. | Yes |


## Checking Acceptance
Expand Down Expand Up @@ -469,4 +477,4 @@ Before sending an activity event, you may want to customize properties on `PSCus
| `firstName` | First Name is a reserved property for custom data in PactSafe but can be set. | Yes |
| `lastName` | Last Name is a reserved property for custom data in PactSafe but can be set. | Yes |
| `companyName` | Company Name is a reserved property for custom data in PactSafe but can be set. | Yes |
| `title` | Title is a reserved property for custom data in PactSafe but can be set. | Yes |
| `title` | Title is a reserved property for custom data in PactSafe but can be set. | Yes |
6 changes: 1 addition & 5 deletions Sources/PactSafe/PSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ public class PSApp {
var urlRequest = URLRequest(url: url)
urlRequest.httpMethod = "GET"
urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")


}

fileprivate func getData(fromURL url: URL,
Expand Down Expand Up @@ -313,9 +311,7 @@ public class PSApp {

// MARK: Helpers
private func error(from response: URLResponse?) -> Error? {
guard let response = response as? HTTPURLResponse else {
return nil
}
guard let response = response as? HTTPURLResponse else { return nil }

let statusCode = response.statusCode
if statusCode >= 200 && statusCode <= 299 {
Expand Down
2 changes: 1 addition & 1 deletion Sources/PactSafe/PSClickWrapView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// PSClickWrap.swift
// PSClickWrapView.swift
//
//
// Created by Tim Morse on 10/7/19.
Expand Down

0 comments on commit ca4cffe

Please sign in to comment.