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