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

☂️ Gradle 8.7, AGP 8.4, Java 21, support #146660

Open
reidbaker opened this issue Apr 11, 2024 · 6 comments
Open

☂️ Gradle 8.7, AGP 8.4, Java 21, support #146660

reidbaker opened this issue Apr 11, 2024 · 6 comments
Assignees
Labels
P1 High-priority issues at the top of the work list platform-android Android applications specifically team-android Owned by Android platform team

Comments

@reidbaker
Copy link
Contributor

reidbaker commented Apr 11, 2024

Goals:

@reidbaker reidbaker added platform-android Android applications specifically P1 High-priority issues at the top of the work list team-android Owned by Android platform team labels Apr 11, 2024
@bartekpacia
Copy link
Member

Out of curiostiy: any reason for Gradle 8.4 specifically? Latest is 8.7.

@gmackall
Copy link
Member

I think in practice this will be Gradle 8.6+, as it seems like AGP 8.4 requires that
https://developer.android.com/build/releases/gradle-plugin

@reidbaker reidbaker changed the title ☂️ Gradle 8.4, AGP 8.4, Java 21, support ☂️ Gradle 8.4, AGP 8.7, Java 21, support Apr 12, 2024
@reidbaker
Copy link
Contributor Author

@bartekpacia just a typo, title and body updated.

@bartekpacia bartekpacia changed the title ☂️ Gradle 8.4, AGP 8.7, Java 21, support ☂️ Gradle 8.7, AGP 8.4, Java 21, support Apr 12, 2024
@bartekpacia
Copy link
Member

I think you meant Gradle 8.7, not AGP 8.7 ;-) I changed it again.

@flutter-triage-bot flutter-triage-bot bot added the Bot is counting down the days until it unassigns the issue label Aug 16, 2024
@flutter-triage-bot
Copy link

This issue is assigned to @gmackall but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

@gmackall
Copy link
Member

Still working on tasks related to this, ex flutter/packages#7432

@flutter-triage-bot flutter-triage-bot bot removed the Bot is counting down the days until it unassigns the issue label Aug 16, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this issue Aug 20, 2024
Upgrades all AGP versions less than 8 to latest. The primary motivation is to prepare for flutter/flutter#136879 (comment), which requires that plugins use a non-7.3 version. We believe it only affects version 7.3 - I'm going to test this, but am not sure the exact range yet and updating is independently valuable, so I just updated all pre 8 versions (it doesn't affect 8+).

Also:
- Upgrades Gradle versions as required
- Marks the use of `Camera2Interop` with `@OptIn`, as it is required by the newer AGP version.
- Changes the Camerax example java directory path to align with the package xml attribute/AGP namespace attribute.
- Sets `android.buildFeatures.buildConfig` to true for compatibility with AGP 8.0+ in some places.
- Sets `exported=true` in a manifest, requires for AGP bump.
- Updates espresso in some examples, required by the AGP bump (0.2.0 isn't compatible with AGP 8.0+).

Also related to flutter/flutter#146660
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High-priority issues at the top of the work list platform-android Android applications specifically team-android Owned by Android platform team
Projects
None yet
Development

No branches or pull requests

3 participants