Based on Paolo Rotolo's Gitty Reporter
Is your Inbox full of bug reports and requests from your users?
android-issue-reporter is a new material designed library to report issues from your app directly to GitHub, even without an account.
A demo app is available on Google Play:
GitHub bot | Include device info | Demo |
android-issue-reporter is available on jitpack.io
Gradle dependency:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.heinrichreimersoftware:android-issue-reporter:1.2.3'
}
Get the latest dependency at jitpack.io.
Just create a new Activity
that extends IssueReporterActivity
:
public class ExampleReporterActivity extends IssueReporterActivity {
//Where should the issues go?
//(http://github.com/username/repository)
@Override
public GithubTarget getTarget() {
return new GithubTarget("HeinrichReimer", "android-issue-reporter");
}
//[Optional] Auth token to open issues if users don't have a GitHub account
//You can register a bot account on GitHub and copy ist OAuth2 token here.
@Override
public String getGuestToken() {
return "28f479f73db97d912611b27579aad7a76ad2baf5";
}
//[Optional] Include other relevant info in the bug report (like custom variables)
@Override
public void onSaveExtraInfo(ExtraInfo extraInfo) {
extraInfo.put("Test 1", "Example string");
extraInfo.put("Test 2", true);
}
}