)]}'
{
  "commit": "f5bf32d3a7ef8d939a774901ec807cef6c4e59d3",
  "tree": "d99cb5887165687832e1372da317b17b3a59a19d",
  "parents": [
    "c63e437fe809a81ae634ee212cd6717cd2d08dd5"
  ],
  "author": {
    "name": "jesswrd",
    "email": "jesswon@google.com",
    "time": "Tue Jun 30 14:21:05 2026 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jun 30 21:21:05 2026 +0000"
  },
  "message": "[CP-Stable] Ensure Warnings Do Not Log When AGP Is Below 9 (#188716)\n\nThis was a manual cherry pick of https://github.com/flutter/flutter/pull/188373.\r\n\r\n### Issue Link:\r\nWhat is the link to the issue this cherry-pick is addressing?\r\n\r\nhttps://github.com/flutter/flutter/issues/188718\r\n\r\n### Impact Description:\r\nWhat is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)?\r\nDoes it impact development (ex. flutter doctor crashes when Android Studio is installed),\r\nor the shipping of production apps (the app crashes on launch).\r\nThis information is for domain experts and release engineers to understand the consequences of saying yes or no to the cherry pick.\r\n\r\nAll existing Flutter Android apps and add-to-app scenarios that use AGP \u003c 9 and apply KGP.\r\n\r\n### Changelog Description:\r\nExplain this cherry pick:\r\n* In one line that is accessible to most Flutter developers.\r\n* That describes the state prior to the fix.\r\n* That includes which platforms are impacted.\r\nSee [best practices](https://github.com/flutter/flutter/blob/main/docs/releases/Hotfix-Documentation-Best-Practices.md) for examples.\r\n\r\n\u003c Replace with changelog description here \u003e\r\n[flutter/188718](https://github.com/flutter/flutter/issues/186100): When building Flutter Android apps and add-to-app modules using AGP \u003c 9 with KGP, the tool incorrectly logs Built-in Kotlin migration warnings.\r\n\r\n### Workaround:\r\nIs there a workaround for this issue?\r\n\r\nThis change must be made. Built-in Kotlin only exists starting AGP 9, therefore we should not be informing app developers to migrate when their apps are below AGP 9.\r\n\r\n### Risk:\r\nWhat is the risk level of this cherry-pick?\r\n\r\n### Test Coverage:\r\nAre you confident that your fix is well-tested by automated tests?\r\n\r\n### Validation Steps:\r\nWhat are the steps to validate that this fix works?\r\n\r\n- navigate to plugin camera_android_camerax in the packages repo\r\n- change versions to AGP: 8.11.1, Gradle: 8.14, KGP: 2.2.20 in settings.gradle.kts\r\n- add KGP id(\"kotlin-android\") to the example app build.gradle.kts and the plugin module\u0027s build.gradle.kts\r\n- `flutter build apk` and the build is successful and you see no logs. Without this change, you will see logs both for app developers and for plugin authors.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4c5e2f91e6fa3724eca42f5314733c3bc2900eaa",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt",
      "new_id": "94376cad6b2fb59662dbdaea0f4f7a02528b01da",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt"
    },
    {
      "type": "modify",
      "old_id": "28bc9c00d806a0d9ebe3d55a0daa5b2c75cd26f9",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/gradle/src/test/kotlin/FlutterPluginUtilsTest.kt",
      "new_id": "bf282ba0aaf20a6fe81d7573bf4c9d6ab20d1ca0",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/gradle/src/test/kotlin/FlutterPluginUtilsTest.kt"
    },
    {
      "type": "modify",
      "old_id": "817317dea9e10d99d6516caf8e4f24c295ff96ec",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/android/gradle_utils.dart",
      "new_id": "bd271d58b0254f84bf21bcb69ea34205ae7d2fe1",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/android/gradle_utils.dart"
    }
  ]
}
