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