buildscript {
    repositories {
        mavenLocal()
        google()
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
        classpath "com.google.gms:google-services:4.3.4"
        classpath files('libs/gradle-witness.jar')
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven {
            url "https://raw.github.com/signalapp/maven/master/photoview/releases/"
            content {
                includeGroupByRegex "com\\.github\\.chrisbanes.*"
            }
        }
        maven {
            url "https://raw.github.com/signalapp/maven/master/shortcutbadger/releases/"
            content {
                includeGroupByRegex "me\\.leolin.*"
            }
        }
        maven {
            url "https://raw.github.com/signalapp/maven/master/circular-progress-button/releases/"
            content {
                includeGroupByRegex "com\\.github\\.dmytrodanylyk\\.circular-progress-button\\.*"
            }
        }
        maven {
            url "https://raw.github.com/signalapp/maven/master/sqlcipher/release/"
            content {
                includeGroupByRegex "org\\.signal.*"
            }
        }
        maven { // textdrawable
            url 'https://dl.bintray.com/amulyakhare/maven'
            content {
                includeGroupByRegex "com\\.amulyakhare.*"
            }
        }
        maven {
            url  "https://dl.bintray.com/terl/lazysodium-maven"
            content {
                includeGroupByRegex "com\\.goterl\\.lazycode.*"
            }
        }
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }

    project.ext {
        androidBuildToolsVersion = '29.0.3'
        androidCompileSdkVersion = 29   // This is also our target SDK.
        androidMinSdkVersion = 21
    }
}