Skip to content

Commit 6f5519f

Browse files
authored
don't make flavors when only aar files are present (#889)
* don't make flavors when only aar files are present * fixed typo
1 parent 2c27797 commit 6f5519f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-artifacts/project-template-gradle/app/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ def applyPluginsIncludeGradleConfigurations = { ->
9696
if (!androidDir.exists()) {
9797
return
9898
}
99+
100+
FileTree allFilesExceptForAars = fileTree(dir: androidDir, exclude: "**/*.aar");
101+
if(allFilesExceptForAars.size() <= 0) {
102+
return;
103+
}
104+
99105
def includeGradleFile = new File(androidDir, "include.gradle")
100106

101107
def packageJsonPath = file("$rootDir/${dep.directory}/package.json")

0 commit comments

Comments
 (0)