aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 19aaaaa9..34e57f84 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -128,6 +128,17 @@ android {
packagingOptions {
pickFirst 'META-INF/library_release.kotlin_module'
}
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ testOptions {
+ unitTests {
+ includeAndroidResources = true
+ }
+ }
}
repositories {
@@ -223,4 +234,21 @@ dependencies {
}
+def kotlinResolutions = ['kotlin-reflect',
+ 'kotlin-stdlib',
+ 'kotlin-stdlib-jdk7',
+ 'kotlin-stdlib-jdk8',
+ 'kotlin-test',
+ 'kotlin-test-junit4',
+ 'kotlin-test-junit5']
+
+configurations.all {
+ resolutionStrategy.eachDependency { DependencyResolveDetails details ->
+ def requested = details.requested
+ if (requested.group == 'org.jetbrains.kotlin' && requested.name in kotlinResolutions) {
+ details.useVersion KOTLIN
+ }
+ }
+}
+
apply plugin: 'com.bugsnag.android.gradle' \ No newline at end of file