• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    Java
  • License
    MIT License
  • Created over 8 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A powerful and simple library to open issues on GitHub directly from your app.

Icon

android-issue-reporter

Android Arsenal JitPack Build Status License

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.

Demo

A demo app is available on Google Play:

Get it on Google Play

Screenshots

material-drawer material-drawer material-drawer
GitHub bot Include device info Demo

Dependency

android-issue-reporter is available on jitpack.io

Gradle dependency:

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    compile 'com.heinrichreimersoftware:android-issue-reporter:1.3.1'
}

Get the latest dependency at jitpack.io.

How to use (with IssueReporterLauncher)

Just start the issue reporter directly from your activity using the launcher builder:

IssueReporterLauncher.forTarget("HeinrichReimer", "android-issue-reporter")
        // [Recommended] Theme to use for the reporter. 
        // (See #theming for further information.)
        .theme(R.style.Theme_App_Dark)
        // [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.
        // (See #how-to-create-a-bot-key for further information.)
        .guestToken("28f479f73db97d912611b27579aad7a76ad2baf5")
        // [Optional] Force users to enter an email adress when the report is sent using
        // the guest token.
        .guestEmailRequired(true)
        // [Optional] Set a minimum character limit for the description to filter out
        // empty reports.
        .minDescriptionLength(20)
        // [Optional] Include other relevant info in the bug report (like custom variables)
        .putExtraInfo("Test 1", "Example string")
        .putExtraInfo("Test 2", true)
        // [Optional] Disable back arrow in toolbar
        .homeAsUpEnabled(false)
        .launch(this);

How to use (extending IssueReporterActivity)

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("username", "repository");
    }
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // [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.
        // (See #how-to-create-a-bot-key for further information.)
        setGuestToken("28f479f73db97d912611b27579aad7a76ad2baf5")
        
        // [Optional] Force users to enter an email adress when the report is sent using
        // the guest token.
        setGuestEmailRequired(true);
        
        // [Optional] Set a minimum character limit for the description to filter out
        // empty reports.
        setMinimumDescriptionLength(20);
    }

    // [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);
    }
}

Theming

Create a theme extending Theme.IssueReporter theme and set it to the launcher using IssueReporterLauncher.theme(@StyleRes int theme) or declare it in AndroidManifest.xml if you have extended IssueReporterActivity:

<style name="Theme.App.Light" parent="Theme.IssueReporter">
    <item name="colorPrimary">...</item><!-- required -->
    <item name="colorPrimaryDark">...</item><!-- required -->
    <item name="colorAccent">...</item><!-- required -->
</style>

You can use Theme.IssueReporter.Light or Theme.IssueReporter.Light.DarkActionBar as replacement if you want a light theme.

How to create a bot key

  1. Create a new GitHub account.
    (You have to use a unique email address.)

  2. Go to https://github.com/settings/tokens and create a new token using Generate new token.
    (You only need to give the bot the public_repo permission.)

  3. Copy the OAuth access token you get at the end of the setup.

  4. Override getGuestToken() in your reporter activity like this:

    @Override
    public String getGuestToken() {
        return "<your token here>";
    }

Limitations

  • You can't use two factor authentication.

More Repositories

1

material-intro

A simple material design app intro with cool animations and a fluent API.
Java
1,737
star
2

material-drawer

Custom drawer implementation for Material design apps.
Java
597
star
3

material-singleinputform

A single EditText instead of a classical form. Library that implements flavienlaurent's singleinputform
Java
194
star
4

open-source-library-request-manager

A place to share ideas for open source library with other developers.
32
star
5

progressbar-ktx

⏳ Kotlin extensions for the progressbar JVM library.
Kotlin
28
star
6

android-canteen-balance

Helper library to read out the current balance of canteen cards using NFC.
Java
12
star
7

latex-postage

πŸ“„ Franking letters with Β»Deutsche PostΒ«'s online postage service Β»InternetmarkeΒ«.
TeX
8
star
8

website

🌐 Personal portfolio website.
SCSS
6
star
9

wayback-api

