https://docs.bitdrift.io/ | Slack
查看官方文档,了解如何在项目中集成此库的更多细节。
以下代码展示了如何在您的应用程序中设置 Capture SDK 的一个示例
import Capture
Logger.configure(
withAPIKey: "<your-api-key>",
sessionStrategy: .activityBased()
)
target 'MyApp' do
pod 'BitdriftCapture'
# Optional integration with CocoaLumberjack logging library
pod 'CaptureCocoaLumberjack'
# Optional integration with SwiftyBeaver logging library
pod 'CaptureSwiftyBeaver'
end
.package(url: "https://github.com/bitdriftlabs/capture-ios.git", from: "<version>")
使用 Xcode 打开 Package.swift
文件以开始开发。
运行 make test
以运行项目测试。
运行 make format
以运行各种格式化工具和代码检查器。