apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'

    defaultConfig {
        applicationId "io.apptik.rhub.exampleapp"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    packagingOptions {
        exclude 'LICENSE.txt'
        exclude 'NOTICE.txt'
        exclude 'META-INF/rxjava.properties'
    }

    lintOptions {
        abortOnError false
    }
}

dependencies {
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:27.1.0'
    compile 'com.android.support:design:27.1.0'
    testCompile 'junit:junit:4.12'

    compile project(':rxjava-v1')
    compile project(':rxjava-v2')
//    compile 'com.google.auto.value:auto-value:1.2'
//    annotationProcessor 'com.google.auto.value:auto-value:1.2'
//    compile rootProject.ext.autoservice
//    annotationProcessor rootProject.ext.autoservice
//    annotationProcessor project(':shield:shield-processor-rs')
//    compile project(':shield:shield-maker-rs')
//    annotationProcessor project(':shield:shield-processor-rxjava2')
//    compile project(':shield:shield-maker-rxjava2')
    compile project(':shield:shield-maker-rxjava1')
    compile project(':shield:shield-annotations')
    annotationProcessor project(':shield:shield-processor-rxjava1')
    //annotationProcessor project(':shield:shield-base-processor')


    compile 'com.github.pwittchen:reactivesensors:0.1.2'
    compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'
    compile 'com.tbruyelle.rxpermissions:rxpermissions:0.9.1@aar'
}

repositories {
    google()
}