)]}'
{
  "commit": "e57d7b6eea0881a8d0f11170e6652bc1b7de72a2",
  "tree": "4b4286d16689b090140208714e23ebf87516def2",
  "parents": [
    "f4eb1337b1fe907dd92f939ee97e16e3a9739a0b"
  ],
  "author": {
    "name": "A Googler",
    "email": "no-reply@google.com",
    "time": "Mon Nov 02 16:43:55 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Nov 02 16:44:50 2026 -0800"
  },
  "message": "Gate `android_binary` baseline and ART profile generation on non-empty `proguard_specs`.\n\nPreviously, `_process_baseline_profiles` and `_process_art_profile` ran whenever `generate_art_profile` was `True` (its default), even on unoptimized inner-loop development builds with `proguard_specs \u003d []`. This caused `MergeBaselineProfiles`, `GenerateARTProfile` (`android_profgen`), `ZipARTProfiles`, and `DumpProfile` to run on the post-dexing critical path of unoptimized builds whenever any transitive dependency propagated `BaselineProfileProvider` (such as AndroidX libraries).\n\nBecause `ctx.attr.generate_art_profile` defaults to `True` (and shared app wrapper macros commonly pass `generate_art_profile \u003d True` across all build variants while setting `proguard_specs \u003d []` on dev/test variants, just like `shrink_resources \u003d 1`), gating baseline and ART profile generation on `ctx.attr.generate_art_profile and bool(ctx.files.proguard_specs)` (matching `_resources.is_resource_shrinking_enabled`) ensures unoptimized builds skip profile compilation while ProGuarded builds continue generating ART profiles as before. The `startup_profiles` allowlist validation still runs unconditionally.\n\nPiperOrigin-RevId: 1012547239\nChange-Id: I988309207316b859381da11b3ef5f9425793a43a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "79238181d5dfbb5f7de8daedb2b7a14883975e3d",
      "old_mode": 33188,
      "old_path": "rules/android_binary/attrs.bzl",
      "new_id": "5390e8e71c197e95fec8f1191542ec25256f0329",
      "new_mode": 33188,
      "new_path": "rules/android_binary/attrs.bzl"
    },
    {
      "type": "modify",
      "old_id": "841c8ed92f99bb29984402c4674f75c21b04d772",
      "old_mode": 33188,
      "old_path": "rules/android_binary/impl.bzl",
      "new_id": "3752a04c21ca67ca95bdfd1abd3a09c206dc5dda",
      "new_mode": 33188,
      "new_path": "rules/android_binary/impl.bzl"
    }
  ]
}
