// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.4.0-alpha7'
        def taskRequests = getGradle().getStartParameter().getTaskRequests().toString()
        def isGms = taskRequests.contains("Gms") || taskRequests.contains("gms")
        if (isGms) {
            classpath 'com.google.gms:google-services:3.0.0'
            classpath 'com.google.firebase:firebase-plugins:1.0.5'
        }
        classpath 'com.novoda:gradle-build-properties-plugin:0.3'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}