2013-10-25 17:19:00 +02:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
2015-06-29 19:12:11 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2016-03-16 13:26:32 +01:00
|
|
|
jcenter()
|
2015-06-29 19:12:11 +02:00
|
|
|
mavenCentral()
|
2018-08-27 10:33:11 +02:00
|
|
|
google()
|
2020-05-07 12:44:08 +02:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2015-06-29 19:12:11 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2020-05-30 15:32:03 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:4.0.0'
|
2020-04-18 16:13:39 +02:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
|
2020-03-26 14:40:56 +01:00
|
|
|
classpath 'com.google.gms:google-services:4.3.3'
|
2020-06-05 05:45:01 +02:00
|
|
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.1'
|
2020-05-07 12:44:08 +02:00
|
|
|
classpath 'gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3'
|
2015-06-29 19:12:11 +02:00
|
|
|
}
|
2018-08-27 10:33:11 +02:00
|
|
|
}
|
2020-03-26 14:40:56 +01:00
|
|
|
|
2020-06-13 06:29:14 +02:00
|
|
|
static String detectNdkVersion() {
|
|
|
|
|
|
|
|
def version = "21.2.6472646"
|
|
|
|
|
|
|
|
def androidHome = System.getenv("ANDROID_HOME")
|
|
|
|
|
|
|
|
if (androidHome == null) return version
|
|
|
|
|
|
|
|
def versionFile = new File(androidHome,"ndk-bundle/source.properties")
|
|
|
|
|
|
|
|
if (!versionFile.isFile()) return version
|
|
|
|
|
|
|
|
def versionProperties = new Properties()
|
|
|
|
|
|
|
|
versionProperties.load(versionFile.newDataInputStream())
|
|
|
|
|
|
|
|
return versionProperties.getProperty("Pkg.Revision",version)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
|
|
|
|
|
|
|
ndkVersion = detectNdkVersion()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-26 14:40:56 +01:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
// The order in which you list these repositories matter.
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
}
|