https://github.com/holgerbrandl/kryo-koin
Example project to illustrate problem when using kryo to serialize koin-instance
https://github.com/holgerbrandl/kryo-koin
Last synced: 8 months ago
JSON representation
Example project to illustrate problem when using kryo to serialize koin-instance
- Host: GitHub
- URL: https://github.com/holgerbrandl/kryo-koin
- Owner: holgerbrandl
- Created: 2021-11-07T07:10:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-09T08:13:56.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T13:08:38.565Z (9 months ago)
- Language: Kotlin
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Koin Serialization with Kryo
Supplementary example for https://github.com/EsotericSoftware/kryo/issues/864
The repo contains multiple examples, where I have tried to narrow down the issue.
* KryoLambda.kt - generic kotlin labmda, **works** in both ways with kryo
* KryoDefinition.kt - generic lambda, wrapped into other types **works** in both ways with kryo (includes KryoLambda)
* KryoBeanDefinition.kt - more complex wrapper around KryoDefinition, **fails to work with kryo**
* KryoInstanceFactory.kt - Includes KryoBeanDefinition, but does not work.
* These examples arose from my original usecase, which is serializing/deserializing an instance of https://insert-koin.io/