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