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

[Fix] Update targetSdk to 34 and fixed a few issues along the way. #745

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

notandyvee
Copy link

@notandyvee notandyvee commented Jan 19, 2024

Issue: #744
Parent: https://github.com/orgs/wordpress-mobile/projects/223

This PR updates the targetSdk version to 34. During testing, two issues were found:

  1. Services now require a foregroundServiceType.
  2. Sentry needed to be updated. Found an issue on Sentry's repo and the corresponding fix. It was released in 6.32.0. I realize this increases risk, so I only updated Sentry to the lowest possible version that avoided the crash.

Something to note. I used datasync as the foreground service type. This makes sense as we are processing the image and the camera does not need to be open for this. But feel free to make sure I chose the right foreground service type as a second pair of eyes.

Note:

I tested this with the sample app and Wordpress Android. Worked fine on both.

Specifically there was a foreground service type missing, and
sentry needed to be updated.
@notandyvee notandyvee added the [Type] Task Something that needs be done, but is not necessarily a feature/bugfix itself. label Jan 19, 2024
Copy link
Contributor

@irfano irfano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataSync looks proper for FrameSaveService to me.

I only updated Sentry to the lowest possible version that avoided the crash.

Good call. There are still many versions between Sentry 5.01 and 6.32.0; yes, there is a risk. I checked changes between two versions, and I couldn't find any change that may affect us.
So, LGTM! 👍🏻

@irfano irfano merged commit 3df182a into trunk Jan 22, 2024
12 checks passed
@irfano irfano deleted the fix/update-targetSdk-34 branch January 22, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Task Something that needs be done, but is not necessarily a feature/bugfix itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants