Home | History | Annotate | Download | only in Shared
      1 buildscript {
      2     repositories {
      3         mavenCentral()
      4     }
      5 
      6     dependencies {
      7         classpath 'com.android.tools.build:gradle:1.0.0'
      8     }
      9 }
     10 
     11 apply plugin: 'android-library'
     12 
     13 // The sample build uses multiple directories to
     14 // keep boilerplate and common code separate from
     15 // the main sample code.
     16 List<String> dirs = [
     17     'main',     // main sample code; look here for the interesting stuff.
     18     'common',   // components that are reused by multiple samples
     19     'template'] // boilerplate code that is generated by the sample template process
     20 
     21 android {
     22     compileSdkVersion 21
     23 
     24     buildToolsVersion "21.1.1"
     25 
     26     defaultConfig {
     27         minSdkVersion 18
     28         targetSdkVersion 21
     29     }
     30 
     31     sourceSets {
     32         main {
     33             dirs.each { dir ->
     34                 java.srcDirs "src/${dir}/java"
     35                 res.srcDirs "src/${dir}/res"
     36             }
     37         }
     38 
     39     }
     40 }
     41