πŸ•°οΈ Java wrapper for the Internet Archive's Wayback API.
Kotlin
6
star
10

zotero-git-sync

πŸ“š Simple CLI to sync a collection's Zotero publications to a Git repository.
Python
5
star
11

modern-talking

πŸ—£οΈ Key-Point Analysis using Pretrained Encoders
Jupyter Notebook
5
star
12

android-wg-planer

Vertretungsplan und Stundenplan des Wilhelm-Gymnasiums
Java
4
star
13

android-shape-touch-listener

Touch listener which only reacts in a given shape.
Java
3
star
14

song-analysis

Analysing the Million Song Dataset.
Kotlin
2
star
15

thuringian-field-names

🏞️ Explorer for the Thuringian Field Name Archive.
TypeScript
2
star
16

website-orgelverein

🌐 Orgelverein am Braunschweiger Dom e.V. website.
SCSS
2
star
17

grimjack

🀺 Argument retrieval using axiomatic re-ranking and query reformulation.
TeX
2
star
18

website-wedding

πŸ’οΈ Wedding website for Lena & Heini.
HTML
2
star
19

ghost-theme-material

πŸ‘» Ghost theme implementing Material design guidelines.
HTML
2
star
20

latex-els-cas-templates

πŸ“„ Copy of Elsevier updated LATEX templates.
TeX
2
star
21

web-archive-api

πŸ—ƒοΈ Unified access to web archive CDX and Memento APIs.
Python
2
star
22

Search.jl

Ad hoc information retrieval toolkit for Julia.
Julia
1
star
23

alexa-top-1m

🌐 Easy access to Alexa top 1M websites.
Kotlin
1
star
24

study-computer-science

πŸ“½οΈ Video player for the "Informatik studieren" advertisement movie.
TypeScript
1
star
25

text-summarization-reproducability

πŸ“ Reproducability study on "Text Summarization with Pretrained Encoders".
HTML
1
star
26

warc-s3

πŸ’Ύ Scalable and easy WARC records storage on S3.
Python
1
star
27

elasticsearch-ktx

πŸ”Ž Kotlin Extensions for the Elasticsearch Java High Level REST Client.
Kotlin
1
star
28

reimersoftware-portfolio

🌐 Reimer Software's portfolio website.
SCSS
1
star
29

france-accidents

🚨 Visualizing accidents in France from 2005 to 2020.
Elm
1
star
30

jsonl-serialization

πŸ—œοΈ Kotlin serialization for the JSON Lines format.
Kotlin
1
star
31

domain-ktx

🌐 Kotlin extensions for domains.
Kotlin
1
star
32

hadoop-ktx

πŸ’Ύ Kotlin Extensions for Apache Hadoop (MapReduce).
Kotlin
1
star
33

android-meine-mensa

Deine Mensen des Studentenwerks Halle.
Java
1
star
34

todoist-git-sync

βœ… Simple CLI to sync a project's Todoist tasks to a Git repository.
Python
1
star
35

wayback-gradle-plugin

πŸ•°οΈ Gradle plugin for the Internet Archive's Wayback API.
Kotlin
1
star
36

spark-ktx

πŸ’Ύ Kotlin extensions for Apache Spark.
Kotlin
1
star
37

website-lenamerker

🌐 Lena Merker's personal website.
HTML
1
star
38

website-kreativwerkstatt

🌐 Kreativ Werkstatt Reimer's portfolio website.
SCSS
1
star
39

ghost-theme-johannesfoto

πŸ‘» The Johannes Foto blog Ghost theme.
Handlebars
1
star
40

spark-gradle-plugin

πŸ’Ύ Gradle plugin for launching Spark applications.
Kotlin
1
star
41

java-ktx

🧰 Kotlin extensions for the JVM.
Kotlin
1
star
42

android-elliptic-curve-chiffre

App to test implementation of elliptic curve chiffre Diffie-Hellman key exchange.
Java
1
star
43

bibtexer

πŸ“š An opinionated BibTeX file cleaner for computer science.
Python
1
star
44

url-canonicalization

πŸ”— Canonicalize URLs based on HTML canonical link relations.
Kotlin
1
star