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

feat: Android SDK 35 Support #1745

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

feat: Android SDK 35 Support #1745

wants to merge 12 commits into from

Conversation

erisu
Copy link
Member

@erisu erisu commented Nov 8, 2024

Motivation and Context

Prepare for Cordova-Android 14 Release & Android SDK 35 support.

Description

Note: This PR is intended to collect changes for testing and will be split into smaller PRs later.

  • Bump Gradle to 8.9
  • Bump Android Gradle Plugin to 8.7.2
  • Bump Android SDK Target to 35
  • Bump Android Minimum Build Tools to 35.0.0
  • Bump androidx.appcompat to 1.7.0
  • Bump androidx.webkit to 1.12.1
  • Bump com.google.gms:google-services to 4.4.2
  • Bump kotlin-stdlib to 1.9.24
    • Added constraints to prevent kotlin-stdlib-jdk7 and kotlin-stdlib-jdk8 from being installed by other libraries, as kotlin-stdlib is already included.
  • Updated require statements to include node:* prefixes for Node.js internal modules.

Testing

  • Build Cordova sample application.
  • Tested on Android Studio - Ladybug

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@codecov-commenter
Copy link

codecov-commenter commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.45%. Comparing base (5a2c50d) to head (53d0d42).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1745      +/-   ##
==========================================
- Coverage   72.50%   72.45%   -0.06%     
==========================================
  Files          23       23              
  Lines        1837     1837              
==========================================
- Hits         1332     1331       -1     
- Misses        505      506       +1     

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

@jcesarmobile
Copy link
Member

  • Bump Android Gradle Plugin to 8.7.0-rc01

    • Awaiting official release.

The PR updates the version to 8.7.2 🤔

What about the kotlin version? should we update to 2.x?

@erisu
Copy link
Member Author

erisu commented Nov 14, 2024

The PR updates the version to 8.7.2 🤔

It seems I was using an RC version of Android Studio at the time that used AGP 8.7.0-rc01 as default. I’ve noticed a newer version and upgraded to the stable 8.7.2 but forgot to update the commit message, leading to incorrect information in the PR description.

Since 8.7.2 is the current default, I’ll correct the commit message and update the PR description.

What about the kotlin version? should we update to 2.x?

The latest official release of Android Studio is still using 1.9.24 of Kotlin as part of the default template.
I am not sure if we should use 2.x... Any opinions on this?

@breautek
Copy link
Contributor

Kotlin 2 is considered beta for IDE users, so Android Studio might not behave as expected when using K2. https://kotlinlang.org/docs/releases.html#release-details

So it might be better to stay on 1.x for now.

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.

4 participants