Skip to content

Commit

Permalink
Reverts adding manifest and/or rules as deps on tests rules; This wor…
Browse files Browse the repository at this point in the history
…ks, so it's better to leave this way as it's more intuitive to only depend on the actual library rule and not the hidden ones when writing BUCK files manually (#854)
  • Loading branch information
thalescm authored Jun 6, 2019
1 parent a2b5022 commit b69b2df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public static Rule compose(

List<String> testDeps = new ArrayList<>(deps);
testDeps.add(":" + src(target));
testDeps.add(manifestRule);
testDeps.add(":" + res(target));
testDeps.addAll(external(target.getExternalDeps(true)));
testDeps.addAll(targets(target.getTargetDeps(true)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ private static List<Rule> createRules(
AndroidModuleRuleComposer.compose(
target, deps, aidlRuleNames, appClass, extraResDeps));

// Adding resource and manig
// Test
if (target.getRobolectricEnabled()
&& !target.getTest().getSources().isEmpty()
Expand Down Expand Up @@ -255,12 +254,9 @@ private static List<Rule> createRules(
Rule testAppManifest = ManifestRuleComposer.composeForBinary(target);
rules.add(testAppManifest);

List<String> srcAndResDeps = filterAndroidDepRules(rules);
srcAndResDeps.addAll(filterAndroidResDepRules(rules));

rules.add(
AndroidInstrumentationApkRuleComposer.compose(
srcAndResDeps, mainApkTarget, testAppManifest.buckName()));
filterAndroidDepRules(rules), mainApkTarget, testAppManifest.buckName()));
rules.add(AndroidInstrumentationTestRuleComposer.compose(mainApkTarget));
return rules;
}
Expand Down

0 comments on commit b69b2df

Please sign in to comment.