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