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