Coder Social home page Coder Social logo

android-crash-reporter's Introduction

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:

 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:

dependencies {
    compile "com.icapps.crashreporter:crashlog:<version>"
		
	//One or more:
	compile "com.icapps.crashreporter:crashlog-crittercism:<version>"
    compile "com.icapps.crashreporter:crashlog-crashlytics:<version>"
	compile "com.icapps.crashreporter:crashlog-googleanalytics:<version>"
	
	//When you use the crittercism logger
	compile 'com.crittercism:crittercism-android-agent:<version>' //The library currently works verified against 5.6.4
	
	//When you use the google analytics logger
	compile 'com.google.android.gms:play-services-analytics:<version>' //The library is currently verified against 11.0.2

	//When you use the crashlytics crash logger
	compile('com.crashlytics.sdk.android:crashlytics:<version>@aar') { //The library is currently verified against 2.6.8
		transitive = true;
	}

}

For Fabric's Crashlytics, apply the plugin in your build.gradle file:

apply plugin: 'io.fabric'

For Fabric's Crashlytics, add meta-data to your AndroidManifest file:

<meta-data android:name="io.fabric.ApiKey" android:value="xxx" />

For the latest version, please have a look at the gradle.properties file or check the 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

android-crash-reporter's People

Contributors

jeroenmols avatar kristofvandaele avatar nicolaverbeeck avatar robbysmeticapps avatar woutergoossens avatar

Watchers

 avatar  avatar  avatar  avatar

android-crash-reporter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.