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