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