Home | History | Annotate | Download | only in Application
      1 apply plugin: 'com.android.application'
      2 apply plugin: 'kotlin-android'
      3 apply plugin: 'kotlin-android-extensions'
      4 
      5 dependencies {
      6     compile "com.android.support:support-v4:26.0.1"
      7     compile "com.android.support:support-v13:26.0.1"
      8     compile 'com.android.support:appcompat-v7:26.0.1'
      9     compile 'com.android.support:cardview-v7:26.0.1'
     10     compile 'com.android.support:design:26.0.1'
     11     compile 'com.android.support.constraint:constraint-layout:1.0.2'
     12     compile 'com.google.code.gson:gson:2.8.1'
     13     compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
     14 }
     15 
     16 // The sample build uses multiple directories to
     17 // keep boilerplate and common code separate from
     18 // the main sample code.
     19 List<String> dirs = [
     20         'main']     // main sample code; look here for the interesting stuff.
     21 
     22 android {
     23     compileSdkVersion 26
     24     buildToolsVersion "26.0.1"
     25 
     26     defaultConfig {
     27         minSdkVersion 26
     28         targetSdkVersion 26
     29     }
     30 
     31     compileOptions {
     32         sourceCompatibility JavaVersion.VERSION_1_7
     33         targetCompatibility JavaVersion.VERSION_1_7
     34     }
     35 
     36     sourceSets {
     37         main {
     38             dirs.each { dir ->
     39                 java.srcDirs "src/${dir}/java"
     40                 res.srcDirs "src/${dir}/res"
     41             }
     42         }
     43         androidTest.setRoot('tests')
     44         androidTest.java.srcDirs = ['tests/src']
     45 
     46     }
     47 
     48 }
     49