Migrate a Flutter Android project's Gradle scripts from Groovy to Kotlin DSL (build.gradle to build.gradle.kts)
A tested, file-by-file conversion of a Flutter app's settings.gradle, build.gradle and app/build.gradle to Kotlin DSL on Flutter 3.44.8, AGP 9.0.1 and Gradle 9.1.0, with the real compiler errors each naive rename produces and the exact fix for signing configs, flavors, minifyEnabled and kotlinOptions.