Improve framework imports files classification
Improve framework imports files classification

This change introduces a few improvements for framework import files
classification and changes method output to use a struct instead of
tuple.

- Classify files through extensions and not file path.
- Add Swift module classification through file extension.
- Add Framework binary (dylib/static) classification through paths.
- Adds inferred Framework bundle name from classification.

PiperOrigin-RevId: 448084123
(cherry picked from commit 1a0413531607b8a9119de9cb320a28d9b9b386e6)

bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple