Skip to content

Retrofit converter which uses Thrifty for Apache Thrift-compatible serialization

License

Notifications You must be signed in to change notification settings

infinum/thrifty-retrofit-converter

Repository files navigation

Thrifty Retrofit converter

License Download

A Retrofit converter implementation using Thrifty for (de)serialization of Apache Thrift requests and responses.

It supports Binary, Compact and Json Thrift protocols.

Usage

Add the library as a dependency to your build.gradle to automatically download it from jcenter.

compile 'co.infinum:retrofit-converter-thrifty:0.9.1'

... and add the converter factory when you create the Retrofit object.

Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://example.com/api/")
    .addConverterFactory(ThriftyConverterFactory.create(ProtocolType.COMPACT))
    .build();

We also maintain a changelog.

Deploying a new version

To deploy a new version to bintray, use deploy.sh:

./deploy.sh <bintray username> <bintray api key> <artifact version> [optional tag message]

Contributing

Feedback and code contributions are very much welcome. Just make a pull request with a short description of your changes. By making contributions to this project you give permission for your code to be used under the same license.