-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
87 lines (69 loc) · 1.95 KB
/
build.gradle.kts
File metadata and controls
87 lines (69 loc) · 1.95 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
77
78
79
80
81
82
83
84
85
86
87
/*
* Copyright (c) 2022(-0001) STMicroelectronics.
* All rights reserved.
* This software is licensed under terms that can be found in the LICENSE file in
* the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*/
val stCompileSdk: Int by rootProject.extra
val stMinSdk: Int by rootProject.extra
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.googleHilt)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.kotlinSerialization)
alias(libs.plugins.devtoolsKsp)
alias(libs.plugins.composeCompiler)
}
apply(from = "publish.gradle")
android {
namespace = "com.st.plot"
compileSdk {
version = release(stCompileSdk) {
minorApiLevel = 1
}
}
defaultConfig {
minSdk = stMinSdk
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { useSupportLibrary = true }
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
buildFeatures {
compose = true
buildConfig = true
viewBinding = true
}
}
hilt {
enableAggregatingTask = true
}
dependencies {
// Blue ST module:
// - Core
implementation(project(":st_core"))
// - UI
implementation(project(":st_ui"))
// Blue ST SDK
implementation(libs.st.sdk)
// Preference Screen
implementation(libs.androidx.preference)
// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)
// Dependency required for API desugaring.
coreLibraryDesugaring(libs.desugar.jdk.libs.nio)
}