joshdholtz / Sentry-Android

[Deprecated] Use official "raven-java" library
https://github.com/getsentry/sentry-java
MIT License
180 stars 48 forks source link

Enable Sentry Release tracking by default #78

Closed marcomorain closed 8 years ago

marcomorain commented 8 years ago

If events have a 'release' attribute set, then Sentry will automcatiically the first and last release in which events occured.

This change makes the client read the package's versionCode and use that as the 'release' by default. The versionCode is an integer that increases, and therefore is a perfect candidate for release tracking.

The user can continue to use an event capture listener to set the release manaully, which will override this new default value.

Fixes #71

marcomorain commented 8 years ago

I like this one @joshdholtz :)