Skip to content

bitdriftlabs/capture-ios

Repository files navigation

Capture SDK by bitdrift

https://docs.bitdrift.io/ | Slack

Integration

See the official documentation to learn more about how to integrate the library in your project.

The following code demonstrates an example setup of Capture SDK in your app:

import Capture

Logger.start(
  withAPIKey: "<your-api-key>",
  sessionStrategy: .activityBased()
)

CocoaPods

target 'MyApp' do
  pod 'BitdriftCapture'

  # Optional integration with CocoaLumberjack logging library
  pod 'CaptureCocoaLumberjack'
  # Optional integration with SwiftyBeaver logging library
  pod 'CaptureSwiftyBeaver'
end

Swift Package Manager

.package(url: "https://github.com/bitdriftlabs/capture-ios.git", from: "<version>")

Local Development

Open Package.swift file using Xcode to start developing.

Run make test to run project tests.

Run make format to run various formatting tools and linter checks.

Run make verify to verify CocoaPods specs.