Skip to content

Commit

Permalink
Restore configuration expansion behavior for android targets to make …
Browse files Browse the repository at this point in the history
…tests work correctly
  • Loading branch information
Gautam Korlam committed Aug 1, 2017
1 parent 75b27e2 commit ead6fdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AndroidInstrumentationTarget extends AndroidAppTarget {
Scope getMain() {
return new Scope(
project,
expand(compileConfigs, ANDROID_TEST_PREFIX) + expand(compileConfigs),
expand(compileConfigs, ANDROID_TEST_PREFIX),
getSources(baseVariant),
null,
getJavaCompilerOptions(baseVariant))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ abstract class AndroidTarget extends JavaLibTarget {
expanded.substring(0, 1).toLowerCase() + expanded.substring(1)
}
}.flatten() as Set<String>
if (prefix) {
expandedConfigs += expand(configNames)
}
return expandedConfigs
}

Expand Down

0 comments on commit ead6fdb

Please sign in to comment.