-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcommon.gradle
86 lines (71 loc) · 2.29 KB
/
common.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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-allopen'
allOpen {
def openClass = ".annotation.OpenClass"
annotation ApplicationId.abstraction + openClass
}
android {
compileSdkVersion Releases.compileSdkVersion
defaultConfig {
minSdkVersion Releases.minSdkVersion
targetSdkVersion Releases.targetSdkVersion
versionCode Releases.versionCode
versionName Releases.versionName
buildConfigField("String", "API_KEY", movieApiKey)
buildConfigField("String", "MOVIE_URL", movieApiUrl)
buildConfigField("String", "IMAGE_URL", movieImageUrl)
}
buildTypes {
debug {
}
release {
minifyEnabled false
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets.each {
it.java.srcDirs += "src/$it.name/kotlin"
}
testOptions {
unitTests.all {
testLogging.events = ["passed", "skipped", "failed"]
}
}
}
dependencies {
implementation Dependencies.kotlin
//di
implementation Dagger.dagger
implementation Dagger.android
kapt Dagger.compiler
kapt Dagger.processor
//deeplink
implementation Misc.deeplink
kapt Misc.deeplinkProcessor
//testing
implementation Testing.espressoIdleResources
testImplementation Testing.jUnit
testImplementation Testing.mockito
testImplementation Testing.mockKtRunner
testImplementation Testing.androidX
testImplementation Coroutines.core
testImplementation Coroutines.android
testImplementation Coroutines.test
testImplementation Retrofit.mockWebServer
androidTestImplementation Testing.testRunner
androidTestImplementation Testing.espresso
androidTestImplementation Testing.espressoContrib
androidTestImplementation Testing.runner
androidTestImplementation Testing.rules
androidTestImplementation Testing.core
androidTestImplementation Testing.espressoIdleResources
androidTestImplementation Testing.extJunit
androidTestImplementation Testing.extTruth
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}