GithubHelp home page GithubHelp logo

ptzagk / acraslack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tolmachevroman/acraslack

0.0 0.0 0.0 252 KB

Sample project for Android Studio showing how to implement ACRA and Slack integration

Java 100.00%

acraslack's Introduction

AcraSlack

[ACRA] (https://github.com/ACRA/acra) is a very popular open-source bug tracking library for Android. Normally you would need your own backend to collect reports, however it is possible to integrate ACRA into your Slack account directly.

Firstly, you need to add ACRA to your project. In Android Studio it means adding dependency to Gradle
compile 'ch.acra:acra:4.6.1'
and initializing ACRA in your [Application class] (https://github.com/tolmachevroman/AcraSlack/blob/master/AcraSlackSample/app/src/main/java/com/acra/slack/sample/application/AcraSlackSample.java)
@ReportsCrashes()
public class AcraSlackSample extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        ClientApi.initialize();

        ACRA.init(this);
        ACRA.getErrorReporter().setReportSender(new CrashSender());
    }

}
Then, you need to add Incoming Webhooks API integration.

webhooks

Create new channel for bugs only

webhooks2

and copy it's url to [Urls class] (https://github.com/tolmachevroman/AcraSlack/blob/master/AcraSlackSample/app/src/main/java/com/acra/slack/sample/network/Urls.java)
public static final String SLACK_ENDPOINT = "https://hooks.slack.com/services";
public static final String SLACK_CRASH_CHANNEL = "/M03H6CG1F/B07V91KN6/T8HANY51iQygHlckHX8KQ0Zk";
For more info, please check [official documentation] (https://api.slack.com/incoming-webhooks)
That's it! Now each time your app is crashed you'll receive nice instant message right into your Slack channel.

acrasamplescreenshot

acraslack's People

Contributors

tolmachevroman 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.