-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
38 lines (33 loc) · 1010 Bytes
/
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
import Dependencies.hilt
plugins {
id(Plugins.ANDROID_LIBRARY)
id(Plugins.KOTLIN_ANDROID)
id(Plugins.KOTLIN_KAPT)
id(Plugins.HILT)
}
android {
namespace = "com.michaelmccormick.restaurantsearch.network"
compileSdk = Versions.TARGET_SDK
defaultConfig {
minSdk = Versions.MIN_SDK
targetSdk = Versions.TARGET_SDK
}
compileOptions {
sourceCompatibility = Versions.JAVA
targetCompatibility = Versions.JAVA
}
kotlinOptions.jvmTarget = Versions.JAVA.toString()
packagingOptions.resources.excludes.addAll(Configuration.EXCLUDED_PACKAGING_OPTIONS)
tasks.withType<Test> {
useJUnitPlatform()
}
}
kapt.correctErrorTypes = true
dependencies {
hilt()
implementation(Dependencies.Network.RETROFIT)
implementation(Dependencies.Network.RETROFIT_MOSHI_CONVERTER)
implementation(Dependencies.Network.MOSHI)
kapt(Dependencies.Network.MOSHI_KOTLIN_CODEGEN)
testImplementation(project(Modules.Core.TEST))
}