Crittercism
Crittercism is the easiest way (that I've found) to add crash reporting to a RubyMotion application. This gem provides an even easier way to integrate the Crittercism SDK into your project.
Currently, this gem only supports iOS projects.
Installation
Add this line to your application's Gemfile:
gem 'crittercism'
And then execute:
$ bundle && rake pod:install
Usage
- Register for a Crittercism account.
- Register your app in Crittercism.
- Find your
App ID
andAPI Key
on the App Settings page.
In your Rakefile, specify your Crittercism App ID and API Key:
Motion::Project::App.setup do |app|
# ...
app.crittercism_app_id = "YOUR_APP_ID"
app.crittercism_api_key = "YOUR_API_KEY"
# ...
end
Next, enable Crittercism within your app_delegate.rb
:
class AppDelegate
def application(app, didFinishLaunchingWithOptions: )
Crittercism.enableWithAppID("YOUR_APP_ID")
# ...
end
end
Refer to the Crittercism docs for information on how to use Crittercism's other features.
Rake Task
You will need to upload your app's dSYM to Crittercism for symbolication.
$ rake crittercism:upload_dsym
Typically, you will want to upload your dSYM every time you build your app. You can configure your rake tasks to include this task.
task :my_custom_deploy_task => ['archive:distribution', 'crittercism:upload_dsym']
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/andrewhavens/crittercism.
License
The gem is available as open source under the terms of the MIT License.