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.wear:wear:1.0.0'
     25     implementation 'androidx.legacy:legacy-support-v4:1.0.0'
     26     implementation 'androidx.legacy:legacy-support-v13:1.0.0'
     27     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
     28     implementation 'androidx.appcompat:appcompat:1.0.2'
     29 
     30 
     31     implementation 'com.google.android.gms:play-services-wearable:16.0.1'
     32 
     33 
     34     compileOnly 'com.google.android.wearable:wearable:2.4.0'
     35 
     36     implementation 'com.google.android.support:wearable:2.4.0'
     37 
     38 }
     39 
     40 // The sample build uses multiple directories to
     41 // keep boilerplate and common code separate from
     42 // the main sample code.
     43 List<String> dirs = [
     44     'main',     // main sample code; look here for the interesting stuff.
     45     'common',   // components that are reused by multiple samples
     46     'template'] // boilerplate code that is generated by the sample template process
     47 
     48 android {
     49 
     50     compileSdkVersion 28
     51 
     52     buildToolsVersion "28.0.3"
     53 
     54     defaultConfig {
     55         versionCode 1
     56         versionName "1.0"
     57 
     58         minSdkVersion 24
     59 
     60         targetSdkVersion 28
     61 
     62         multiDexEnabled true
     63 
     64     }
     65 
     66     compileOptions {
     67         sourceCompatibility JavaVersion.VERSION_1_7
     68         targetCompatibility JavaVersion.VERSION_1_7
     69     }
     70 
     71     sourceSets {
     72         main {
     73             dirs.each { dir ->
     74                 java.srcDirs "src/${dir}/java"
     75                 res.srcDirs "src/${dir}/res"
     76             }
     77         }
     78         androidTest.setRoot('tests')
     79         androidTest.java.srcDirs = ['tests/src']
     80 
     81     }
     82 }
     83