Giter Site home page Giter Site logo

funny-crash's Introduction

Android Arsenal

Funny Crash

A simple Crash detector for Android apps that allows you to receive crashes from different devices or permit user to send a bug or feedback with screenshot when he shake his device.

  • API 21+

Card sample

Download

Add the JitPack repository to the build.gradle file:

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

Add the Gradle dependency:

    implementation 'com.github.minageorge5080:Funny-Crash:1.1.2'

Usage

Setup in your application class

FunnyCrash.initialize(this)
FunnyCrash.showExcuseDialog = false // default is true.

Setup the listener to receive crashes or reports in your mainActivity or mainViewModel

 FunnyCrash.reportListener = object : FunnyCrashReportListener {
            override fun onReceiveReport(reportModel: ReportModel) {
                Toast.makeText(this@MainActivity, reportModel.info, Toast.LENGTH_SHORT).show()
                if (reportModel.reportType == FunnyCrashConstants.REPORT)
                    screenShot_imageView.setImageBitmap(BitmapFactory.decodeFile(reportModel.file?.absolutePath))
            }
        }

Contributing.

All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.

  1. Fork it!
  2. Checkout the development branch: git checkout development
  3. Create your feature branch: git checkout -b my-new-feature
  4. Add your changes to the index: git add .
  5. Commit your changes: git commit -m 'Add some feature'
  6. Push to the branch: git push origin my-new-feature
  7. Submit a pull request against the development branch

License

Copyright (C) 2020 Mina George

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.

funny-crash's People

Contributors

minaroid avatar

Stargazers

Ravi Singh avatar  avatar Naser Khoshfetrat avatar  avatar Hesham Mohamed avatar Hoa Nguyen avatar  avatar Caner Yılmaz avatar Arda K. avatar Coder 79 avatar Arslan Maqbool avatar Bhargav Pandya avatar coder avatar  avatar Muhammad Ahmed avatar

Watchers

coder avatar  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.