Ships logcat from device to a bitbucket issue. Works with jitpack.io.
See this Tutorial on how to publish an Android Library with JitPack.
Add it to your app/build.gradle with:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}and:
allprojects {
...
dependencies {
implementation 'com.github.rhildred:BitBucketLogCat:master'
}
}To use this log whatever you need to the logcat. For instance:
catch(Exception e){
Log.e(TAG, Log.getStackTraceString(e));When you want to send the logcat to a bitbucket issue:
BitBucketLogCat.e(this, "rhildred", "faculty", "Logged using my package", "rhildred");or if in a fragment
BitBucketLogCat.e(getActivity(), "rhildred", "faculty", "Logged using my package", "rhildred");To make this more plug and play I created a Bitbucket user rhildredissues. You will need to add this user with read access to your repository.
