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