Created
November 29, 2019 12:19
-
-
Save TimCastelijns/a5fb15c8141bb969f0cbc8e89002aab7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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