Skip to content

Give enro and enro-compat a source file on every target - #251

Merged
isaac-udy merged 1 commit into
mainfrom
fix/empty-module-publications
Nov 11, 2026
Merged

isaac-udy merged 1 commit into
mainfrom
fix/empty-module-publications

Conversation

@isaac-udy

Copy link
Copy Markdown
Owner

Summary

Fixes a publishing failure introduced by #247. The release job would have failed at its publish step.

  • Removing the Compose resources dependency left the enro module with no sources: the generated Res class had been its only one.
  • Kotlin/Native produces no klib for a target without sources, so :enro:generateMetadataFileForIosArm64Publication failed with FileNotFoundException: enro-iosArm64Main-<version>.klib.
  • enro-compat had the same problem on its non-Android targets.

Each module now has an internal marker object in commonMain. The klib ABI dumps for both are regenerated: they gain a header and no declarations.

CI did not catch this because it compiles and tests but never runs a publish task.

Test plan

  • publishEnroLocal succeeds (it failed on main)
  • publishToMavenLocal succeeds for every publication, including js and wasmJs
  • checkKotlinAbi passes
  • Published POMs for enro, enro-ui and enro-compat have no material3, material-icons-extended, resources or ui-tooling dependencies; enro-compat-android keeps material; desktop POMs depend on desktop-jvm, not an OS-specific artifact

🤖 Generated with Claude Code

Removing the Compose resources dependency left the enro module with no
sources, because the generated Res class had been its only one. Kotlin/
Native produces no klib for a target without sources, so
:enro:generateMetadataFileForIosArm64Publication failed and the module
could not be published. enro-compat had the same problem on its
non-Android targets.

Each module now has an internal marker object in commonMain. The klib
ABI dumps are regenerated: they gain a header and no declarations.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@isaac-udy
isaac-udy merged commit b7d94fc into main Nov 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant