-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
106 lines (88 loc) · 2.5 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
plugins {
id 'kotlin-kapt'
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'com.google.dagger.hilt.android'
id "com.google.protobuf" version "0.8.12"
id "com.google.devtools.ksp" version "1.7.21-1.0.8"
}
android {
namespace 'com.grishko188.data'
compileSdk 33
testOptions {
unitTests {
includeAndroidResources = true
}
}
defaultConfig {
minSdk 24
targetSdk 33
testInstrumentationRunner "com.grishko188.data.PoiTestRunner"
consumerProguardFiles "consumer-rules.pro"
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.21.9"
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option 'lite'
}
kotlin {
option 'lite'
}
}
}
}
}
dependencies {
implementation(project(":domain"))
implementation libs.androidx.core.ktx
implementation libs.androidx.appcompat
implementation libs.coroutines
implementation libs.hilt
kapt libs.hilt.compiler
implementation libs.room.runtime
implementation libs.room.ktx
kapt libs.room.compiler
implementation libs.retrofit
implementation libs.retrofit.converter.gson
implementation libs.okhttp.logging
implementation libs.okhttp
implementation libs.google.gson
implementation libs.jsoup
implementation libs.androidx.datastore
implementation libs.google.protobuf.kotlin
implementation libs.kotlinx.datetime
implementation libs.androidx.test.runner
testImplementation(project(":data-test"))
testImplementation libs.mockito.core
testImplementation libs.mockito.inline
testImplementation libs.kotlinx.coroutines.test
testImplementation libs.kotlin.test.junit
testImplementation libs.junit
testImplementation libs.hilt.testing
testImplementation libs.robolectric
kaptTest libs.hilt.compiler
}