mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 11:55:38 -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
|
// Set up flavours for each custom app in the directory
|
||||||
custom.eachFile() { file ->
|
if(custom.listFiles()) {
|
||||||
|
custom.eachFile() { file ->
|
||||||
|
|
||||||
def fileName = file.getName()
|
def fileName = file.getName()
|
||||||
if (fileName.contains("test") || fileName == "main" || fileName.contains("Test")) {
|
if (fileName.contains("test") || fileName == "main" || fileName.contains("Test")) {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
map.put(fileName, file.getAbsolutePath())
|
||||||
}
|
}
|
||||||
map.put(fileName, file.getAbsolutePath())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user