Kotlin in First-Party Android Plugins - #21
Conversation
Proposes changing the guidance for flutter/packages development to recommend Kotlin, rather than Java.
|
Per recent discussion. Please let me know if there is other reasoning you'd like me to capture here, or if you'd like to adjust the recommended policy text at all. |
|
This looks fairly straight forward. Would there be any reason to suggest migrating Java plugins to Kotlin with AI tooling? @mboetger - assuming you lgtm, also add the |
|
Failed to automatically assign RFC number. Check workflow logs for details. |
OK, that's what I was afraid of. |
|
I tried to be smart and have a dual-checkout, but github /
I'll research it more.. but let me see if I can unblock. |
|
While I have a solution, it will still require users to allow maintainers to push to their repository (needs instructions). To get past this, simply run: dart run bin/assign_rfc_number.dartAnd it will assign and update your files. |
Personally, I think the deterministic Android Studio conversion is a much better starting point than AI. On the iOS side, where there is no such migrator, I've used Gemini to do first-pass conversions and it has an unfortunate tendency—even when specifically prompted to keep the exact same structure for easy side-by-side reviewing—to do a pretty good job on 95% of it and then randomly drop or change 5% of the logic. That makes reviewing for correctness very tedious because you have to check every single line. The AS conversion, because it's just deterministically applying rules, never does that. Then the review can focus on the follow up diffs to that mechanically converted base, which are much smaller. |
|
@jtmcdole I'm not entirely sure what the process is here at this point; do I just land this now that it's approved? |
As the primary owner of 720 (package ecosystem) and having gotten the approval of the Android TL, you could:
|
Nope, this has already been pre-socialized among the stakeholders.
I would have forgotten to change that, thanks! |
|
It would be nice if that linter were a presubmit :) |
|
Oh shoot - that should be! |
|
lints should now run in PR as expected. |

Proposes changing the guidance for flutter/packages development to recommend Kotlin, rather than Java.