@@ -259,7 +259,7 @@ def _process_build_info(_unused_ctx, **unused_ctxs):
259259 ),
260260 )
261261
262- def _process_dex (ctx , validation_ctx , packaged_resources_ctx , manifest_ctx , deploy_ctx , bp_ctx , optimize_ctx , ** _unused_ctxs ):
262+ def _process_dex (ctx , validation_ctx , packaged_resources_ctx , manifest_ctx , deploy_ctx , optimize_ctx , ** _unused_ctxs ):
263263 if validation_ctx .use_r8 :
264264 return ProviderInfo (
265265 name = "dex_ctx" ,
@@ -421,7 +421,7 @@ def _process_dex(ctx, validation_ctx, packaged_resources_ctx, manifest_ctx, depl
421421 ),
422422 )
423423
424- def _process_deploy_jar (ctx , validation_ctx , stamp_ctx , manifest_ctx , packaged_resources_ctx , jvm_ctx , build_info_ctx , proto_ctx , ** _unused_ctxs ):
424+ def _process_deploy_jar (ctx , validation_ctx , stamp_ctx , manifest_ctx , jvm_ctx , build_info_ctx , ** _unused_ctxs ):
425425 if validation_ctx .use_r8 :
426426 return ProviderInfo (
427427 name = "deploy_ctx" ,
@@ -608,17 +608,6 @@ def _get_library_r_jars(deps):
608608 transitive_resource_jars += dep .jars .to_list ()
609609 return transitive_resource_jars
610610
611- def _is_test_binary (ctx ):
612- """Whether this android_binary target is a test binary.
613-
614- Args:
615- ctx: The context.
616-
617- Returns:
618- Boolean indicating whether the target is a test target.
619- """
620- return ctx .attr .testonly or is_instrumentation (ctx ) or str (ctx .label ).find ("/javatests/" ) >= 0
621-
622611def is_instrumentation (ctx ):
623612 """Whether this android_binary target is an instrumentation binary.
624613
0 commit comments