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.
50 lines
1.1 KiB
Groovy
50 lines
1.1 KiB
Groovy
buildscript {
|
|
ext.kotlin_version = '2.0.0'
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
|
|
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.3'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenCentral()
|
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
// maven { url 'https://tokbox.bintray.com/maven' }
|
|
}
|
|
}
|
|
|
|
|
|
rootProject.buildDir = '../build'
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
}
|
|
|
|
subprojects {
|
|
afterEvaluate { project ->
|
|
if (project.plugins.hasPlugin("com.android.application") ||
|
|
project.plugins.hasPlugin("com.android.library")) {
|
|
project.android {
|
|
compileSdkVersion 34
|
|
buildToolsVersion "34.0.0"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// to here
|
|
subprojects {
|
|
project.evaluationDependsOn(':app')
|
|
}
|
|
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|