-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add sealed classes support to serialization #61
Comments
What are the building problems you are having? |
lint is failing |
What lint? |
idk, that's the error message:
|
I have not seen this before! is there a way to get the log of lint errors? |
That's the only thing gradle prints out to the console. |
No, I use IJ but anyway its gradle issue so shouldn't be affected by IDE try running the task with --info |
Ok I recreated the issue by running the lint task directly - what gradle task were you running? |
gradle build in firebase-firestore |
Pull latest master - should fix your issue |
The error is the screenshot is different, are you using the master branch? It says not defined for JVM target but there is no JVM target |
Yes I pulled the master branch and merged it with the local changes |
What local changes do you have? |
Still complaining about JVM platform which we dont have a target setup for so still have no idea how you are getting this error |
I reproduced this error by running the build task in happens in the task ':firebase-app:compileDebugUnitTestKotlinAndroid' which makes sense as its trying to run uninstrumented android tests on the jvm. Thing is we dont have any uninstrumented android tests and im not sure how to stop it from doing this. Workaround is to run the assemble task instead, thats what the CI does |
btw build is working now too |
Hey y'all. Is this a fix we can get back into in the pipeline? I just started using this library (which has worked pretty great so far) but there are couple of hitches such as the inability to deserialize to a sealed class (which I might expect is a fairly common expectation today). |
closing as support has been added |
This made my day/week! Thank you all for the time/effort! |
Could you add support of "sealed" class to the FirebaseDecoder.structureDecoder and FirebaseEncoder.structureEncoder functions?
I would try it with some think like this:
This case is optimized for plain Kotlin.
Unfortunately, I also have some building problems too, so I cannot implement them myself
The text was updated successfully, but these errors were encountered: