aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/android/AndroidInstrumentationTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/AndroidInstrumentationTest.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidInstrumentationTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidInstrumentationTest.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidInstrumentationTest.java
index cc3d44e9fc..33dee6c938 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidInstrumentationTest.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidInstrumentationTest.java
@@ -85,6 +85,7 @@ public class AndroidInstrumentationTest implements RuleConfiguredTargetFactory {
.addTargets(runfilesDeps, RunfilesProvider.DEFAULT_RUNFILES)
.addTransitiveArtifacts(AndroidCommon.getSupportApks(ruleContext))
.addTransitiveArtifacts(getAdb(ruleContext).getFilesToRun())
+ .addTransitiveArtifacts(getAapt(ruleContext).getFilesToRun())
.addArtifacts(getDataDeps(ruleContext))
.build();
@@ -251,6 +252,11 @@ public class AndroidInstrumentationTest implements RuleConfiguredTargetFactory {
return AndroidSdkProvider.fromRuleContext(ruleContext).getAdb();
}
+ /** AAPT binary from the Android SDK. */
+ private static FilesToRunProvider getAapt(RuleContext ruleContext) {
+ return AndroidSdkProvider.fromRuleContext(ruleContext).getAapt();
+ }
+
/** Map of {@code test_args} for the test runner to make available to test test code. */
private static ImmutableMap<String, String> getTestArgs(RuleContext ruleContext) {
return ImmutableMap.copyOf(ruleContext.attributes().get("test_args", Type.STRING_DICT));