From 0e895b192c09d53f07ba1305b53d91ab3241f9e3 Mon Sep 17 00:00:00 2001 From: mhutti1 Date: Sun, 11 Aug 2019 16:33:13 +0200 Subject: [PATCH] #1259 Allow a local kiwix-lib aar to be used --- app/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 8c95b288c..0090d25cd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -48,7 +48,14 @@ String[] archs = ['arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'] dependencies { // use jdk8 java.time backport, as long app < Build.VERSION_CODES.O implementation("com.jakewharton.threetenabp:threetenabp:1.1.1") - implementation 'org.kiwix.kiwixlib:kiwixlib:5.2.0' + + // Get kiwixlib online if it is not populated locally + if (!file("./libs").exists()) { + implementation 'org.kiwix.kiwixlib:kiwixlib:5.2.0' + } else { + implementation 'com.getkeepsafe.relinker:relinker:1.3.1' + implementation fileTree(include: ['*.aar'], dir: 'libs') + } // Android Support implementation "androidx.appcompat:appcompat:$appCompatVersion"