-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
39 lines (35 loc) · 1013 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ext {
compileSdkVersion = 35
targetSdkVersion = 35
appCompatVersion = "1.7.0"
}
allprojects {
repositories {
google()
mavenCentral()
}
}
Directory newBuildDir = rootProject.layout.buildDirectory.dir("../../build").get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
afterEvaluate { project ->
if (project.plugins.hasPlugin("com.android.application") ||
project.plugins.hasPlugin("com.android.library")) {
project.android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion "34.0.0"
}
}
}
def newSubprojectBuildDir = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
project.evaluationDependsOn(":app")
}
tasks.register("clean", Delete) {
delete rootProject.layout.buildDirectory
}
configurations.all {
resolutionStrategy {
force "androidx.core:core-ktx:1.15.0"
}
}