Skip to content

Instantly share code, notes, and snippets.

@TimCastelijns
Created November 29, 2019 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimCastelijns/a5fb15c8141bb969f0cbc8e89002aab7 to your computer and use it in GitHub Desktop.
Save TimCastelijns/a5fb15c8141bb969f0cbc8e89002aab7 to your computer and use it in GitHub Desktop.
Instabug.Builder(this, BuildConfig.INSTABUG_TOKEN).apply {
setInvocationEvents(InstabugInvocationEvent.SCREENSHOT)
setConsoleLogState(Feature.State.ENABLED)
setInstabugLogState(Feature.State.DISABLED)
setReproStepsState(State.DISABLED)
setTrackingUserStepsState(Feature.State.DISABLED)
setUserEventsState(Feature.State.DISABLED)
setViewHierarchyState(Feature.State.DISABLED)
setInAppMessagingState(Feature.State.DISABLED)
}.build()
CrashReporting.setState(Feature.State.DISABLED)
Instabug.setWelcomeMessageState(WelcomeMessage.State.DISABLED)
FeatureRequests.setState(Feature.State.DISABLED)
val includeDefaultScreenshot = true
val allowExtraScreenshots = true
val allowExtraGalleryImage = true
val allowExtraRecording = false
BugReporting.setAttachmentTypesEnabled(
includeDefaultScreenshot,
allowExtraScreenshots,
allowExtraGalleryImage,
allowExtraRecording
)
BugReporting.setReportTypes(BugReporting.ReportType.BUG)
BugReporting.setOptions(Option.COMMENT_FIELD_REQUIRED)
Instabug.setPrimaryColor(getColor(R.color.primaryButtonColor))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment