-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
72 lines (57 loc) · 1.89 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
import com.chrynan.navigation.buildSrc.LibraryConstants
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.android.application")
kotlin("android")
id("org.jetbrains.compose")
kotlin("plugin.serialization")
}
group = LibraryConstants.group
version = LibraryConstants.versionName
android {
compileSdk = 33
buildToolsVersion = "30.0.3"
defaultConfig {
applicationId = "com.chrynan.navigation.sample.compose"
minSdk = 26
targetSdk = 33
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
getByName("release") {
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
// Opt-in to experimental compose APIs
freeCompilerArgs = listOf(
"-Xopt-in=kotlin.RequiresOptIn"
)
}
}
}
tasks.withType<Jar> { duplicatesStrategy = DuplicatesStrategy.INHERIT }
dependencies {
implementation(AndroidX.core.ktx)
implementation(AndroidX.appCompat)
implementation(Google.android.material)
implementation(compose.runtime)
implementation(compose.ui)
implementation(compose.material)
implementation(compose.materialIconsExtended)
implementation(AndroidX.compose.compiler)
implementation(AndroidX.compose.ui.tooling)
implementation(AndroidX.activity.compose)
implementation(KotlinX.coroutines.core)
implementation("com.chrynan.presentation:presentation-compose:_")
implementation("com.chrynan.colors:colors-compose:_")
implementation(project(":navigation-compose"))
}