retrofit-logansquare 0

A Converter implementation using LoganSquare JSON serialization for Retrofit 2.

2 years after Apache-2.0

retrofit-logansquare

A Converter implementation using BlueLine Labs' LoganSquare JSON serialization for Square's Retrofit REST library.
Please note that this library is solely intended for usage with Retrofit 2.0.0 and above! It won't work with 1.9 or earlier. Please refer to this section of the README for instructions on how to include LoganSquare serialization on these versions.

Download

Get it on jcenter():

compile "com.github.aurae.retrofit2:converter-logansquare:1.4.1"

Don't forget to include the dependencies on LoganSquare as well! Their latest release at the moment: Check the repo

apt "com.bluelinelabs:logansquare-compiler:<latest-logansquare-version>"
compile "com.bluelinelabs:logansquare:<latest-logansquare-version>"

Usage

Plug in the LoganSquareConverterFactory like any other converter upon creating your Retrofit instance:

Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://your.server.com/api/")
    .addConverterFactory(LoganSquareConverterFactory.create())
    .build();

I'm using Retrofit 1.x, though!

In that case, it might be time to upgrade! If you can't or won't, refer to this gist for a quick solution (no guarantees that it will work 100% of the time, though).

License

Copyright 2016 Marcel Schnelle

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Related Repositories

awesome-java

awesome-java

A curated list of awesome frameworks, libraries and software for the Java progra ...

awesome-java-cn

awesome-java-cn

Java资源大全中文版,包括开发库、开发工具、网站、博客、微信、微博等,由伯乐在线持续更新。 ...

android-proguards

android-proguards

AAR proguards ...

android_top_1000

android_top_1000

A curated list of awesome Android Top 1000 libraries. ...


Top Contributors

aurae Jawnnypoo ademar111190

Releases

-   1.4.1 zip tar
-   1.4.0 zip tar
-   1.3.0 zip tar
-   1.2.1 zip tar
-   1.2.0 zip tar
-   1.1.0 zip tar
-   1.0.0 zip tar