1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-02 10:33:36 +00:00
NekoX/build.gradle

52 lines
1.3 KiB
Groovy
Raw Normal View History

2013-10-25 15:19:00 +00:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2015-06-29 17:12:11 +00:00
buildscript {
repositories {
2016-03-16 12:26:32 +00:00
jcenter()
2015-06-29 17:12:11 +00:00
mavenCentral()
2018-08-27 08:33:11 +00:00
google()
2020-06-24 16:15:30 +00:00
maven { url "https://plugins.gradle.org/m2/" }
2015-06-29 17:12:11 +00:00
}
dependencies {
2020-07-19 07:44:11 +00:00
classpath 'com.android.tools.build:gradle:4.0.1'
2020-06-24 16:15:30 +00:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'
classpath 'gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3'
2020-07-08 04:00:22 +00:00
classpath 'com.github.triplet.gradle:play-publisher:2.8.0'
2015-06-29 17:12:11 +00:00
}
2018-08-27 08:33:11 +00:00
}
2020-06-24 16:15:30 +00:00
static String detectNdkVersion() {
def version = "21.3.6528147"
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)
2019-07-18 13:01:39 +00:00
}
2020-06-24 16:15:30 +00:00
ext {
ndkVersion = detectNdkVersion()
}
allprojects {
repositories {
// The order in which you list these repositories matter.
jcenter()
mavenCentral()
google()
}
}