-
Notifications
You must be signed in to change notification settings - Fork 672
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
Add namespace property for compatibility with Gradle 8 #1274
Conversation
@@ -1,2 +1,3 @@ | |||
org.gradle.jvmargs=-Xmx1536M | |||
android.enableR8=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enableR8
is deprecated, and I got a warning for the missing useAndroidX
@@ -24,6 +23,7 @@ | |||
android:theme="@style/LaunchTheme" | |||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density" | |||
android:hardwareAccelerated="true" | |||
android:exported="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevented building the example app
@@ -30,6 +30,6 @@ subprojects { | |||
project.evaluationDependsOn(':app') | |||
} | |||
|
|||
task clean(type: Delete) { | |||
tasks.register("clean", Delete) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new in newer Gradle versions, was automatically added by the Flutter tool migrators.
@@ -9,8 +9,6 @@ dependencies: | |||
flutter: | |||
sdk: flutter | |||
|
|||
cupertino_icons: ^0.1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cupertino_icons
was never used and the old version prevented running in null-safe mode.
I actually misread the changelog here. Migrating specifically to Gradle 8, requires the source compatibility to change to Java 17, which is not what we want. I'll revert the Gradle 8 change and keep the namespace changes (the latter is what we actually want per https://docs.flutter.dev/release/breaking-changes/android-java-gradle-migration-guide) |
Thank you, could you bump it to 5.3.0 instead, since it could break stuff for projects relying on older gradle versions? |
@miguelpruivo Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR updates Gradle to version 8.0
Fixes #1273