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

Added support for Android 16. #4231

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Added support for Android 16. #4231

wants to merge 5 commits into from

Conversation

MohitMaliFtechiz
Copy link
Collaborator

@MohitMaliFtechiz MohitMaliFtechiz commented Feb 19, 2025

Fixes #4165

  • Added support for Android 16.
  • Upgraded AGP to 8.10.0-alpha05, which supports Android 16.
  • Replaced targetSdkVersion and compileSdkVersion with targetSdkPreview and compileSdkPreview to add support for Android 16.
  • Refactored the java.util.Locale constructor, which is deprecated in Android 16. For this, we have created CompatV36 to utilize the methods introduced in this Android version.
  • After upgrading the gradle lint showed some new errors so we have fixed those lint errors that required us to use the KTX extension functions, as they internally utilize the same functions we were using.
  • Fixed: AnnotateVersionCheck lint error.
  • Upgraded the com.googlecode.json-simple to version 1.1.1.
  • Upgraded the com.squareup.okhttp3:okhttp to version 4.12.0.
  • Upgraded the org.jetbrains.kotlinx:kotlinx-coroutines-rx3 to version 1.10.1.
  • Upgraded the androidx.test:orchestrator to version 1.5.1.
  • Upgraded the androidx.constraintlayout:constraintlayout to version 2.2.0.

…droid 16.

* Replaced the  and  with , and  to add support for Android 16.
… Android 16.

* Created `CompatV36` to utilize the methods introduced in this Android version.
* Upgraded AGP to `8.10.0-alpha05`, which supports Android 16.
* Replaced `targetSdkVersion` and `compileSdkVersion` with `targetSdkPreview` and `compileSdkPreview` to add support for Android 16.
* After upgrading the gradle lint showing some new errors so we have fixed those lint errors that required us to use the KTX extension functions, as they internally utilize the same functions we were using.
@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as draft February 19, 2025 11:39
* Upgraded the `com.squareup.okhttp3:okhttp` to version `4.12.0`.
…n `1.10.1`.

* Upgraded the `androidx.test:orchestrator` to version `1.5.1`.
* Upgraded the `androidx.constraintlayout:constraintlayout` to version `2.2.0`.
* Fixed the last lint issue.
@MohitMaliFtechiz
Copy link
Collaborator Author

@kelson42 The code refactoring is complete, and all functionalities are working fine on Android 16. However, we need to wait for some time as there are no sources available for Android 16 yet. Since it is in preview, we have added targetSdkPreview to run it on Android 16. As a result, our application will not run on other Android devices (which is why all our CI tests are failing) because it is using the preview SDK.

Screenshot from 2025-02-20 14-45-03

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

Successfully merging this pull request may close these issues.

Add support of Android 16
2 participants