airbnb / native-navigation

Native navigation library for React Native applications

Home Page:http://airbnb.io/native-navigation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Android] Abstract serialiser

serj-lotutovici opened this issue · comments

Currently the android library uses Jackson as a serialisation library. This makes Jackson a transitive dependency that lands in the consumers dependency tree.

My proposal would be to adapt a more agnostic approach and create an abstraction layer like a Converter (similar to the one in https://github.com/square/retrofit) and allow consumers to select different types of implementations via different artefacts.
There are at least 3 popular libraries used in Android development, so at lest does can be added as standalone artefacts:

  • native-navigation-converter-gson for Gson
  • native-navigation-converter-moshi for Moshi
  • native-navigation-converter-jackson forJackson.