allprojects {
    repositories {
        google()
        jcenter()
    }
}

buildscript {
    ext {
        agpVersion = '4.0.1'
        annotationsVersion = '1.1.0'
        appcompatVersion = '1.2.0'
        bintrayPluginVersion = '1.8.4'
        biometricVersion = '1.0.1'
        collectionVersion = '1.1.0'
        constraintLayoutVersion = '2.0.0'
        coordinatorLayoutVersion = '1.1.0'
        coreKtxVersion = '1.3.0'
        coroutinesVersion = '1.3.9'
        eddsaVersion = '0.3.0'
        fragmentVersion = '1.2.5'
        jsr305Version = '3.0.2'
        junitVersion = '4.13'
        kotlinVersion = '1.4.0'
        materialComponentsVersion = '1.2.0-alpha06'
        mavenPluginVersion = '2.1'
        preferenceVersion = '1.1.1'
        streamsupportVersion = '1.7.2'
        threetenabpVersion = '1.2.4'
        zxingEmbeddedVersion = '3.6.0'

        groupName = 'com.wireguard.android'
    }
    dependencies {
        classpath "com.android.tools.build:gradle:$agpVersion"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
        classpath "com.github.dcendents:android-maven-gradle-plugin:$mavenPluginVersion"
        classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintrayPluginVersion"
    }
    repositories {
        google()
        jcenter()
    }
}

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

tasks {
    wrapper {
        gradleVersion = "6.6"
        distributionType = Wrapper.DistributionType.ALL
        distributionSha256Sum = "83fa7c3e5ab84c3c5c4a04fb16947338209efa9aab1f6bf09a5d0e3d2ed87742"
    }
}

apply from: "version.gradle"