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

allprojects {
	repositories {
		mavenCentral()
		jcenter()
		mavenLocal()
		google()
		maven { url "https://jitpack.io" }
	}
	afterEvaluate {
		tasks.withType(Test) {
			// Allow tests to be re-run if any optional tests are enabled
			outputs.upToDateWhen { System.getenv("OPTIONAL_TESTS") == null }
			// Use entropy-gathering device specified on command line, if any
			systemProperty 'java.security.egd', System.getProperty('java.security.egd')
		}
	}
}

buildscript {
	repositories {
		jcenter()
		mavenLocal()
		google()
		maven {
			url 'https://plugins.gradle.org/m2/'
		}
	}

	dependencies {
		classpath 'com.android.tools.build:gradle:7.0.3'
		classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.5.3'
		classpath files('libs/gradle-witness.jar')
	}
	ext {
		dagger_version = "2.33"
		// okhttp 3.12.x is supported until end of 2021, newer versions need minSdk 21
		okhttp_version = "3.12.13"
		jackson_version = "2.13.0"
		tor_version = "0.4.5.12-2"
		obfs4proxy_version = "0.0.12"
		junit_version = "4.13.2"
		jmock_version = '2.12.0'
	}
}
