-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathbuild.gradle.kts
65 lines (54 loc) · 1.66 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
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions
plugins {
id("com.android.application")
kotlin("android")
kotlin("plugin.serialization")
id("com.google.devtools.ksp")
id("kotlin-parcelize")
}
android {
namespace = "com.vanced.store"
compileSdk = 33
defaultConfig {
applicationId = "com.vanced.store"
minSdk = 21
targetSdk = 33
versionCode = 1
versionName = "1.0"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = Dependencies.Compose.compilerVersion
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
optIn("androidx.compose.material3.ExperimentalMaterial3Api")
optIn("androidx.compose.animation.ExperimentalAnimationApi")
optIn("androidx.compose.foundation.ExperimentalFoundationApi")
}
}
fun KotlinJvmOptions.optIn(library: String) {
freeCompilerArgs = freeCompilerArgs +
"-opt-in=$library"
}
dependencies {
Dependencies.Ktor.applyDependencies(this)
Dependencies.AndroidxCore.applyDependencies(this)
Dependencies.AndroidxPreferences.applyDependencies(this)
Dependencies.AndroidxRoom.applyDependencies(this)
Dependencies.Compose.applyDependencies(this)
Dependencies.Accompanist.applyDependencies(this)
Dependencies.Koin.applyDependencies(this)
}