class BugsnagPlugin extends java.lang.Object
Gradle plugin to automatically upload ProGuard mapping files to Bugsnag. This plugin creates Gradle Tasks, and hooks them into a typical build process. Knowledge of the Android build lifecycle is required to understand how we attach tasks as dependencies. Run `gradle tasks --all` in an Android app project to see all tasks and dependencies. Further reading: https://sites.google.com/a/android.com/tools/tech-docs/new-build-system/user-guide#TOC-Build-Tasks https://docs.gradle.org/current/userguide/custom_tasks.html
| Type | Name and description |
|---|---|
static java.lang.String |
API_KEY_TAG |
static java.lang.String |
BUILD_UUID_TAG |
static java.lang.String |
GROUP_NAME |
org.gradle.util.VersionNumber |
bugsnagVersionNumber |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project) |
|
static org.gradle.util.VersionNumber |
getBugsnagAndroidVersionNumber(org.gradle.api.Project project)Retrieves the VersionNumber used by com.bugsnag.android in the given project. |
|
static boolean |
hasDexguardPlugin(org.gradle.api.Project project)Returns true if the DexGuard plugin has been applied to the project |
|
static boolean |
hasMultipleOutputs(org.gradle.api.Project project)Returns true if a project has configured multiple variant outputs. |
|
static java.lang.String |
taskNameForOutput(com.android.build.gradle.api.BaseVariantOutput output) |
|
static java.lang.String |
taskNameForVariant(com.android.build.gradle.api.BaseVariant variant) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Retrieves the VersionNumber used by com.bugsnag.android in the given project. This can be used to conditionally perform tasks depending on the artefact version.
Returns true if the DexGuard plugin has been applied to the project
Returns true if a project has configured multiple variant outputs. This calculation is based on a heuristic - the number of variantOutputs in a project must be greater than the number of variants.