Skip to content

Commit 30b3023

Browse files
committed
fix: remove sensitive/local files from git and fix javadoc publish error
- Add CLAUDE.md, *.asc, squarescreen-android-sdk-spec.md to .gitignore - Remove those files from git tracking - Fix javadoc publish error: sever javaDocReleaseJar dependency on Dokka instead of reconfiguring publications (which caused module metadata conflicts) - Revert configure(AndroidSingleVariantLibrary) calls — not needed
1 parent 6587dd6 commit 30b3023

10 files changed

Lines changed: 15 additions & 1029 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@ local.properties
1313

1414
# API keys / secrets - never commit
1515
*.keystore
16+
*.asc
1617
keystore.properties
1718
signing.properties
19+
20+
# Project-specific files not for version control
21+
squarescreen-android-sdk-spec.md
22+
23+
# Claude Code project instructions (local only)
24+
CLAUDE.md

CLAUDE.md

Lines changed: 0 additions & 226 deletions
This file was deleted.

build.gradle.kts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ subprojects {
3131
}
3232
}
3333

34-
// Add an empty javadoc jar to every Maven publication for Maven Central compliance.
35-
// Dokka is disabled due to an ASM9 incompatibility with sealed classes in dependency JARs.
36-
// Maven Central explicitly supports empty javadoc jars for non-Java projects.
37-
val emptyJavadocJar = tasks.maybeCreate("emptyJavadocJar", org.gradle.api.tasks.bundling.Jar::class.java).apply {
38-
archiveClassifier.set("javadoc")
39-
}
40-
publications.withType(org.gradle.api.publish.maven.MavenPublication::class.java).configureEach {
41-
if (artifacts.none { it.classifier == "javadoc" }) {
42-
artifact(emptyJavadocJar)
43-
}
44-
}
34+
// Dokka crashes with "PermittedSubclasses requires ASM9" when reading sealed
35+
// class bytecode from dependency JARs compiled with Java 17. Fix: sever the
36+
// dependency between the javadoc Jar task and the Dokka generation task so
37+
// the jar runs with no inputs and produces an empty (but valid) javadoc jar.
38+
// Maven Central accepts empty javadoc jars for Android/Kotlin libraries.
39+
tasks.matching { it.name == "javaDocReleaseJar" }.configureEach {
40+
setDependsOn(listOf<Any>())
41+
}
4542
}
4643
}
4744
}

signing-key.asc

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)