fury
fury copied to clipboard
[Android] Does Fury support usage on Android?
Is your feature request related to a problem? Please describe.
After integrating into the Android project, some problems were discovered. The project probably did not adapt to the Java environment under Android, and there would be exceptions when running. Currently, it seems that _JDKAccess needs to be adapted.
Describe the solution you'd like
Hope to increase the support and adaptation for serialization capabilities under the Android platform.
Additional context
Some issues may need to be addressed for andriod support
- Does StringSerializer/StringBufferSerializer/StringBuilderSerializer needs to be adpated? Fury check
value
type bychar[]/byte[]
. Seems work for android too. - Fury needs JDK8+, JDK8 API(Stream/Lambda) are used by fury. is this supported for all andriod versions? If not, lower andriod versions needs to fallback to other frameworks
- Fury will generate bytecode dynamically using janino and load it as class. I'm not sure whether this work for andriod
- Fury use Java
Unsafe
API for some operations, I'm not sure whether this work for andriod
If all above issues can be addressed for andriod, I think fury will work well for andriod too.
Another issue is that you'd better create Fury with FuryBuilder#withAsyncCompilation(true)
to avoid compaliation latency. You can't warmup for clients.