1apply plugin: 'com.android.application'
2apply plugin: 'kotlin-android'
3
4repositories {
5    google()
6    jcenter()
7}
8
9dependencies {
10    compile "com.android.support:support-v4:27.0.2"
11    compile "com.android.support:support-v13:27.0.2"
12    compile "com.android.support:cardview-v7:27.0.2"
13    compile "com.android.support:appcompat-v7:27.0.2"
14    compile 'com.android.support:design:27.0.2'
15    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
16}
17
18List<String> dirs = ['main']
19
20android {
21
22    compileSdkVersion 27
23
24    defaultConfig {
25        minSdkVersion 15
26        targetSdkVersion 27
27    }
28
29    compileOptions {
30        sourceCompatibility JavaVersion.VERSION_1_7
31        targetCompatibility JavaVersion.VERSION_1_7
32    }
33
34    sourceSets {
35        main {
36            dirs.each { dir ->
37                java.srcDirs "src/${dir}/java"
38                res.srcDirs "src/${dir}/res"
39            }
40        }
41        androidTest.setRoot('tests')
42        androidTest.java.srcDirs = ['tests/src']
43    }
44}
45