mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 11:25:34 -04:00
Doesn't set up flavours for each custom app if the custom app directory doesnt exist.
This commit is contained in:
parent
e82dec33cf
commit
50e2ba6d83
@ -116,13 +116,15 @@ if (project.hasProperty('customDir')) {
|
||||
}
|
||||
|
||||
// Set up flavours for each custom app in the directory
|
||||
custom.eachFile() { file ->
|
||||
if(custom.listFiles()) {
|
||||
custom.eachFile() { file ->
|
||||
|
||||
def fileName = file.getName()
|
||||
if (fileName.contains("test") || fileName == "main" || fileName.contains("Test")) {
|
||||
return
|
||||
def fileName = file.getName()
|
||||
if (fileName.contains("test") || fileName == "main" || fileName.contains("Test")) {
|
||||
return
|
||||
}
|
||||
map.put(fileName, file.getAbsolutePath())
|
||||
}
|
||||
map.put(fileName, file.getAbsolutePath())
|
||||
}
|
||||
|
||||
android {
|
||||
|
Loading…
x
Reference in New Issue
Block a user