Merge pull request #1348 from kiwix/feature/mhutti1/#1259-subfix

#1259 Allow a local kiwix-lib aar to be used
This commit is contained in:
Isaac Hutt 2019-08-14 12:38:06 +02:00 committed by GitHub
commit b35c1db449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"