Skip to content

Commit

Permalink
Add Kotlin for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Sep 7, 2017
1 parent 27c4c94 commit 22e0649
Show file tree
Hide file tree
Showing 8 changed files with 370 additions and 404 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
kotlinVersion=1.1.4-3
androidCompileSdkVersion=25
androidBuildToolsVersion=25.0.2
androidSupportLibraryVersion=25.2.0
Expand All @@ -7,3 +8,4 @@ robolectricVersion=3.2.2
junitVersion=4.12
mockitoVersion=1.10.19
okioVersion=1.11.0
truthVersion=0.35
3 changes: 3 additions & 0 deletions k9mail-library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

if (!rootProject.optimizeForDevelopment) {
apply from: '../gradle/plugins/checkstyle-android.gradle'
Expand All @@ -25,9 +26,11 @@ dependencies {
androidTestCompile 'com.android.support.test:runner:0.4.1'
androidTestCompile 'com.madgag.spongycastle:pg:1.51.0.0'

testCompile "org.jetbrains.kotlin:kotlin-stdlib-jre7:${kotlinVersion}"
testCompile "com.squareup.okio:okio:${okioVersion}"
testCompile "org.robolectric:robolectric:${robolectricVersion}"
testCompile "junit:junit:${junitVersion}"
testCompile "com.google.truth:truth:${truthVersion}"
testCompile "org.mockito:mockito-core:${mockitoVersion}"
}

Expand Down
355 changes: 0 additions & 355 deletions k9mail-library/src/test/java/com/fsck/k9/mail/MessageTest.java

This file was deleted.

Loading

0 comments on commit 22e0649

Please sign in to comment.