Skip to content

fix: (device_info_plus): Migrate Plugin to Built-in Kotlin#3865

Open
ravi84184 wants to merge 1 commit into
fluttercommunity:mainfrom
ravi84184:main
Open

fix: (device_info_plus): Migrate Plugin to Built-in Kotlin#3865
ravi84184 wants to merge 1 commit into
fluttercommunity:mainfrom
ravi84184:main

Conversation

@ravi84184

@ravi84184 ravi84184 commented Jun 4, 2026

Copy link
Copy Markdown

Description

Related Issues

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@ravi84184 ravi84184 changed the title (device_info_plus): Migrate Plugin to Built-in Kotlin Fix (device_info_plus): Migrate Plugin to Built-in Kotlin Jun 4, 2026
@ravi84184 ravi84184 changed the title Fix (device_info_plus): Migrate Plugin to Built-in Kotlin fix: (device_info_plus): Migrate Plugin to Built-in Kotlin Jun 4, 2026
@douggynix

This comment was marked as off-topic.

giovanniPolatoO

This comment was marked as off-topic.

@mdmahendri

Copy link
Copy Markdown
Contributor

I initially considered combining these steps in #3858, but I realized that keeping the addition of new features/configurations in a separate PR makes it much cleaner for maintainers to review.
Regarding the build files: while we can technically migrate to built-in Kotlin while keeping the Groovy DSL layout, we should heavily prioritize migrating fully to Kotlin DSL build.gradle.kts as a first step. Moving away from Groovy eliminates legacy deprecation risks and establishes proper type-safety as we upgrade AGP versions.
As noted in the Android Developer documentation:

Starting with Android Studio Giraffe, new projects use the Kotlin DSL (build.gradle.kts) by default for build configuration. This offers a better editing experience than the Groovy DSL (build.gradle) with syntax highlighting, code completion, and navigation to declarations.

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.

5 participants