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