Huruhuru
Huruhuru 是团队 QA 的应用内问题报告调试工具。仅支持 GitHub。
要求
- Swift 5.0 或更高版本
- iOS 11.0 或更高版本
其他尚未验证。
待办事项
- 添加测试
- 支持 Carthage
⚠ 警告
Huruhuru
会自动在指定的仓库中创建一个图像存储分支(huruhuru-auto-created-branch-for-upload-image
)。
安装
Cocoapods
- 将
pod 'Huruhuru', :configurations => ['YOUR_DEBUG_SCHEME']
添加到您的 Podfile。 - 运行
pod install
使用
- 创建 GitHub 令牌
- 访问 生成 GitHub 令牌页面
- 检查
repo: 对私有仓库的完全控制
或public_repo: 访问公共仓库
- 写入代码。
// [Example]
// AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// ...
Huruhuru.shared.start(sendTo: Huruhuru.RepositoryInfo(ownerName: GITHUB_OWNER_NAME, repositoryName: GITHUB_REPOSITORY_NAME) , token: Huruhuru.GithubToken(token: GITHUB_TOKEN), supportDetectGesture: Huruhuru.SupportDetectGesture(types: [.shake, .screenshot]) )
// ...
}
注意:使用 cocoapods-keys,您不需要将 SecretKey 直接提交到源代码。
- 摇一摇手势或截屏以打开报告视图
浅色 | 深色 |
---|---|
![]() |
![]() |