Skip to content

Conversation

@adrian-niculescu
Copy link
Contributor

@davidliu , this fixes the release crash described in #808

Commit 4bf585e introduced two data classes (AgentAttributes and TranscriptionAttributes) that use Klaxon for JSON parsing via reflection. However, no ProGuard rules were added to protect these classes from obfuscation.

Added @keep annotations to AgentAttributes and related classes that use Klaxon for JSON parsing. Updated ProGuard rules to keep Klaxon library classes. This fixes the 'Couldn't find a suitable constructor' crash that occurred in release builds with minification enabled.
@changeset-bot
Copy link

changeset-bot bot commented Nov 19, 2025

🦋 Changeset detected

Latest commit: 0e1d58d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
client-sdk-android Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@davidliu davidliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@davidliu davidliu merged commit 5aaa208 into livekit:main Nov 21, 2025
2 checks passed
@davidliu davidliu mentioned this pull request Nov 21, 2025
@adrian-niculescu adrian-niculescu deleted the fix/proguard-klaxon-minification branch November 24, 2025 10:09
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.

2 participants