You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related Issues
Checklist
CHANGELOG.mdnor the plugin version inpubspec.yamlfiles.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?
!in the title as explained in Conventional Commits).