)]}'
{
  "commit": "79bd2849d93cff02d75961776ea0a3060e43abf5",
  "tree": "da6862b26eff784ef6a82b61b5c56ae69bdbec9c",
  "parents": [
    "d345538baeef88a2c3e5526c439c90fc1908d3a4"
  ],
  "author": {
    "name": "flutteractionsbot",
    "email": "154381524+flutteractionsbot@users.noreply.github.com",
    "time": "Wed Aug 20 17:15:29 2025 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Aug 21 00:15:29 2025 +0000"
  },
  "message": "[CP-stable]fix: Android build fails when minSdk is set below 24 in build.gradle.kts (#173823) (#174132)\n\nThis pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request)\r\nPlease fill in the form below, and a flutter domain expert will evaluate this cherry pick request.\r\n\r\n### Issue Link:\r\nhttps://github.com/flutter/flutter/issues/173823\r\n\r\n### Changelog Description:\r\nExplain this cherry pick in one line that is accessible to most Flutter developers. See [best practices](https://github.com/flutter/flutter/blob/main/docs/releases/Hotfix-Documentation-Best-Practices.md) for examples\r\n\r\nOn Android builds that do not use flutter.minSdkVersion and do use a value lower than 24 in a kotlin build file, correct flutters auto migration to update value with kotlin syntax. https://github.com/flutter/flutter/pull/173825 \r\n\r\n### Impact Description:\r\nWhat is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)? Does it impact development (ex. flutter doctor crashes when Android Studio is installed), or the shipping production app (the app crashes on launch)\r\n\r\n3.35 bumped the min android api level to api 24. We have an auto migrator to handle if users did not use flutter.minSdkVersion and did set an integer to auto update. The auto update logic produces a syntax error in kotlin build files but the matcher matches kotlin build files. CP is a good idea because 3.35 users are the most likley to be impacted. \r\n\r\n### Workaround:\r\nIs there a workaround for this issue?\r\n\r\nManually edit build.gradle.kts\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\nTake flutter build that uses minsdk 22, update to flutter 3.35 and run flutter build apk.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9c543454719bdedf41e00564d6845eb2e289b641",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/android/gradle_utils.dart",
      "new_id": "2cde2707f81bd20538747b9f3e59dedc43ff075d",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/android/gradle_utils.dart"
    },
    {
      "type": "modify",
      "old_id": "56433278cfe35b1a550baacaafccdbaa202e9e30",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/android/migrations/min_sdk_version_migration.dart",
      "new_id": "1039eb1ed7859af653873f8dda96fc2c6a115e00",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/android/migrations/min_sdk_version_migration.dart"
    },
    {
      "type": "modify",
      "old_id": "52f7fe5d59519d49523a8063f7eabb156342de0c",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/android/android_project_migration_test.dart",
      "new_id": "ecdda2ce33cae8093173c5a8f7c382c3fe679711",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/android/android_project_migration_test.dart"
    }
  ]
}
