aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle20
1 files changed, 14 insertions, 6 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 23ba05d7..76e96599 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -90,6 +90,8 @@ android {
}
+ def compilerArgs = ["-Xuse-experimental=kotlin.Experimental" /*, "-XXLanguage:+InlineClasses"*/]
+
buildTypes {
debug {
minifyEnabled false
@@ -101,7 +103,7 @@ android {
resValue "string", "frost_web", "Frost Web Debug"
ext.enableBugsnag = false
- kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental", "-XXLanguage:+InlineClasses"]
+ kotlinOptions.freeCompilerArgs += compilerArgs
}
releaseTest {
minifyEnabled true
@@ -138,9 +140,16 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}
- testOptions {
- unitTests {
- includeAndroidResources = true
+ testOptions.unitTests {
+ includeAndroidResources = true
+ // Don't throw runtime exceptions for android calls that are not mocked
+ returnDefaultValues = true
+
+ // Always show the result of every unit test, even if it passes.
+ all {
+ testLogging {
+ events 'passed', 'skipped', 'failed', 'standardError'
+ }
}
}
@@ -163,7 +172,6 @@ dependencies {
androidTestImplementation kauDependency.espresso
androidTestImplementation kauDependency.testRules
androidTestImplementation kauDependency.testRunner
- androidTestImplementation "com.squareup.okhttp3:mockwebserver:${OKHTTP}"
testImplementation kauDependency.kotlinTest
testImplementation "org.jetbrains.kotlin:kotlin-reflect:${KOTLIN}"
@@ -232,9 +240,9 @@ dependencies {
implementation "com.squareup.okhttp3:okhttp:${OKHTTP}"
implementation "com.squareup.okhttp3:logging-interceptor:${OKHTTP}"
+ testImplementation "com.squareup.okhttp3:mockwebserver:${OKHTTP}"
androidTestImplementation "com.squareup.okhttp3:mockwebserver:${OKHTTP}"
-
implementation "co.zsmb:materialdrawer-kt:${MATERIAL_DRAWER_KT}"
implementation "com.bugsnag:bugsnag-android:${BUGSNAG}"