@@ -20,7 +20,7 @@ apply plugin: 'com.vanniktech.maven.publish'
2020group = ' io.split.client'
2121
2222ext {
23- splitVersion = ' 5.4.3-rc2 '
23+ splitVersion = ' 5.4.3-rc3 '
2424 jacocoVersion = ' 0.8.8'
2525}
2626
@@ -41,6 +41,16 @@ androidFusedLibrary {
4141 minSdk { version = release(19 ) }
4242}
4343
44+ // Disable lint JAR generation entirely - we have no custom lint rules
45+ // Empty/malformed lint.jar causes consumer build failures
46+ tasks. configureEach { task ->
47+ if (task. name == ' packageLintJar' ||
48+ task. name. contains(' LintJar' ) ||
49+ task. name. contains(' LintModel' )) {
50+ task. enabled = false
51+ }
52+ }
53+
4454// Workaround: Fused library plugin doesn't include consumer ProGuard files in AAR
4555// Manually copy the merged consumer proguard file into the AAR
4656afterEvaluate {
@@ -67,6 +77,13 @@ afterEvaluate {
6777 into tempDir
6878 }
6979
80+ // Remove lint.jar if it exists (we don't have custom lint rules)
81+ def lintJar = new File (tempDir, ' lint.jar' )
82+ if (lintJar. exists()) {
83+ lintJar. delete()
84+ println " Removed empty lint.jar from AAR"
85+ }
86+
7087 // Repack AAR
7188 ant. zip(destfile : aarFile, basedir : tempDir)
7289
@@ -367,4 +384,15 @@ afterEvaluate {
367384 task. enabled = false
368385 }
369386 }
387+
388+ // Remove empty lint.jar from publication to prevent consumer lint crashes
389+ // The fused library plugin generates an empty lint.jar without proper Lint-Registry-v2 manifest
390+ // This causes lint to crash when consumers use checkDependencies: true
391+ publishing. publications. withType(MavenPublication ) { publication ->
392+ if (publication. name == " maven" ) {
393+ publication. artifacts. removeAll { artifact ->
394+ artifact. file?. name?. endsWith(' lint.jar' ) ?: false
395+ }
396+ }
397+ }
370398}
0 commit comments