From 1956237f5055a2c4b915dcb8eb48dda1bdcccf0a Mon Sep 17 00:00:00 2001 From: Marcel Schnelle Date: Mon, 22 Feb 2016 10:02:02 +0100 Subject: [PATCH] Added compatibility for 2.0.0-beta4 --- README.md | 1 + .../github/aurae/retrofit2/LoganSquareConverterFactory.java | 2 +- gradle.properties | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a8ae3a0..c7424f0 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Get the appropriate version for your Retrofit dependency on `jcenter()`: |---|---| |`2.0.0-beta2`|`compile "com.github.aurae.retrofit:converter-logansquare:1.1.0"`| |`2.0.0-beta3`|`compile "com.github.aurae.retrofit2:converter-logansquare:1.2.1"`| +|`2.0.0-beta4`|`compile "com.github.aurae.retrofit2:converter-logansquare:1.3.0"`| Don't forget to include LoganSquare's dependencies as well. Check [their repo][logansquare] for the latest version: diff --git a/converter-logansquare/src/main/java/com/github/aurae/retrofit2/LoganSquareConverterFactory.java b/converter-logansquare/src/main/java/com/github/aurae/retrofit2/LoganSquareConverterFactory.java index ee10601..b98bee4 100755 --- a/converter-logansquare/src/main/java/com/github/aurae/retrofit2/LoganSquareConverterFactory.java +++ b/converter-logansquare/src/main/java/com/github/aurae/retrofit2/LoganSquareConverterFactory.java @@ -32,7 +32,7 @@ private LoganSquareConverterFactory() { } @Override - public Converter requestBodyConverter(Type type, Annotation[] annotations, Retrofit retrofit) { + public Converter requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, Retrofit retrofit) { return new LoganSquareRequestBodyConverter(type); } } diff --git a/gradle.properties b/gradle.properties index 36d14ad..d7deb83 100755 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # Artifact configuration GROUP_ID=com.github.aurae.retrofit2 ARTIFACT_ID=converter-logansquare -VERSION_NAME=1.2.1 +VERSION_NAME=1.3.0 DESCRIPTION=A Converter implementation using LoganSquare JSON serialization for Retrofit 2. # Dependency versions (plugins) @@ -9,10 +9,10 @@ APT_PLUGIN_VERSION=0.4 BINTRAY_PLUGIN_VERSION=1.3.1 # Dependency versions (library) -RETROFIT_VERSION=2.0.0-beta3 +RETROFIT_VERSION=2.0.0-beta4 LOGANSQUARE_VERSION=1.3.4 # Dependency versions (test) -MOCKWEBSERVER_VERSION=3.0.0-RC1 +MOCKWEBSERVER_VERSION=3.1.2 JUNIT_VERSION=4.12 ASSERTJ_VERSION=3.2.0