We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26c9ebd + 3c5c69e commit 797866fCopy full SHA for 797866f
android/build.gradle.kts
@@ -14,13 +14,15 @@ subprojects {
14
}
15
16
// 👇 MOVED UP: This forces the plugins to use Android SDK 36.
17
-// It must be BEFORE "evaluationDependsOn" to work correctly.
18
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()
+ afterEvaluate {
+ extensions.findByName("android")?.let { ext ->
+ (ext as? com.android.build.gradle.BaseExtension)?.apply {
+ compileSdkVersion(36)
+
+ if (namespace == null) {
24
+ namespace = project.group.toString()
25
+ }
26
27
28
0 commit comments