Hawk requires Gson to serialize/deserialize the value. There is a way to invert this dependency by using Parser interface but transitively Gson will be added to the final apk. In order to avoid that, both consumer and Hawk should depend on abstraction and concrete implementation should be provided by the consumer.
Hawk requires Gson to serialize/deserialize the value. There is a way to invert this dependency by using
Parser
interface but transitivelyGson
will be added to the final apk. In order to avoid that, both consumer and Hawk should depend on abstraction and concrete implementation should be provided by the consumer.