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