Skip to content

Commit b731eae

Browse files
authored
Fix Cocoapods build
1 parent 5a88669 commit b731eae

24 files changed

+0
-1408
lines changed

README.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -174,46 +174,6 @@ You can add custom user attributes that should be send alongside crash and erros
174174
BacktraceClient.shared?.userAttributes = ["foo": "bar", "testing": true]
175175
```
176176

177-
## Backtrace client configuration
178-
For more advanced usage of BacktraceClient, you can supply BacktraceClientConfiguration as a parameter. See the following example:
179-
```swift
180-
let backtraceCredentials = BacktraceCredentials(endpoint: URL(string: "backtrace_endpoint_url")!,
181-
token: "token")
182-
let backtraceConfiguration = BacktraceClientConfiguration(credentials: backtraceCredentials,
183-
dbSettings: BacktraceDatabaseSettings(),
184-
reportsPerMin: 10)
185-
BacktraceClient.shared.register(configuration: backtraceConfiguration)
186-
```
187-
188-
### Database settings
189-
BacktraceClient allows you to customize the initialization of BacktraceDatabase for local storage of error reports by supplying a BacktraceDatabaseSettings parameter, as follows:
190-
```swift
191-
let backtraceCredentials = BacktraceCredentials(endpoint: URL(string: "backtrace_endpoint_url")!,
192-
token: "token")
193-
let backtraceDatabaseSettings = BacktraceDatabaseSettings()
194-
backtraceDatabaseSettings.maxRecordCount = 1000
195-
backtraceDatabaseSettings.maxDatabaseSize = 10
196-
backtraceDatabaseSettings.retryInterval = 5
197-
backtraceDatabaseSettings.retryLimit = 3
198-
backtraceDatabaseSettings.retryBehaviour = RetryBehaviour.interval
199-
backtraceDatabaseSettings.retryOrder = RetryOder.queue
200-
let backtraceConfiguration = BacktraceClientConfiguration(credentials: backtraceCredentials,
201-
dbSettings: backtraceDatabaseSettings,
202-
reportsPerMin: 10)
203-
BacktraceClient.shared.register(configuration: backtraceConfiguration)
204-
```
205-
206-
### Events handling
207-
BacktraceClient allows you to subscribe for events produced before and after sending error report:
208-
- Swift
209-
```swift
210-
func willSend(_ report: BacktraceCrashReport) -> (BacktraceCrashReport)
211-
func willSendRequest(_ request: URLRequest) -> URLRequest
212-
func serverDidFail(_ error: Error)
213-
func serverDidResponse(_ result: BacktraceResult)
214-
func didReachLimit(_ result: BacktraceResult)
215-
```
216-
217177
## Sending an error report <a name="documentation-sending-report"></a>
218178
Registered `BacktraceClient` will be able to send an crash reports. Error report is automatically generated based.
219179

Sources/Attributes/AttributesStorage.swift

Lines changed: 0 additions & 75 deletions
This file was deleted.

Sources/Attributes/DefaultAttributes.swift

Lines changed: 0 additions & 223 deletions
This file was deleted.

Sources/Client/BacktraceClientType.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)