1
2buildscript {
3    repositories {
4        google()
5        jcenter()
6    }
7
8    dependencies {
9        classpath 'com.android.tools.build:gradle:3.3.0'
10    }
11}
12
13apply plugin: 'com.android.application'
14
15repositories {
16    google()
17    jcenter()
18}
19
20dependencies {
21
22
23        implementation "com.android.support:support-v4:28.0.0"
24        implementation "com.android.support:support-v13:28.0.0"
25        implementation "com.android.support:cardview-v7:28.0.0"
26        implementation "com.android.support:appcompat-v7:28.0.0"
27
28
29
30
31
32
33}
34
35// The sample build uses multiple directories to
36// keep boilerplate and common code separate from
37// the main sample code.
38List<String> dirs = [
39    'main',     // main sample code; look here for the interesting stuff.
40    'common',   // components that are reused by multiple samples
41    'template'] // boilerplate code that is generated by the sample template process
42
43android {
44    compileSdkVersion 28
45
46    defaultConfig {
47        minSdkVersion 14
48        targetSdkVersion 28
49    }
50
51    compileOptions {
52        sourceCompatibility JavaVersion.VERSION_1_7
53        targetCompatibility JavaVersion.VERSION_1_7
54    }
55
56    sourceSets {
57        main {
58            dirs.each { dir ->
59                java.srcDirs "src/${dir}/java"
60                res.srcDirs "src/${dir}/res"
61            }
62        }
63        androidTest.setRoot('tests')
64        androidTest.java.srcDirs = ['tests/src']
65
66    }
67
68}
69