2024-03-18 13:23:58 +08:00
|
|
|
buildscript {
|
2024-04-15 15:14:40 +08:00
|
|
|
ext.kotlin_version = '1.9.22'
|
2024-03-18 13:23:58 +08:00
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-04-15 15:14:40 +08:00
|
|
|
classpath 'com.android.tools.build:gradle:8.0.2' // Change this to a version that supports compileSdkVersion 34
|
2024-03-18 13:23:58 +08:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rootProject.buildDir = '../build'
|
|
|
|
subprojects {
|
|
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
|
|
}
|
|
|
|
subprojects {
|
|
|
|
project.evaluationDependsOn(':app')
|
|
|
|
}
|
2024-04-12 15:17:29 +08:00
|
|
|
subprojects {
|
|
|
|
project.configurations.all {
|
|
|
|
resolutionStrategy.eachDependency { details ->
|
|
|
|
if (details.requested.group == 'com.android.support'
|
|
|
|
&& !details.requested.name.contains('multidex') ) {
|
|
|
|
details.useVersion "27.1.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-18 13:23:58 +08:00
|
|
|
tasks.register("clean", Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|