You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.9 KiB
Groovy
95 lines
2.9 KiB
Groovy
buildscript {
|
|
ext.kotlin_version = '1.8.0'
|
|
|
|
// if (System.properties['os.arch'] == "aarch64") {
|
|
// // For M1 Users we need to use the NDK 24 which added support for aarch64
|
|
// ndkVersion = "24.0.8215888"
|
|
// } else {
|
|
// // Otherwise we default to the side-by-side NDK version from AGP.
|
|
// ndkVersion = "21.4.7075529"
|
|
// }
|
|
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
maven {
|
|
url 'https://api.mapbox.com/downloads/v2/releases/maven'
|
|
|
|
credentials {
|
|
username = 'mapbox'
|
|
password = "sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg"
|
|
if (password == null || password == "") {
|
|
throw new GradleException("MAPBOX_DOWNLOADS_TOKEN isn't set. Set it to the project properties or to the enviroment variables.")
|
|
}
|
|
}
|
|
authentication {
|
|
basic(BasicAuthentication)
|
|
}
|
|
}
|
|
|
|
// maven {
|
|
// url "https://dl.bintray.com/kotlin/kotlin-eap/"
|
|
// }
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.1.3'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath 'com.google.gms:google-services:4.3.8'
|
|
// classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
|
|
classpath 'com.huawei.agconnect:agcp:1.5.2.300'
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.12'
|
|
classpath "com.mapbox.gradle.plugins:access-token:0.4.0"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
// jcenter()
|
|
mavenCentral()
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
maven {
|
|
url 'https://developer.huawei.com/repo/'
|
|
}
|
|
maven {
|
|
url "https://artifactory.ess-dev.com/artifactory/gradle-dev-local"
|
|
}
|
|
maven {
|
|
url 'https://api.mapbox.com/downloads/v2/releases/maven'
|
|
|
|
credentials {
|
|
username = 'mapbox'
|
|
password = "sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg"
|
|
if (password == null || password == "") {
|
|
throw new GradleException("MAPBOX_DOWNLOADS_TOKEN isn't set. Set it to the project properties or to the enviroment variables.")
|
|
}
|
|
}
|
|
authentication {
|
|
basic(BasicAuthentication)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
rootProject.buildDir = '../build'
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
}
|
|
subprojects {
|
|
project.evaluationDependsOn(':app')
|
|
}
|
|
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|
|
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
force 'androidx.core:core-ktx:1.6.0'
|
|
}
|
|
}
|