-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use v2 format * Use ‘manual’ in place of custom * Enforce size limit * Document breadcrumb types * Update example * Add a breadcrumb when an error occurs * Add a Makefile * Update payload version * Cleanup types
- Loading branch information
Showing
9 changed files
with
194 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
all: build | ||
|
||
.PHONY: build test clean | ||
|
||
build: | ||
./gradlew build | ||
|
||
clean: | ||
./gradlew clean | ||
|
||
test: | ||
./gradlew :connectedCheck |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.bugsnag.android; | ||
|
||
/** | ||
* Recognized types of breadcrumbs | ||
*/ | ||
public enum BreadcrumbType { | ||
/** | ||
* An error was sent to Bugsnag (internal use only) | ||
*/ | ||
ERROR ("error"), | ||
/** | ||
* A log message | ||
*/ | ||
LOG ("log"), | ||
/** | ||
* A manual invocation of `leaveBreadcrumb` (default) | ||
*/ | ||
MANUAL ("manual"), | ||
/** | ||
* A navigation event, such as a window opening or closing | ||
*/ | ||
NAVIGATION ("navigation"), | ||
/** | ||
* A background process such as a database query | ||
*/ | ||
PROCESS ("process"), | ||
/** | ||
* A network request | ||
*/ | ||
REQUEST ("request"), | ||
/** | ||
* A change in application state, such as launch or memory warning | ||
*/ | ||
STATE ("state"), | ||
/** | ||
* A user action, such as tapping a button | ||
*/ | ||
USER ("user"); | ||
|
||
private final String type; | ||
|
||
BreadcrumbType(String type) { | ||
this.type = type; | ||
} | ||
|
||
String serialize() { return type; } | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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