Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Serializer for class 'RealtimeMessage' is not found. #768

Open
3 tasks done
Shabinder opened this issue Oct 29, 2024 · 8 comments
Open
3 tasks done

[Bug]: Serializer for class 'RealtimeMessage' is not found. #768

Shabinder opened this issue Oct 29, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Shabinder
Copy link

General Info

  • I checked for similar bug report
  • I am using the latest version
  • I checked the troubleshooting page for similar problems

Version(s)

3.0.1

Kotlin Target(s) and their respective versions

JVM 21

What happened? (include your code)

With Proguard:
Serializer for class 'RealtimeMessage' is not found.
Please ensure that class is marked as '@serializable' and that the serialization compiler plugin is applied.

Without Proguard it works.

I have even tried an extreme rule:
-keep @kotlinx.serialization.Serializable class * {*;}
But didn't help.

Steps To Reproduce (optional)

No response

Relevant log output (optional)

No response

@Shabinder Shabinder added the bug Something isn't working label Oct 29, 2024
@Shabinder Shabinder changed the title [Bug]: androidx.lifecycle.dbJ: Serializer for class 'RealtimeMessage' is not found. [Bug]: Serializer for class 'RealtimeMessage' is not found. Oct 29, 2024
@Shabinder
Copy link
Author

-keep class io.github.jan.** { *;}

Also, This worked for now, but would like to remove this, since it obfuscation than loses its point.

@jan-tennert
Copy link
Collaborator

I don't have this issue. Can you share your library versions and build files?

@Shabinder
Copy link
Author

I don't have this issue. Can you share your library versions and build files?

https://github.com/Shabinder/soundbound-extensions-lib/blob/zipline-test/gradle/deps.versions.toml

@jan-tennert
Copy link
Collaborator

Is this the project affected? The Supabase modules are declared but not used in any build file

@Shabinder
Copy link
Author

This catalog is used in the project, so can refer versions, project itself isn't open source.

@jan-tennert
Copy link
Collaborator

Well, can you make a reproducer? Normally if there is an issue with serializers for libraries not found, the serialization plugin was applied incorrectly. E.g. the serialization plugin has to also be applied in the project-wide build.gradle.kts

@Shabinder
Copy link
Author

E.g. the serialization plugin has to also be applied in the project-wide build.gradle.kts

Yes, that's confirmed here, since adding -keep class io.github.jan.** { *;} fixes the issue.
Also, I noticed this is happening only in compose desktop target, android target runs fine.

@jan-tennert
Copy link
Collaborator

This might be related
I don't think there is anything I can do since it a Ktor / KotlinX Serialization issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants