forked from readium/kotlin-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
62 lines (54 loc) · 1.67 KB
/
build.gradle.kts
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
/*
* 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")
kotlin("android")
kotlin("plugin.parcelize")
}
android {
compileSdk = 33
defaultConfig {
minSdk = 21
targetSdk = 33
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = freeCompilerArgs + listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=org.readium.r2.shared.InternalReadiumApi"
)
}
testOptions {
unitTests.isIncludeAndroidResources = true
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"))
}
}
namespace = "org.readium.r2.opds"
}
rootProject.ext["publish.artifactId"] = "readium-opds"
apply(from = "$rootDir/scripts/publish-module.gradle")
dependencies {
api(project(":readium:readium-shared"))
implementation(libs.androidx.appcompat)
implementation(libs.timber)
implementation(libs.joda.time)
implementation("nl.komponents.kovenant:kovenant:3.3.0")
implementation(libs.kotlinx.coroutines.core)
// Tests
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.ext.junit)
androidTestImplementation(libs.androidx.expresso.core)
testImplementation(libs.robolectric)
}