-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (63 loc) · 2.09 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
plugins {
id("com.android.library")
kotlin("android")
id("org.jetbrains.compose")
id("kotlin-parcelize")
id("kotlinx-serialization")
id("maven-publish")
}
compose {
kotlinCompilerPlugin.set(Versions.composeCompiler)
}
android {
namespace = "dk.youtec.appupdater"
compileSdk = Versions.compileSdk
buildToolsVersion = Versions.buildTools
buildFeatures {
// Disable unused AGP features
aidl = false
renderScript = false
resValues = false
shaders = false
}
defaultConfig {
minSdk = Versions.minSdk
targetSdk = Versions.targetSdk
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles("proguard-rules.pro")
consumerProguardFiles("proguard-rules.pro")
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
dependencies {
implementation(compose.desktop.currentOs)
implementation(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:${Versions.coroutines}"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:${Versions.serialization}")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
implementation("androidx.activity:activity-compose:1.8.0")
implementation("com.squareup.okhttp3:okhttp:${Versions.okhttp}")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
}
afterEvaluate {
publishing {
publications {
create("appupdaterLib", MavenPublication::class.java) {
groupId = "dk.youtec"
artifactId = "appupdater-lib"
version = "1.0.0"
artifact("$buildDir/outputs/aar/appupdater-release.aar")
}
}
}
}