Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Sentry so it supports targetSdk 34 #19980

Closed
1 task
notandyvee opened this issue Jan 18, 2024 · 2 comments · Fixed by #20134
Closed
1 task

Update Sentry so it supports targetSdk 34 #19980

notandyvee opened this issue Jan 18, 2024 · 2 comments · Fixed by #20134

Comments

@notandyvee
Copy link
Contributor

notandyvee commented Jan 18, 2024

Sentry crashes with:

 Failed to initialize SystemEventsBreadcrumbsIntegration.
                                                                                                    java.lang.SecurityException: com.jetpack.android.prealpha: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

It's a specific securoty exception related only to Android 14 targetSdk.

Sentry Fix.

@notandyvee
Copy link
Contributor Author

@irfano I ran some tests and realized that Sentry isn't actually being used in WP-Android directly, which I'm a bit surprised about. I had updated it in stories (https://github.com/Automattic/stories-android/pull/745/files).

Just running it by you so I can close if you agree.

@irfano
Copy link
Member

irfano commented Feb 5, 2024

@notandyvee, Sentry is installed automatically through Gradle.

Gradle code that enabled Sentry:

sentry {
tracingInstrumentation {
enabled = true
features = [io.sentry.android.gradle.extensions.InstrumentationFeature.DATABASE]
logcat {
enabled = false
}
}
autoInstallation {
enabled = false
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants