apply plugin: 'com.android.application'
apply plugin: "com.autonomousapps.cappuccino-animations"

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    defaultConfig {
        applicationId "com.example.cappuccino"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion

        versionCode 1
        versionName rootProject.ext.VERSION_NAME

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

    buildTypes {
        debug {

        }
    }

    compileOptions {
        sourceCompatibility rootProject.ext.javaVersion
        targetCompatibility rootProject.ext.javaVersion
    }

    lintOptions {
        abortOnError false
    }
}

dependencies {
    // App dependencies
    debugImplementation project(':cappuccino')
    releaseImplementation project(':cappuccino-no-op')

    implementation 'com.android.support:appcompat-v7:27.1.1'

    // Instrumentation testing dependencies
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support:support-annotations:27.1.1'
}

task sanityCheck {
    group = "verification"

    dependsOn 'assembleDebugAndroidTest', 'compileDebugUnitTestJavaWithJavac'
    doLast {
        println "\n#####################################################" +
                "\n# Sanity check success! You may now push to origin. #" +
                "\n#####################################################"
    }
}

apply from: rootProject.file('gradle/checkstyle-app.gradle')