Skip to content

Commit fd5b31e

Browse files
committed
Updating build gradle
1 parent bf9c01c commit fd5b31e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

example/android/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3+
ext.kotlin_version = "1.9.24"
34
repositories {
45
google()
56
mavenCentral()
67
}
78

89
dependencies {
9-
// Modern Android Gradle Plugin
1010
classpath 'com.android.tools.build:gradle:8.5.2'
11-
// Modern Kotlin
12-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24"
11+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1312
}
1413
}
1514

@@ -20,13 +19,14 @@ allprojects {
2019
}
2120
}
2221

23-
plugins {
24-
id "com.android.application" version "8.4.2" apply false
25-
id "com.android.library" version "8.4.2" apply false
22+
rootProject.buildDir = "../build"
23+
subprojects {
24+
project.buildDir = "${rootProject.buildDir}/${project.name}"
25+
}
26+
subprojects {
27+
project.evaluationDependsOn(":app")
2628
}
2729

28-
// Custom clean task to ensure all build directories are deleted
29-
tasks.register('clean', Delete) {
30+
tasks.register("clean", Delete) {
3031
delete rootProject.buildDir
31-
subprojects.each { delete it.buildDir }
3232
}

0 commit comments

Comments
 (0)