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.3.3'
      9     }
     10 }
     11 
     12 apply plugin: 'com.android.application'
     13 
     14 repositories {
     15     jcenter()
     16     maven {
     17         url 'https://maven.google.com'
     18     }
     19 }
     20 
     21 dependencies {
     22     compile 'com.google.android.gms:play-services-location:11.4.0'
     23     compile 'com.google.maps.android:android-maps-utils:0.3.4'
     24     compile 'com.github.bumptech.glide:glide:3.6.1'
     25     compile 'com.android.support:appcompat-v7:25.3.1'
     26     compile 'com.android.support:recyclerview-v7:25.3.1'
     27     compile 'com.android.support:design:25.3.1'
     28     compile 'com.google.android.gms:play-services-wearable:11.4.0'
     29     compile 'com.android.support:support-v13:26.1.0'
     30     compile project(':Shared')
     31     wearApp project(':Wearable')
     32 }
     33 
     34 // The sample build uses multiple directories to
     35 // keep boilerplate and common code separate from
     36 // the main sample code.
     37 List<String> dirs = [
     38     'main',     // main sample code; look here for the interesting stuff.
     39     'common',   // components that are reused by multiple samples
     40     'template'] // boilerplate code that is generated by the sample template process
     41 
     42 android {
     43         compileSdkVersion 26
     44 
     45     buildToolsVersion "26.0.1"
     46 
     47     defaultConfig {
     48         minSdkVersion 18
     49         targetSdkVersion 26
     50         versionCode 1
     51         versionName "1.0"
     52     }
     53 
     54     compileOptions {
     55         sourceCompatibility JavaVersion.VERSION_1_7
     56         targetCompatibility JavaVersion.VERSION_1_7
     57     }
     58 
     59     sourceSets {
     60         main {
     61             dirs.each { dir ->
     62                 java.srcDirs "src/${dir}/java"
     63                 res.srcDirs "src/${dir}/res"
     64             }
     65         }
     66         androidTest.setRoot('tests')
     67         androidTest.java.srcDirs = ['tests/src']
     68 
     69     }
     70 
     71 }
     72