-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
76 lines (63 loc) · 1.85 KB
/
build.gradle.kts
File metadata and controls
76 lines (63 loc) · 1.85 KB
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
plugins {
id("com.android.library") version "8.13.0"
id("org.jetbrains.kotlin.android") version "2.2.21"
id("maven-publish")
}
android {
namespace = "com.androidacy.libsu.extensions"
compileSdk = 36
defaultConfig {
minSdk = 24
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}
dependencies {
// libsu - core dependency
api("com.github.topjohnwu.libsu:core:6.0.0")
api("com.github.topjohnwu.libsu:service:6.0.0")
api("com.github.topjohnwu.libsu:io:6.0.0")
// Kotlin coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
// AndroidX
implementation("androidx.core:core-ktx:1.17.0")
// Testing
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
}
publishing {
publications {
register<MavenPublication>("release") {
groupId = "com.androidacy"
artifactId = "libsu-extensions"
version = "1.0.0"
afterEvaluate {
from(components["release"])
}
}
}
}