forked from readium/kotlin-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
114 lines (100 loc) · 3.72 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
/*
* 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")
kotlin("android")
kotlin("plugin.parcelize")
alias(libs.plugins.ksp)
alias(libs.plugins.compose.compiler)
}
android {
compileSdk = (property("android.compileSdk") as String).toInt()
defaultConfig {
minSdk = (property("android.minSdk") as String).toInt()
targetSdk = (property("android.targetSdk") as String).toInt()
applicationId = "org.readium.r2reader"
versionName = "3.0.3"
versionCode = 1
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
isCoreLibraryDesugaringEnabled = true
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
buildFeatures {
viewBinding = true
compose = true
buildConfig = true
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"))
}
}
packaging {
resources.excludes.add("META-INF/*")
}
sourceSets {
getByName("main") {
java.srcDirs("src/main/java")
res.srcDirs("src/main/res")
assets.srcDirs("src/main/assets")
}
}
namespace = "org.readium.r2.testapp"
}
dependencies {
coreLibraryDesugaring(libs.desugar.jdk.libs)
implementation(libs.kotlin.stdlib)
implementation(project(":readium:readium-shared"))
implementation(project(":readium:readium-streamer"))
implementation(project(":readium:readium-navigator"))
implementation(project(":readium:navigators:media:readium-navigator-media-audio"))
implementation(project(":readium:navigators:media:readium-navigator-media-tts"))
// Only required if you want to support audiobooks using ExoPlayer.
implementation(project(":readium:adapters:exoplayer"))
implementation(project(":readium:readium-opds"))
implementation(project(":readium:readium-lcp"))
// Only required if you want to support PDF files using PDFium.
implementation(project(":readium:adapters:pdfium"))
implementation(libs.androidx.activity.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.browser)
implementation(libs.androidx.cardview)
implementation(libs.bundles.compose)
// debugImplementation(libs.androidx.compose.ui)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.core)
implementation(libs.androidx.datastore.preferences)
implementation(libs.androidx.fragment.ktx)
implementation(libs.androidx.lifecycle.common)
implementation(libs.androidx.navigation.fragment)
implementation(libs.androidx.navigation.ui)
implementation(libs.androidx.paging)
implementation(libs.androidx.recyclerview)
implementation(libs.androidx.viewpager2)
implementation(libs.androidx.webkit)
implementation(libs.google.material)
implementation(libs.timber)
implementation(libs.picasso)
implementation(libs.joda.time)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.jsoup)
implementation(libs.bundles.media3)
// Room database
implementation(libs.bundles.room)
ksp(libs.androidx.room.compiler)
}