https://github.com/icapps/android-crash-reporter
https://github.com/icapps/android-crash-reporter
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icapps/android-crash-reporter
- Owner: icapps
- Created: 2017-07-05T08:11:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-09T10:33:07.000Z (over 5 years ago)
- Last Synced: 2025-03-23T15:15:45.398Z (about 1 year ago)
- Language: Java
- Size: 266 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iCapps Crash Log #
Wrapper library around different crash reporters to enable crash reporting in your project.
## Installation ##
### Maven dependency
Add the following to your top-level `build.gradle` file:
```groovy
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' } //only when you use fabric crashlytics
}
dependencies {
classpath 'io.fabric.tools:gradle:1.21.6' //only when you use fabric crashlytics
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://mint.splunk.com/gradle/' }
maven { url 'https://maven.fabric.io/public' } //only when you use fabric crashlytics
}
}
```
Add a dependency on `CrashLog` to your `build.gradle` file:
```groovy
dependencies {
compile "com.icapps.crashreporter:crashlog:"
//One or more:
compile "com.icapps.crashreporter:crashlog-crittercism:"
compile "com.icapps.crashreporter:crashlog-crashlytics:"
compile "com.icapps.crashreporter:crashlog-googleanalytics:"
//When you use the crittercism logger
compile 'com.crittercism:crittercism-android-agent:' //The library currently works verified against 5.6.4
//When you use the google analytics logger
compile 'com.google.android.gms:play-services-analytics:' //The library is currently verified against 11.0.2
//When you use the crashlytics crash logger
compile('com.crashlytics.sdk.android:crashlytics:@aar') { //The library is currently verified against 2.6.8
transitive = true;
}
}
```
For Fabric's Crashlytics, apply the plugin in your `build.gradle` file:
```groovy
apply plugin: 'io.fabric'
```
For Fabric's Crashlytics, add meta-data to your AndroidManifest file:
```groovy
```
For the latest version, please have a look at the `gradle.properties` file or check the [maven_repository](https://bitbucket.org/icapps/maven_repository)
## Usage ##
The component consists of three major parts:
- `CrashLog`: Static class to interface with the component. To start reporting crashes, configure it during application startup with a crash reporter
- `CrashReporter`: Interface for crash loggers
- `CompoundCrashReporter`: Helper CrashReporter that dispatches the crashes to multiple configured crash loggers, usefull when using multiple crash loggers in the same project
### Functions: ###
Currently the following `CrashReporters` are supported:
- CrittercismCrashreporter
- GoogleAnalyticsCrashReporter
- CrashlyticsCrashReporter