Skip to content

Commit

Permalink
Add compose support to android_instrumentation_binary (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
minkuan88 authored Mar 29, 2024
1 parent afcf2e0 commit 7ce14f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/android/android_instrumentation.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def android_instrumentation_binary(
resource_files = [],
associates = [],
test_instrumentation_runner = "androidx.test.runner.AndroidJUnitRunner",
enable_compose = False,
**kwargs):
"""A macro that creates an Android instrumentation binary.
Expand All @@ -40,6 +41,8 @@ def android_instrumentation_binary(
)

android_library_name = name + "_lib"
if enable_compose:
deps.extend(["@grab_bazel_common//rules/android/compose:compose-plugin"])

# TODO: Migrate to android_library
kt_android_library(
Expand Down

0 comments on commit 7ce14f2

Please sign in to comment.