buildscript {
    ext.buildConfig = [
        'compileSdkVersion': 28,
        'minSdkVersion': 21,
        'targetSdkVersion': 28
    ]
    ext.versions = [
        'dagger': '2.22.1',
        'kotlin': '1.3.21',
        'coroutines': '1.1.0',
        'navigation': '1.0.0',
        'junit5': '5.5.0-M1'
    ]
    ext.deps = [
        'androidx': [
            'appcompat': 'androidx.appcompat:appcompat:1.0.0',
            'constraintLayout': 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3',
            'core': 'androidx.core:core:1.1.0-alpha05',
            'coreKtx': 'androidx.core:core-ktx:1.0.0',
            'multidex': 'androidx.multidex:multidex:2.0.1',
            'navigation': [
                'fragment': "android.arch.navigation:navigation-fragment:${versions.navigation}",
                'fragmentKtx': "android.arch.navigation:navigation-fragment-ktx:${versions.navigation}",
                'ui': "android.arch.navigation:navigation-ui:${versions.navigation}",
                'uiKtx': "android.arch.navigation:navigation-ui-ktx:${versions.navigation}"
            ],
            'test': [
                'runner': 'androidx.test:runner:1.1.0',
                'espresso': 'androidx.test.espresso:espresso-core:3.1.0'
            ]
        ],
        'dagger': [
            'android': [
                'processor': "com.google.dagger:dagger-android-processor:${versions.dagger}",
                'support': "com.google.dagger:dagger-android-support:${versions.dagger}",
            ],
            'compiler': "com.google.dagger:dagger-compiler:${versions.dagger}"
        ],
        'junit5': [
            'api': "org.junit.jupiter:junit-jupiter-api:${versions.junit5}",
            'engine': "org.junit.jupiter:junit-jupiter-engine:${versions.junit5}",
            'migrationsupport': "org.junit.jupiter:junit-jupiter-api:${versions.junit5}"
        ],
        'kotlin': [
             'coroutines': [
                'core': "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutines}",
                'android': "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutines}"
             ],
            'reflect': "org.jetbrains.kotlin:kotlin-reflect:${versions.kotlin}",
            'stdlib': "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
        ],
        'lottie': "com.airbnb.android:lottie:3.0.0",
        'material': 'com.google.android.material:material:1.1.0-alpha05',
        'mockito': [
            'jupiter':'org.mockito:mockito-junit-jupiter:2.26.0',
            'kotlin':'com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0'
        ],
        'speeddial': 'com.leinardi.android:speed-dial:2.0.0',
        'stetho': 'com.facebook.stetho:stetho:1.5.1',
        'zcash': [
            'walletSdk': "cash.z.android.wallet:zcash-android-testnet:1.7.8-alpha@aar"
        ]
    ]
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0-alpha10'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
        classpath "com.github.ben-manes:gradle-versions-plugin:0.21.0"
        classpath 'com.deploygate:gradle:1.1.5'
        classpath 'com.google.gms:google-services:4.2.0'
    }
}

allprojects {
    repositories {
        mavenLocal()
        flatDir {
            dirs 'libs'
        }
        google()
        jcenter()
        
    }
}

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