mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-12-14 06:30:14 +01:00
448f3ca7e4
Bumps kotlin-gradle-plugin from 1.4.21 to 1.4.21-2. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
52 lines
1.3 KiB
Groovy
52 lines
1.3 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
google()
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:4.1.1'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21-2"
|
|
classpath 'com.google.gms:google-services:4.3.4'
|
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
|
|
classpath 'gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3'
|
|
classpath 'com.github.triplet.gradle:play-publisher:3.0.0'
|
|
}
|
|
}
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
ext {
|
|
|
|
ndkVersion = detectNdkVersion()
|
|
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
// The order in which you list these repositories matter.
|
|
jcenter()
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
} |