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

Add namespace to gradle files on Flutter plugin to be compatible with AGP 8.+ #1129

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

erdemyerebasmaz
Copy link
Contributor

@erdemyerebasmaz erdemyerebasmaz commented Nov 26, 2024

This PR addresses compatibility with Android Gradle Plugin (AGP) 8.+, the second error seen on issue #1128

Changelist

  • Add namespace to gradle files on Flutter plugin
    • AGP 8.+ requires each module to declare a namespace. This change ensures the plugin is compliant with the latest AGP requirements.
  • Removing unnecessary AndroidManifest.xml
    • As the namespace is now declared in the Gradle files, the redundant AndroidManifest.xml has been removed.
  • Explicitly specifying types for decoded values
    • Addresses type inference failures.

Addresses warning: source/target value 8 is obsolete and will be removed in a future release.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we update the compileSdk/java version in libs/sdk-bindings/bindings-android and libs/sdk-react-native/android also or is it fine to leave them as is?

Copy link
Contributor Author

@erdemyerebasmaz erdemyerebasmaz Nov 27, 2024

Choose a reason for hiding this comment

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

Ideally yes, but scope of this PR only concerns Flutter plugin. Other bindings can be addressed in separate PRs if needed.

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.

2 participants