Skip to content

Commit 797866f

Browse files
authored
Merge pull request #9 from DELTA-45-G/test
fix: correct namespace handling for Kotlin DSL (CI fix)
2 parents 26c9ebd + 3c5c69e commit 797866f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

android/build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ subprojects {
1414
}
1515

1616
// 👇 MOVED UP: This forces the plugins to use Android SDK 36.
17-
// It must be BEFORE "evaluationDependsOn" to work correctly.
1817
subprojects {
19-
project.afterEvaluate {
20-
project.extensions.findByType(com.android.build.gradle.BaseExtension::class.java)?.apply {
21-
compileSdkVersion(36)
22-
if(namespace == null){
23-
namespace = project.group.toString()
18+
afterEvaluate {
19+
extensions.findByName("android")?.let { ext ->
20+
(ext as? com.android.build.gradle.BaseExtension)?.apply {
21+
compileSdkVersion(36)
22+
23+
if (namespace == null) {
24+
namespace = project.group.toString()
25+
}
2426
}
2527
}
2628
}

0 commit comments

Comments
 (0)