| 7 | maven { url "https://plugins.gradle.org/m2/" } |
| 8 | } |
| 9 | dependencies { |
| 10 | classpath 'com.android.tools.build:gradle:4.0.1' |
| 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0" |
| 12 | classpath 'com.google.gms:google-services:4.3.3' |
| 13 | classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.1' |
| 14 | classpath 'gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3' |
| 15 | classpath 'com.github.triplet.gradle:play-publisher:2.8.0' |
| 16 | } |
| 17 | } |
| 18 |
| 19 | static String detectNdkVersion() { |
| 20 |
| 21 | def version = "21.3.6528147" |
| 22 |
| 23 | def androidHome = System.getenv("ANDROID_HOME") |
| 24 |
| 25 | if (androidHome == null) return version |
| 26 |
| 27 | def versionFile = new File(androidHome,"ndk-bundle/source.properties") |
| 28 |
| 29 | if (!versionFile.isFile()) return version |
| 30 |
| 31 | def versionProperties = new Properties() |
| 32 |
| 33 | versionProperties.load(versionFile.newDataInputStream()) |
| 34 |
| 35 | return versionProperties.getProperty("Pkg.Revision",version) |
| 36 |
| 37 | } |
| 38 |
| 39 | ext { |
| 40 |
| 41 | ndkVersion = detectNdkVersion() |
| 42 |
| 43 | } |
| 44 |
| 45 | allprojects { |
| 46 | repositories { |
| 47 | // The order in which you list these repositories matter. |
| 48 | jcenter() |
| 49 | mavenCentral() |
| 50 | google() |
| 51 | } |
| 52 | } |