Coder Social home page Coder Social logo

richiecr7 / firecrasher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osama-raddad/firecrasher

0.0 1.0 0.0 156 KB

FireCrasher is a Uncaught Exceptions handler library for android

Home Page: https://osama-raddad.github.io/FireCrasher/

License: Apache License 2.0

Java 99.85% Prolog 0.15%

firecrasher's Introduction

Stories in Ready Android Arsenal License

Codacy Badge API

Buy Me a Coffee at ko-fi.com

FireCrasher

FireCrasher is designed to handle the Uncaught Exceptions on the android application and help recover from the Exception Without exiting from the application.

Requirements

Min SDK version 14

Install

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

	dependencies {
	        implementation 'com.github.osama-raddad:FireCrasher:1.5.1'
	}

Usage

to use the library add this code to Application class :

public class app extends Application {
    @Override
    public void onCreate() {
        FireCrasher.install(this);
        super.onCreate();
    }
}

or you can use your logic, For example :

public class App extends Application {
    @Override
    public void onCreate() {
        FireCrasher.install(this, new CrashListener() {

            @Override
            public void onCrash(Throwable throwable, final Activity activity) {
            
                // show your own message
                Toast.makeText(activity, throwable.getMessage(), Toast.LENGTH_SHORT).show();

                // start the recovering process
                recover(activity);

                //you need to add your crash reporting tool here
                //Ex: Crashlytics.logException(throwable);
            }
        });
        super.onCreate();
    }
}

Contributing

We welcome contributions to FireCrasher!

  • ⇄ Pull requests and ★ Stars are always welcome.

Version: 1.1

  • add Java8 support
  • fix some bugs

Version: 1.0

  • fix some bugs
  • add custom crash Listener

Let me know!

I’d be really happy if you sent me links to your projects where you use my library. Just send an email to [email protected] And do let me know if you have any questions or suggestion regarding the library.

License

Copyright 2016, Osama Raddad

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

firecrasher's People

Contributors

osama-raddad avatar bitdeli-chef avatar waffle-iron avatar menilv avatar samerzmd avatar

Watchers

Richmond Kwasi Crentsil avatar

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.