Gradle plugin for Sentry Android. Upload proguard, debug files, and more.
minifyWithR8
task when running tests with isIncludeAndroidResources
enabled (#662)SentryGenerateIntegrationListTask
SentryGenerateDebugMetaPropertiesTask
GenerateBundleIdTask
SentryGenerateProguardUuidTask
9.4
(#637)
java.lang.AssertionError: Class with incorrect id found
exception when using kotlinx.serialization
findTask
if assembleProvider
of AndroidVariant is null when hooking source bundle and native symbols upload tasks (#639)install{Variant}
tasks (#643)sentry-bom
version when auto-installing integrations and the SDK (#625)FacebookInitProvider
instrumentation (#633)sentry-android-core
/sentry
/sentry-android
/sentry-spring-boot
to prevent runtime crashes due to binary incompatibility. (#602)
autoInstallation.sentryVersion
or the default bundled SDK version is used.This means if you have defined something like that:
// direct deps
dependencies {
implementation("io.sentry:sentry-android-core:7.0.0")
implementation("io.sentry:sentry-android-okhttp:6.34.0")
}
// or with the gradle plugin
sentry {
autoInstallation.sentryVersion = '7.0.0' // or the latest version bundled within the plugin
}
dependencies {
implementation("io.sentry:sentry-android-okhttp:6.34.0")
}
Then in both cases it will use 7.0.0
when installing the sentry-android-okhttp
integration and print a warning that we have overridden the version.
Add aarch64 sentry-cli (#611)
Instrument ContentProvider/Application onCreate calls to measure app-start performance (#565)
sentry-java
SDK version 7.1.0
and is enabled by defaultsentry.tracingInstrumentation.appStart.enabled
to false
sentry {
tracingInstrumentation {
appStart {
enabled.set(false)
}
}
}
Version 4 of the Sentry Android Gradle plugin brings a variety of features and fixes. The most notable changes are:
7.0.0
. Please, refer to the changelog of the SDK for more detailsexperimentalGuardsquareSupport
flag to dexguardEnabled
excludes
option to allow excluding certain classes from instrumentation. It's available under the sentry.tracingInstrumentation
extensionMake sure to use Sentry Gradle plugin 4.+ together with the Sentry Android SDK 7.+, otherwise it might crash at runtime due to binary incompatibility. (E.g. if you're using -timber
, -okhttp
or other packages)
If you can't do that for some reason, you can specify sentry version via the plugin config block:
sentry {
autoInstallation {
sentryVersion.set("7.0.0")
}
}
Similarly, if you have a Sentry SDK (e.g. sentry-android-core
) dependency on one of your Gradle modules and you're updating it to 7.+, make sure the Gradle plugin is at 4.+ or specify the SDK version as shown in the snippet above.
experimentalGuardsquareSupport
flag to dexguardEnabled
(#589)7.0.0
excludes
option to exclude classes from instrumentation (#590)telemetry = false
in the sentry
plugin configuration block.upload-dif
to debug-files upload
for native symbols (#587)