From 436f0d7ab668d048c1b248db0c4c0c85c99cb249 Mon Sep 17 00:00:00 2001 From: Vakhid Betrakhmadov Date: Wed, 21 Aug 2024 13:29:21 +0100 Subject: [PATCH] Do not bundle .abi.json files (#2510) --- apple/internal/framework_import_support.bzl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apple/internal/framework_import_support.bzl b/apple/internal/framework_import_support.bzl index 5c86da909..08c62213d 100644 --- a/apple/internal/framework_import_support.bzl +++ b/apple/internal/framework_import_support.bzl @@ -202,6 +202,10 @@ def _classify_file_imports(config_vars, import_files): if framework_relative_path.startswith("Headers/"): header_imports.append(file) continue + if framework_relative_path.startswith("Modules/") and framework_relative_path.endswith(".abi.json"): + # Ignore abi.json files, as they don't matter in the build, and are most commonly used to detect source-breaking API changes during the evolution of a Swift library. + # See: https://github.com/swiftlang/swift/blob/main/lib/DriverTool/swift_api_digester_main.cpp + continue # Unknown file type, sending to unknown (i.e. resources, Info.plist, etc.) bundling_imports.append(file)