This repository has been archived by the owner on Jul 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
78 lines (69 loc) · 2.36 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* Copyright 2018 Readium Foundation. All rights reserved.
* Use of this source code is governed by the BSD-style license
* available in the top-level LICENSE file of the project.
*/
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'maven-publish'
}
group='com.github.readium'
android {
compileSdkVersion 31
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
testOptions {
unitTests.includeAndroidResources = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
if (findProject(':r2-shared')) {
implementation project(':r2-shared')
} else {
implementation "com.github.readium:r2-shared-kotlin:2.1.0"
}
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation "com.jakewharton.timber:timber:4.7.1"
implementation "joda-time:joda-time:2.10.10"
implementation "nl.komponents.kovenant:kovenant:3.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
testImplementation 'androidx.test.ext:junit-ktx:1.1.3'
testImplementation 'androidx.test:core-ktx:1.4.0'
testImplementation "junit:junit:4.13.2"
testImplementation "net.sf.kxml:kxml2:2.3.0"
testImplementation 'org.assertj:assertj-core:3.19.0'
testImplementation "org.jetbrains.kotlin:kotlin-reflect:1.5.31"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.0"
testImplementation "org.json:json:20200518"
testImplementation "org.mockito:mockito-core:3.3.3"
testImplementation 'org.robolectric:robolectric:4.5.1'
testImplementation "xmlpull:xmlpull:1.1.3.1"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test:runner:1.4.0'
}