forked from ismartcoding/plain-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
108 lines (91 loc) · 3.49 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
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
kotlin("plugin.serialization") version "1.8.21"
}
android {
compileSdk = 34
defaultConfig {
minSdk = 28
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
// debug {
// isMinifyEnabled = true
// proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
// }
release {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
buildFeatures {
viewBinding = true
dataBinding = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
packaging {
resources {
excludes += listOf("META-INF/*")
}
}
namespace = "com.ismartcoding.lib"
}
dependencies {
implementation("androidx.core:core-ktx:1.10.1")
api("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")
val ktor = "2.3.1"
val markwon = "4.6.2"
val coil = "2.4.0"
// api(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))
implementation("com.github.barteksc:pdfium-android:1.9.0")
implementation("com.google.code.gson:gson:2.9.1")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1")
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
api("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
api("com.google.android.material:material:1.11.0-alpha01")
api("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
api("androidx.lifecycle:lifecycle-extensions:2.2.0")
api("androidx.fragment:fragment-ktx:1.6.1")
api("androidx.appcompat:appcompat:1.6.1")
api("androidx.core:core-ktx:1.10.1")
api("androidx.transition:transition:1.4.1")
// api("com.squareup.picasso:picasso:2.71828")
api("com.google.android.exoplayer:exoplayer:2.19.0")
// https://github.com/davemorrissey/subsampling-scale-image-view
api("com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0")
implementation("org.ahocorasick:ahocorasick:0.6.3") // For pinyin
implementation("org.bouncycastle:bcprov-jdk15on:1.70")
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
api("io.ktor:ktor-client-core:$ktor")
api("io.ktor:ktor-client-cio:$ktor")
api("io.ktor:ktor-client-logging:$ktor")
api("io.noties.markwon:core:$markwon")
api("io.noties.markwon:html:$markwon")
api("io.noties.markwon:ext-strikethrough:$markwon")
api("io.noties.markwon:ext-tasklist:$markwon")
api("io.noties.markwon:ext-tables:$markwon")
api("io.noties.markwon:ext-latex:$markwon")
api("io.noties.markwon:image:$markwon")
api("io.noties.markwon:linkify:$markwon")
api("io.noties.markwon:image-coil:$markwon")
// https://coil-kt.github.io/coil/changelog/
api("io.coil-kt:coil:$coil")
api("io.coil-kt:coil-compose:$coil")
api("io.coil-kt:coil-svg:$coil")
api("io.coil-kt:coil-gif:$coil")
api("io.coil-kt:coil-video:$coil")
api("com.github.Commit451.coil-transformations:transformations:2.0.2")
api("net.dankito.readability4j:readability4j:1.0.8")
api("org.jsoup:jsoup:1.15.3")
api("io.github.scwang90:refresh-layout-kernel:2.0.5")
}