-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
116 lines (109 loc) · 2.95 KB
/
build.gradle
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
classpath "com.google.dagger:hilt-android-gradle-plugin:2.40.1"
classpath "app.cash.molecule:molecule-gradle-plugin:0.1.0"
}
}
plugins {
id "com.android.application" version libs.versions.agp apply true
id "com.android.library" version libs.versions.agp apply false
}
ext.configureBase = { project ->
delegate = project
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "kotlin-kapt"
group = GROUP
version = VERSION_NAME
android {
compileSdkVersion 31
defaultConfig {
minSdkVersion 26
targetSdkVersion 31
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += [
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xopt-in=kotlinx.coroutines.FlowPreview",
"-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
]
}
lintOptions {
lintConfig rootProject.file("lint.xml")
abortOnError false
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
dependencies {
api libs.bundles.kotlin
}
kapt {
correctErrorTypes = true
}
}
ext.configureHilt = { project ->
delegate = project
apply plugin: "dagger.hilt.android.plugin"
dependencies {
implementation libs.hilt.android
kapt libs.hilt.android.compiler
testImplementation libs.hilt.android.testing
kaptTest libs.hilt.android.compiler
}
kapt {
arguments {
arg("dagger.hilt.disableModulesHaveInstallInCheck", "true")
}
}
}
ext.configureCompose = { project ->
delegate = project
apply plugin: "app.cash.molecule"
android {
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion "1.0.5"
}
}
dependencies {
implementation libs.bundles.compose
}
}
project.configureBase(this)
project.configureHilt(this)
project.configureCompose(this)
android {
defaultConfig {
applicationId "com.github.bentilbrook.barnacle"
versionName "0.0.1"
versionCode 1
vectorDrawables.useSupportLibrary = true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
}
}
}
dependencies {
implementation projects.core
implementation projects.repolist
implementation libs.google.material
implementation libs.moshi
implementation libs.bundles.core
implementation libs.bundles.compose
testImplementation projects.testing
}