Home | History | Annotate | Download | only in Application
      1 buildscript {
      2     repositories {
      3         jcenter()
      4     }
      5 
      6     dependencies {
      7         classpath 'com.android.tools.build:gradle:1.0.0'
      8     }
      9 }
     10 
     11 apply plugin: 'com.android.application'
     12 
     13 repositories {
     14     jcenter()
     15 }
     16 
     17 
     18 dependencies {
     19 
     20 
     21     compile "com.android.support:support-v13:21.0.2"
     22     compile "com.android.support:appcompat-v7:21.0.2"
     23     compile "com.android.support:recyclerview-v7:21.0.2"
     24     compile "com.android.support:cardview-v7:21.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.
     30 List<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 
     35 android {
     36     compileSdkVersion 21
     37     buildToolsVersion "21.1.1"
     38 
     39     defaultConfig {
     40         minSdkVersion 14
     41         targetSdkVersion 21
     42     }
     43 
     44     sourceSets {
     45         main {
     46             dirs.each { dir ->
     47                 java.srcDirs "src/${dir}/java"
     48                 res.srcDirs "src/${dir}/res"
     49             }
     50         }
     51         androidTest.setRoot('tests')
     52         androidTest.java.srcDirs = ['tests/src']
     53 
     54     }
     55 
     56 }
     57 
     58 
     59 
     60 
     61 
     62 
     63 
     64 
     65 
     66 
     67 
     68 
     69 
     70 
     71 
     72