@@ -153,6 +153,8 @@ def _impl(repository_ctx):
153153 _cli_bool (False ),
154154 "--is_dynamic_framework" ,
155155 _cli_bool (repository_ctx .attr .is_dynamic_framework ),
156+ "--is_xcframework" ,
157+ _cli_bool (repository_ctx .attr .is_xcframework ),
156158 ])
157159 substitutions [INIT_REPO_PLACEHOLDER ] = " " .join (entry )
158160 else :
@@ -212,6 +214,7 @@ pod_repo_ = repository_rule(
212214 "generate_module_map" : attr .bool (default = False , mandatory = True ),
213215 "header_visibility" : attr .string (),
214216 "is_dynamic_framework" : attr .bool (default = False , mandatory = False ),
217+ "is_xcframework" : attr .bool (default = False , mandatory = False ),
215218 }
216219)
217220
@@ -231,6 +234,7 @@ def new_pod_repository(name,
231234 generate_module_map = None ,
232235 header_visibility = "pod_support" ,
233236 is_dynamic_framework = False ,
237+ is_xcframework = False ,
234238 ):
235239 """Declare a repository for a Pod
236240 Args:
@@ -295,6 +299,8 @@ def new_pod_repository(name,
295299 https://github.com/bazelbuild/bazel/pull/3712
296300
297301 is_dynamic_framework: set to True if the pod uses prebuilt dynamic framework(s)
302+
303+ is_xcframework: set To True if the the pod uses prebuild xcframework
298304 """
299305 if generate_module_map == None :
300306 generate_module_map = enable_modules
@@ -324,4 +330,5 @@ def new_pod_repository(name,
324330 generate_module_map = generate_module_map ,
325331 header_visibility = header_visibility ,
326332 is_dynamic_framework = is_dynamic_framework ,
333+ is_xcframework = is_xcframework ,
327334 )
0 commit comments