Skip to content

Commit

Permalink
remove objc from import_middleman
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaradp committed Jan 10, 2025
1 parent 6a78dd0 commit e2e2d79
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rules/import_middleman.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@ def _find_imports_impl(target, ctx):
dynamic_framework_file.append(dep[_FindImportsAspectInfo].dynamic_framework_file)
import_infos.update(dep[_FindImportsAspectInfo].import_infos)

if ctx.rule.kind == "objc_import":
imported_library_file.append(target[apple_common.Objc].imported_library)

elif AppleFrameworkImportInfo in target:
static_framework_file.append(target[apple_common.Objc].imported_library)
target_dynamic_framework_file = target[apple_common.Objc].dynamic_framework_file
target_dynamic_framework_file_list = target_dynamic_framework_file.to_list()
if len(target_dynamic_framework_file_list) > 0:
import_infos[target_dynamic_framework_file_list[0].path] = target[AppleFrameworkImportInfo]
Expand Down

0 comments on commit e2e2d79

Please sign in to comment.