1
1
apply plugin : ' com.android.application'
2
+ apply plugin : ' kotlin-android'
3
+ apply plugin : ' kotlin-kapt'
2
4
apply plugin : ' jacoco-android'
3
5
apply from : ' quality.gradle'
4
6
apply plugin : ' com.getkeepsafe.dexcount'
@@ -19,14 +21,15 @@ dependencies {
19
21
transitive= true
20
22
}
21
23
24
+
22
25
implementation " com.android.support:support-v4:${ project.supportLibVersion} "
23
26
implementation " com.android.support:appcompat-v7:${ project.supportLibVersion} "
24
27
implementation " com.android.support:design:${ project.supportLibVersion} "
25
28
26
29
implementation " com.android.support:cardview-v7:${ project.supportLibVersion} "
27
30
28
31
implementation " com.jakewharton:butterknife:$BUTTERKNIFE_VERSION "
29
- annotationProcessor " com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION "
32
+ kapt " com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION "
30
33
31
34
implementation ' com.squareup.okhttp3:okhttp:3.8.1'
32
35
implementation ' com.squareup.okio:okio:1.13.0'
@@ -46,8 +49,11 @@ dependencies {
46
49
implementation " com.google.dagger:dagger:$DAGGER_VERSION "
47
50
implementation " com.google.dagger:dagger-android-support:$DAGGER_VERSION "
48
51
49
- annotationProcessor " com.google.dagger:dagger-android-processor:$DAGGER_VERSION "
50
- annotationProcessor " com.google.dagger:dagger-compiler:$DAGGER_VERSION "
52
+ kapt " com.google.dagger:dagger-android-processor:$DAGGER_VERSION "
53
+ kapt " com.google.dagger:dagger-compiler:$DAGGER_VERSION "
54
+
55
+ testImplementation " org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version "
56
+ androidTestImplementation " org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version "
51
57
52
58
testImplementation ' junit:junit:4.12'
53
59
testImplementation ' org.robolectric:robolectric:3.4'
@@ -78,6 +84,10 @@ android {
78
84
vectorDrawables. useSupportLibrary = true
79
85
}
80
86
87
+ sourceSets {
88
+ test. java. srcDirs + = ' src/test/kotlin'
89
+ }
90
+
81
91
buildTypes {
82
92
release {
83
93
minifyEnabled false // See https://stackoverflow.com/questions/40232404/google-play-apk-and-android-studio-apk-usb-debug-behaving-differently - proguard.cfg modification alone insufficient.
0 commit comments