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