Skip to content

chore(kotlin): check the public API against a committed dump - #2819

Open
aleksandar-apostolov wants to merge 1 commit into
mainfrom
chore/kotlin-api-check
Open

aleksandar-apostolov wants to merge 1 commit into
mainfrom
chore/kotlin-api-check

Conversation

@aleksandar-apostolov

Copy link
Copy Markdown
Contributor

Why

Refs AND-2082

Nothing caught a change to the Kotlin SDK's public API in review. #2809, for one, breaks several signatures.

Changes

  • sdks/kotlin/core/api/core.api is the committed dump of the public API.
  • apiCheck runs in the kotlin job of client-sdks.yml and fails when the API changes without the dump. ./gradlew :core:apiDump regenerates it.
  • binary-compatibility-validator's tasks are registered by hand in core/build.gradle.kts: neither it nor the Kotlin plugin's own ABI validation sets itself up under AGP 9's built-in Kotlin. asm, asm-tree and kotlin-metadata-jvm are added to the catalog for them.
  • The sdk-kotlin skill says to regenerate the dump in the PR that changes the API.

Validation

:core:apiCheck passes; a temporary public function fails it with the diff. :core:testDebugUnitTest :core:lintDebug: 339 tests pass (10 skipped), no lint errors. Juno compiles. #2809 will need the dump regenerated; #2810 and #2817 do not.

@getstream-metis

Copy link
Copy Markdown

👋 Hi Aleksandar, want a second pair of eyes on this?

I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.

  • Review this PR

Or comment /jeffery review. I'll stay quiet unless you ask.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant