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

Target api 35 #3776

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Target api 35 #3776

merged 2 commits into from
Nov 5, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Oct 31, 2024

Content

Change compile and target to 35 and fix new warnings in the code. I do not think that we need to take special action for the change about foreground service (see https://developer.android.com/about/versions/15/behavior-changes-15#fgs-hardening). I do not see in https://developer.android.com/about/versions/15/behavior-changes-15 other actions that we should handle.

Also improve code quality on the Versions object.

Motivation and context

Be up to date and allow dependencies to be upgraded (see for instance #3766)

Screenshots / GIFs

Tests

  • Run the app in API 35 emulator and see that it's working fine.

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

  • Changes have been tested on an Android device or Android emulator with API 23
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • Pull request includes a sign off
  • You've made a self review of your PR

@bmarty bmarty added the PR-Build For changes related to build, tools, CI/CD label Oct 31, 2024
@bmarty bmarty requested a review from a team as a code owner October 31, 2024 08:31
@bmarty bmarty requested review from jmartinesp and removed request for a team October 31, 2024 08:31
@bmarty bmarty added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Oct 31, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Oct 31, 2024
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/jxtS3g

Copy link

sonarcloud bot commented Oct 31, 2024

@jmartinesp
Copy link
Member

We may have to check:

Changes to language code handling: When using the Locale API, language codes for Hebrew, Yiddish, and Indonesian are no longer converted to their obsolete forms (Hebrew: iw, Yiddish: ji, and Indonesian: in). When specifying the language code for one of these locales, use the codes from ISO 639-1 instead (Hebrew: he, Yiddish: yi, and Indonesian: id).

Could this allow us to remove some localazy post-processing?

Change PendingIntent creators to block background activity launches by default. This helps prevent apps from accidentally creating a PendingIntent that could be abused by malicious actors.

Intents must have actions: Intents without an action will no longer match any intent-filters. This means that intents used to start activities or services must have a clearly defined action.

The last 2 may be closely tied to the Element Call integration.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.97%. Comparing base (fa1e5e5) to head (4f60ee2).
Report is 46 commits behind head on develop.

Files with missing lines Patch % Lines
...android/features/share/impl/DefaultShareService.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3776   +/-   ##
========================================
  Coverage    82.97%   82.97%           
========================================
  Files         1770     1770           
  Lines        44422    44422           
  Branches      5222     5223    +1     
========================================
  Hits         36858    36858           
  Misses        5729     5729           
  Partials      1835     1835           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

I took another look, tested it a bit and I think we're handling all the changes I mentioned above.

@bmarty bmarty merged commit 4e9f429 into develop Nov 5, 2024
31 of 34 checks passed
@bmarty bmarty deleted the feature/bma/targetApi35 branch November 5, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Build For changes related to build, tools, CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants