mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Support absolute path when specifying zim_file in info.json for custom app.
Test if the zim_file path is existing. If yes, it is used as it is. If not, we assume it is a local path relative to the custom directory (as before).
This commit is contained in:
parent
f3e7ec90da
commit
61ec22a88b
@ -242,7 +242,10 @@ android {
|
||||
jsonFile = file(directory + '/info.json')
|
||||
}
|
||||
def parsedJson = new JsonSlurper().parseText(jsonFile.text)
|
||||
def sourceFile = file(directory + "/" + parsedJson.zim_file)
|
||||
def sourceFile = file(parsedJson.zim_file)
|
||||
if (!sourceFile.exists()) {
|
||||
sourceFile = file(directory + "/" + parsedJson.zim_file)
|
||||
}
|
||||
if (parsedJson.embed_zim) {
|
||||
// Place content in each lib directory for embeded zims
|
||||
for (String archName : archs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user