chore(deps): update Android SDK to v7.18.0 #191
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps flutter/scripts/update-android.sh from 6.15.0 to 7.18.0.
Auto-generated by a dependency updater.
Changelog
7.18.0
Features
beforeSendReplay
callback (#3855)Fixes
Dependencies
7.17.0
Features
Random
instance per thread to improve SDK performance (#3835)Fixes
7.16.0
Features
Fixes
enableTracing
option (#3777)java.util.Random
and replacejava.security.SecureRandom
usages (#3783)Log
calls on app startup (#3793)Breaking changes
addIntegrationToSdkVersion(Ljava/lang/Class;)V
has been removed from the core (io.sentry:sentry
) package. Please make sure all of the packages (e.g.io.sentry:sentry-android-core
,io.sentry:sentry-android-fragment
,io.sentry:sentry-okhttp
and others) are all aligned and using the same version to prevent theNoSuchMethodError
exception.7.16.0-alpha.1
Features
Fixes
enableTracing
option (#3777)java.util.Random
and replacejava.security.SecureRandom
usages (#3783)Log
calls on app startup (#3793)7.15.0
Features
feedback
envelope header item type (#3687)android:tag="sentry-mask|sentry-unmask"
in XML orview.setTag("sentry-mask|sentry-unmask")
in code tags<tag android:id="id/sentry_privacy" android:value="mask|unmask"/>
in XML orview.setTag(io.sentry.android.replay.R.id.sentry_privacy, "mask|unmask")
in codeview.sentryReplayMask()
orview.sentryReplayUnmask()
extension functionsView
s of a certain type by adding fully-qualified classname to one of the listsoptions.experimental.sessionReplay.addMaskViewClass()
oroptions.experimental.sessionReplay.addUnmaskViewClass()
. Note, that all of the view subclasses/subtypes will be masked/unmasked as wellTextView
s and their subclasses (RadioButton
,EditText
, etc.):options.experimental.sessionReplay.addMaskViewClass("android.widget.TextView")
Modifier.sentryReplayMask()
andModifier.sentryReplayUnmask()
modifiersWebView
,VideoView
andandroidx.media3.ui.PlayerView
by default (#3775)Fixes
TextView
s with Spans (#3682)Calendar.getInstance
usage in Breadcrumbs constructor (#3736)SentryOptions
members to avoid ANRs on app start (#3749)Breaking changes:
options.experimental.sessionReplay.errorSampleRate
was renamed tooptions.experimental.sessionReplay.onErrorSampleRate
(#3637)io.sentry.session-replay.error-sample-rate
was renamed toio.sentry.session-replay.on-error-sample-rate
(#3637)redactAllText
andredactAllImages
tomaskAllText
andmaskAllImages
(#3741)7.14.0
Features
Fixes
buffer
replay type for the entire replay when converting from buffer mode to session modebuffer
modeRejectedExecutionException
when redacting a screenshotFileNotFoundException
when persisting segment valuesChores
ReplayShadowMediaCodec
and refactor tests using custom encoder (#3612)7.13.0
Features
Fixes
session
mode at 1 hour deadlineDependencies
7.12.1
Fixes
7.12.0
Features
Session Replay Public Beta (#3339)
To enable Replay use the
sessionReplay.sessionSampleRate
orsessionReplay.errorSampleRate
experimental options.To learn more visit Sentry's Mobile Session Replay documentation page.
7.11.0
Features
Fixes
User.segment
. Use a custom tag or context instead. (#3511)Dependencies
7.10.0
Features
Fixes
span.frame_delay
calculation for early app start spans (#3427)ShutdownHookIntegration
and the VM is shutting down (#3456)7.9.0
Features
Fixes
7.8.0
Features
Fixes
7.7.0
Features
Fixes
Fix java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerExceptionResolver
in Spring Boot Servlet mode without WebMVC (#3333)7.6.0
Features
Use the Metrics API to track processing time, download sizes, user signups, and conversion rates and correlate them back to tracing data in order to get deeper insights and solve issues faster. Our API supports counters, distributions, sets, gauges and timers, and it's easy to get started:
7.5.0
Features
enableScopePersistence
option to disablePersistingScopeObserver
used for ANR reporting which may increase performance overhead. Defaults totrue
(#3218)Fixes
Runnable
/Callable
/Supplier
is executed instead of setting it to the hub that was used on the thread where theRunnable
/Callable
/Supplier
was created.7.4.0
Features
options.isEnableSpotlight = true
to enable SpotlightFixes
RuntimeException
is thrown by the system (#3212)RuntimeInit$MethodAndArgsCaller
to have them split up properly by the original root cause exception7.3.0
Features
io.sentry.profiling.enable-app-start
, other than the already existingio.sentry.traces.profiling.sample-rate
.isForNextAppStart
flag, to adjust startup profiling sampling programmatically.Relevant PRs:
OnFrameMetricsAvailableListener
(#3111)Fixes
mechanism:AppExitInfo
Breaking changes
HostnameVerifier
option as it's flagged by security tools of some app stores (#3150)ITransportFactory
throughSentryOptions.setTransportFactory()
, where you can copy over most of the parts likeHttpConnection
andAsyncHttpTransport
from the SDK with necessary modificationsDependencies
7.2.0
Features
monitor
/check_in
in client reports and rate limiter (#3096)graphql-java
version 21 (#3090)Fixes
SentryJobListener
release
and other fields for ANRs reported withmechanism:AppExitInfo
(#3074)Dependencies
opentelemetry-sdk
to1.33.0
andopentelemetry-javaagent
to1.32.0
(#3112)7.1.0
Features
enable-backpressure-handling=true
.tracesSampleRate
automatically.tracesSampleRate
to its original value.4.1.0
or neweroptions.isEnablePerformanceV2 = true
Fixes
SentryOkHttpEventListener
even without transactions (#3087)io.sentry.exception.SentryHttpClientException
from obfuscation to display proper issue title on Sentry (#3093)Dependencies
7.0.0
Version 7 of the Sentry Android/Java SDK brings a variety of features and fixes. The most notable changes are:
minSdk
level to 19 (Android 4.4)Sentry.getSpan
now returns the root transaction, which should improve the span hierarchy and make it leanersentry-okhttp
artifact is unbundled from Android and can be used in pure JVM-only appsSentry Self-hosted Compatibility
This SDK version is compatible with a self-hosted version of Sentry
22.12.0
or higher. If you are using an older version of self-hosted Sentry (aka onpremise), you will need to upgrade. If you're usingsentry.io
no action is required.Sentry Integrations Version Compatibility (Android)
Make sure to align all Sentry dependencies to the same version when bumping the SDK to 7.+, otherwise it will crash at runtime due to binary incompatibility. (E.g. if you're using
-timber
,-okhttp
or other packages)For example, if you're using the Sentry Android Gradle plugin with the
autoInstallation
feature (enabled by default), make sure to use version 4.+ of the gradle plugin together with version 7.+ of the SDK. 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.Breaking Changes
sentry-kotlin-extensions
, it requireskotlinx-coroutines-core
version1.6.1
or higher now (#2838)SentryOkHttpUtils
was removed from public API as it's been exposed by mistake (#3005)Scope
now implements theIScope
interface, therefore some methods likeScopeCallback.run
acceptIScope
now (#3066)startTransaction
overloads (#2964)TransactionOptions
object instead of having separate parameters for certain optionsTransactionOptions
has defaults set and can be customized, for example:Behavioural Changes
Sentry.getSpan()
returns the root span/transaction instead of the latest span (#2855)sentry-android-okhttp
orsentry-apollo-3
integrations. You can customize what errors you want/don't want to have reported for OkHttp and Apollo3 respectively.onResume
(#2851)deadline_exceeded
when reaching the deadlinesendDefaultPii
if anencoder
has been configured (#2976)maxSpans
setting (defaults to 1000) is enforced for nested child spans which means a single transaction can havemaxSpans
number of children (nested or not) at most (#3065)ScopeCallback
inwithScope
is now always executed (#3066)Deprecations
sentry-android-okhttp
was deprecated in favour of the newsentry-okhttp
module. Make sure to replaceio.sentry.android.okhttp
package name withio.sentry.okhttp
before the next major, where the classes will be removed (#3005)Other Changes
Features
SendCachedEnvelopeIntegration
SendCachedEnvelopeFireAndForgetIntegration
as mentioned in https://docs.sentry.io/platforms/java/configuration/#configuring-offline-caching and provide your own implementation ofIConnectionStatusProvider
viaSentryOptions
sentry-okhttp
module to support instrumenting OkHttp in non-Android projects (#3005)Fixes
getMyMemoryState()
instead ofgetRunningAppProcesses()
to retrieve process importance (#3004)aborted
in case a crash happens (#2938)default
interface methods to proper implementations in each interface implementor (#2847)SentryOkHttpInterceptor.BeforeSpanCallback
was not finishing span when it was dropped (#2958)6.34.0
Features
MonitorConfig
param toCheckInUtils.withCheckIn
(#3038)readBytesFromFile
for use in Hybrid SDKs (#3052)getProguardUuid
for use in Hybrid SDKs (#3054)Fixes
Dependencies
6.33.2-beta.1
Fixes
Dependencies
6.33.1
Fixes
sentrySpringFilter
in ServletContext for Spring Boot (#3027)6.33.0
Features
Fixes
StackOverflowError
6.32.0
Features
DebugImagesLoader
public (#2993)Fixes
SystemEventsBroadcastReceiver
exported on API 33+ (#2990)SystemEventsBreadcrumbsIntegration
crashes that you might have encountered on Play Console6.31.0
Features
CheckInUtils.withCheckIn
which abstracts away some of the manual check-ins complexity (#2959)SentryCaptureExceptionParameter
annotation which captures exceptions passed into an annotated method (#2764)Sentry.captureException
calls inExceptionHandler
of aControllerAdvice
ServerWebExchange
toHint
for WebFlux asWEBFLUX_EXCEPTION_HANDLER_EXCHANGE
(#2977)SentryInstrumentation
application.properties
assentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR
Fixes
nextList
tonextListOrNull
to actually match what the method doesop
is not defined as part ofSpanContext
, fallback to an empty string, because the filed is optional in the specDependencies
6.30.0
Features
sendModules
option for disable sending modules (#2926)db.system
anddb.name
in span data for androidx.sqlite spans (#2928)SentryCheckIn
annotation and advice config for Spring (#2946)Fixes
device.class
tag on Sentrysentry.enable-aot-compatibility
property to SpringBoot JakartaSentryAutoConfiguration
to enable building for GraalVM (#2915)Dependencies
6.29.0
Features
db.system
anddb.name
in span data (#2894)http.request.method
in span data (#2896)enablePrettySerializationOutput
option for opting out of pretty print (#2871)6.28.0
Features
sampled
to Dynamic Sampling Context (#2869)SentryDataFetcherExceptionHandler
that still works but has been deprecated. Please useSentryGenericDataFetcherExceptionHandler
combined withSentryInstrumentation
instead for better error reporting.ExecutionResult
(more specifically itserrors
)GraphQLContext
sentry-spring-boot
andsentry-spring-boot-jakarta
(#2880)sentry-spring-boot
andsentry-spring-boot-jakarta
have acompileOnly
dependency onspring-boot-starter
which is needed for our auto installation in sentry-android-gradle-pluginsentry-spring-boot-starter
andsentry-spring-boot-starter-jakarta
now bringspring-boot-starter
as a dependencyenabled
option tofalse
(#2840)Fixes
6.27.0
Features
Fixes
OutOfMemoryError
) (#2845)Crashed
status, but only the one that is relevant6.26.0
Features
Fixes
TracingContext
values from event for ANRv2 events (#2839)6.25.2
Fixes
6.25.1
Fixes
Dependencies
6.25.0
Features
AutoInit
to integrations list (#2795)sentry-trace
andbaggage
) are now attached and passed through even if performance is disabled (#2788)Fixes
environment
fromSentryOptions
if none persisted in ANRv2 (#2809)tracesSampleRate
to0.0
for Spring Boot if not set (#2800)Dependencies
6.24.0
Features
ApplicationNotResponding
class from obfuscationsetReportHistoricalAnrs
; when enabled, it will report all of the ANRs from the getHistoricalExitReasons list.By default, the SDK only reports and enriches the latest ANR and only this one counts towards ANR rate.
Worth noting that this option is mainly useful when updating the SDK to the version where ANRv2 has been introduced, to report all ANRs happened prior to the SDK update. After that, the SDK will always pick up the latest ANR from the historical exit reasons list on next app restart, so there should be no historical ANRs to report.
These ANRs are reported with the
HistoricalAppExitInfo
mechanism.setAttachAnrThreadDump
to send ANR thread dump from the system as an attachment.This is only useful as additional information, because the SDK attempts to parse the thread dump into proper threads with stacktraces by default.
6.23.0
Features
Dependencies
Fixes
6.22.0
Features
lock
attribute to theSentryStackFrame
protocol to better highlight offending frames in the UI (#2761)api_target
toRequest
anddata
toResponse
Protocols (#2775)Fixes
String.join
inBaggage
as it requires API level 26 (#2778)6.21.0
Features
sentry-android-sqlite
integration (#2722)androidx.sqlite
database instrumentation in the Sentry Android Gradle pluginandroidx.sqlite
databases.SupportSQLiteOpenHelper
instance intoSentrySupportSQLiteOpenHelper(myHelper)
if you're not using the Sentry Android Gradle plugin and still benefit from performance auto-instrumentation.Fixes
SentryExecutorService
in6.19.0
which caused the application to hang on shutdown unlessSentry.close()
was called. By using daemon threads we no longer block shutdown.