fury icon indicating copy to clipboard operation
fury copied to clipboard

[Android] Does Fury support usage on Android?

Open Kaneki-x opened this issue 1 year ago • 2 comments

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

image image

Kaneki-x avatar Nov 17 '23 06:11 Kaneki-x

Some issues may need to be addressed for andriod support

  • Does StringSerializer/StringBufferSerializer/StringBuilderSerializer needs to be adpated? Fury check value type by char[]/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.

chaokunyang avatar Nov 17 '23 07:11 chaokunyang

Another issue is that you'd better create Fury with FuryBuilder#withAsyncCompilation(true) to avoid compaliation latency. You can't warmup for clients.

chaokunyang avatar Nov 17 '23 07:11 chaokunyang