Skip to content

Commit b36d3bb

Browse files
committed
update build.gradle
1 parent 113051b commit b36d3bb

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

android/build.gradle

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ext {
1515

1616
enableTestCodeCoverage = true
1717

18-
compileSdkVersion = 35
18+
compileSdkVersion = 36
1919
targetSdkVersion = 35
2020
minSdkVersion = 24
2121
buildToolsVersion = '34.0.0'
@@ -24,6 +24,7 @@ ext {
2424
supportTestVersion = '1.0'
2525

2626
lanternDir = projectDir.parentFile.parentFile
27+
libs = fileTree(dir: 'libs', include: ['*.jar'])
2728
}
2829

2930
allprojects {
@@ -32,6 +33,24 @@ allprojects {
3233
mavenCentral()
3334
maven { url 'https://jitpack.io' }
3435
}
36+
37+
// This code fixes a 'namespace not specified' error upgrading AGP to >= 8.x.x.
38+
subprojects { subproject ->
39+
subproject.tasks.whenTaskAdded {
40+
if (it.name.contains("kapt")) {
41+
it.enabled = false
42+
}
43+
}
44+
afterEvaluate { project ->
45+
if (project.hasProperty('android')) {
46+
project.android {
47+
if (namespace == null) {
48+
namespace project.group
49+
}
50+
}
51+
}
52+
}
53+
}
3554
}
3655

3756
rootProject.buildDir = '../build'

0 commit comments

Comments
 (0)