Finalize apps, cleanup feign and tests.
LocationBasedServices/maptology/master This commit looks good

Closes #53 Add user name to share info.
Integrate share info into share view on android and angular.
Remove unused date serializer from feign.
Fix remaining linting errors on Android.
Improve some android and angular views and texts.
This commit is contained in:
2019-07-31 18:56:55 +02:00
parent a7b1f155d5
commit a6b05157b5
18 changed files with 188 additions and 245 deletions
@@ -121,7 +121,6 @@ public class ApiClient {
objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
objectMapper.disable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE);
objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
objectMapper.setDateFormat(new RFC3339DateFormat());
objectMapper.registerModule(new JodaModule());
return objectMapper;
}
@@ -1,22 +0,0 @@
package com.maptology.android.feign;
import feign.Param;
import java.text.DateFormat;
import java.util.Date;
/**
* Param Expander to convert {@link Date} to RFC3339
*/
public class ParamExpander implements Param.Expander {
private static final DateFormat dateformat = new RFC3339DateFormat();
@Override
public String expand(Object value) {
if (value instanceof Date) {
return dateformat.format(value);
}
return value.toString();
}
}
@@ -1,34 +0,0 @@
/*
* Maptology Service
* Maptology Service
*
* OpenAPI spec version: 0.0.1-SNAPSHOT
* Contact: nes-admin@uni-due.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.maptology.android.feign;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import com.fasterxml.jackson.databind.util.ISO8601Utils;
import java.text.FieldPosition;
import java.util.Date;
@SuppressWarnings("deprecation")
public class RFC3339DateFormat extends ISO8601DateFormat {
private static final long serialVersionUID = 2091364120558567279L;
// Same as ISO8601DateFormat but serializing milliseconds.
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
String value = ISO8601Utils.format(date, true);
toAppendTo.append(value);
return toAppendTo;
}
}