Latest 0.2.1
Homepage https://github.com/nebs/Cricket
License MIT
Platforms ios 8.0
Dependencies SnapKit
Authors

Version
License
Platform

About

Cricket is an Swift iOS library for reporting bugs or sending feedback from within your app.

Basic Usage

// Configure a handler
Cricket.handler = CricketEmailHandler(emailAddress: "[email protected]", subjectPrefix: "[iOS]", defaultSubject: "Cricket bug report")

// Show Cricket
Cricket.show()

One convenient way of using Cricket is to show it when the user shakes their phone.

For example, in your view controller:

override func motionEnded(_ motion: UIEventSubtype, with event: UIEvent?) {
  if motion == .motionShake {
    Cricket.show()
  }
}

Handlers

Cricket relies on handlers to submit the data. A handler is any class that conforms to the CricketHandler protocol. Included in this project is a convenient CricketEmailHandler class which will use the built-in email client for sending the feedback.

You can of course build your own handlers, for example if you wanted to report the feedback directly to your server via an API.

Simply assign your handler to Cricket before showing it, like so: Cricket.handler = MyCoolHandler()

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 9.3

Installation

Cricket is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Cricket'

Author

Nebojsa Petrovic, [email protected]

License

Cricket is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Cricket",
    "version": "0.2.1",
    "summary": "Report bugs and feedback from within your app",
    "description": "Cricket allows you to report bugs or submit feedback directly from within yournapp. Users can annotate a screenshot of your app and write a message. Thenmessage, screenshot and other app meta data are then submitted via email. Youncan also customize your own handlers if you don't want to use email.",
    "homepage": "https://github.com/nebs/Cricket",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Nebojsa Petrovic": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nebs/Cricket.git",
        "tag": "0.2.1"
    },
    "social_media_url": "https://twitter.com/nebsp",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Cricket/Classes/**/*",
    "dependencies": {
        "SnapKit": [
            "~> 4.0.0"
        ]
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This