Skip to content

softnoesis/Shakebug-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shakebug-Android

Maven Central

Shakebug allows you to receive feedback from your beta testers or real users and improve the quality of your application in a simple way. Here users just need to shake their mobile and all the data regarding bugs & crashes can be seen by developers through their log in panel. It also helpful to analyse your users, session, location etc. Addition, you can add events on each action of your application and track it using this Shakebug framework.

Sign up for a service at https://www.shakebug.com

Installation

Gradle

Add this line to your build.gradle file.

implementation 'com.softnoesis.shakebug:ShakeBug:1.2.43'

Usage

In your Application class or Launching activity add this line to your onCreate method.

Java

 ShakeBug.sharedInstance().initiateWithKey(this, "<Your Key>");

Kotlin

 ShakeBug.sharedInstance().initiateWithKey(this,"<Your Key>")

Be sure to replace <Your Key> with your application key which given by ShakeBug website.

Then, update the following sdkVersion to your app's build.gradle file:

android {
    compileSdk 33
        defaultConfig {
             ...
             targetSdk 33
             ...
        }
        ...
}```

You may also need to add the following to your project/build.gradle file:

buildscript {
    repositories {
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

For a seamless experience with our SDK, include maven { url 'https://jitpack.io' } in your build.gradle file under allprojects > repositories . Avoid potential issues and enjoy smooth integration.

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

Optional Settings

  1. If you want add event to any screen or activity use following methods

Java

ShakeBug.sharedInstance().addEventKey(this,"<Key>","<Key Value>"); //pass any key or value

Kotlin

ShakeBug.sharedInstance().addEventKey(this,"<Key>","<Key Value>") // pass any key or value
  1. Add the following for enabling/disabling first time tutorial screen

Java

ShakeBug.sharedInstance().showTutorialScreenFirstTime(true); // Default value True

Kotlin

ShakeBug.sharedInstance().showTutorialScreenFirstTime(true) // Default value True
  1. Add the following to set custom language for shakebug

Java

ShakeBug.sharedInstance().setShakebugLanguage(ShakebugLanguage.SPANISH,this);

Kotlin

ShakeBug.sharedInstance().setShakebugLanguage(ShakebugLanguage.SPANISH,this)
  1. Add the following to set custom Theme color for shakebug

Java

ShakeBug.sharedInstance().setShakebugThemeColor(134,235,52);

Kotlin

ShakeBug.sharedInstance().setShakebugThemeColor(134,235,52)
  1. Add the following to set custom Screen title for shakebug

Java

ShakeBug.sharedInstance().changeSDKScreenTitle("Annotate your Bug", "Feedback");

Kotlin

ShakeBug.sharedInstance().changeSDKScreenTitle("Annotate your Bug", "Feedback")
  1. Add the following to set custom error message for shakebug

Java

ShakeBug.sharedInstance().changeSDKErrorAlertMessage("Something wrong...");

Kotlin

ShakeBug.sharedInstance().changeSDKErrorAlertMessage("Something wrong...")
  1. Add the following to set custom endpoint for shakebug

Java

ShakeBug.sharedInstance().setShakebugSDKEndPointURL("","","");

Kotlin

ShakeBug.sharedInstance().setShakebugSDKEndPointURL("","","")
  1. Add the following to set trigger shakebug

Java

ShakeBug.sharedInstance().triggerBugReporting();

Kotlin

ShakeBug.sharedInstance().triggerBugReporting()
  1. Add the following to allow report bug by shaking mobile

Java

ShakeBug.sharedInstance().allowToReportBugByShakingMobile(true);

Kotlin

ShakeBug.sharedInstance().allowToReportBugByShakingMobile(true)
  1. Add the following to allow report bug by screenshot capture event

Java

ShakeBug.sharedInstance().allowToReportBugByScreenCapture(true)

Kotlin

ShakeBug.sharedInstance().allowToReportBugByScreenCapture(true)
  1. If you want add custom user for accurate sessions use following methods

Java

ShakeBug.sharedInstance().addCustomUser(id, email, name, etc.); //pass any key or value

Kotlin

ShakeBug.sharedInstance().addCustomUser(id, email, name, etc.) // pass any key or value

Usage

Build & run your app. Once your app is running, shake your device to report a bug! Bug/Crash reports are sent directly to login panel of Shakebug.com and also notify on your registered email address.

Contact

Visit on: https://www.shakebug.com

Contact us on support@shakebug.com in case of any use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages