forked from readium/kotlin-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
117 lines (102 loc) · 4.22 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
* Copyright 2021 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.application")
id("kotlin-android")
id("kotlin-kapt")
id("kotlin-parcelize")
}
android {
compileSdk = 31
defaultConfig {
minSdk = 21
targetSdk = 31
applicationId = "org.readium.r2reader"
versionName = "2.2.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
ndk.abiFilters.add("armeabi-v7a")
ndk.abiFilters.add("arm64-v8a")
ndk.abiFilters.add("x86")
ndk.abiFilters.add("x86_64")
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
}
buildFeatures {
viewBinding = true
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"))
}
}
packagingOptions {
resources.excludes.add("META-INF/*")
}
sourceSets {
getByName("main") {
java.srcDirs("src/main/java")
res.srcDirs("src/main/res")
assets.srcDirs("src/main/assets")
}
}
}
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10")
implementation("androidx.legacy:legacy-support-v4:1.0.0")
implementation(project(":readium:shared"))
implementation(project(":readium:streamer"))
implementation(project(":readium:navigator"))
implementation(project(":readium:navigator-media2"))
implementation(project(":readium:opds"))
implementation(project(":readium:lcp"))
implementation("androidx.core:core-ktx:1.7.0")
implementation("androidx.activity:activity-ktx:1.4.0")
implementation("androidx.appcompat:appcompat:1.4.1")
implementation("androidx.browser:browser:1.4.0")
implementation("androidx.cardview:cardview:1.0.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.3")
implementation("androidx.fragment:fragment-ktx:1.4.0")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.4.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0")
implementation("androidx.navigation:navigation-fragment-ktx:2.3.5")
implementation("androidx.navigation:navigation-ui-ktx:2.3.5")
implementation("androidx.paging:paging-runtime-ktx:3.1.0")
implementation("androidx.recyclerview:recyclerview:1.2.1")
implementation("androidx.viewpager2:viewpager2:1.0.0")
implementation("androidx.webkit:webkit:1.4.0")
implementation(files("../readium/streamer/libs/nanohttpd-master-SNAPSHOT.jar"))
implementation(files("../readium/streamer/libs/nanohttpd-nanolets-master-SNAPSHOT.jar"))
implementation("com.google.android.material:material:1.5.0")
implementation("com.jakewharton.timber:timber:5.0.1")
// AM NOTE: needs to stay this version for now (June 24,2020)
implementation("com.squareup.picasso:picasso:2.71828")
implementation("joda-time:joda-time:2.10.13")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
// AM NOTE: needs to stay this version for now (June 24,2020)
implementation("org.jsoup:jsoup:1.14.3")
implementation("androidx.media2:media2-session:1.2.0")
implementation("androidx.media2:media2-player:1.2.0")
// Room database
val roomVersion = "2.4.1"
implementation("androidx.room:room-runtime:$roomVersion")
implementation("androidx.room:room-ktx:$roomVersion")
kapt("androidx.room:room-compiler:$roomVersion")
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
kapt("androidx.lifecycle:lifecycle-compiler:2.4.0")
// Tests
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.3")
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
}