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