[JAVA okhttp-gson; target=Android] Remove joda-time dependency for Android
#5,282 创建于 2017年4月1日
描述
Android usage for generated client is completely wrong. It`s have Java libraries like joda-time included for Android its have completely different version of libraries like: https://github.com/dlew/joda-time-android
This is the dependency library generated in client:
dependencies {
compile 'io.swagger:swagger-annotations:1.5.8'
compile 'com.squareup.okhttp:okhttp:2.7.5'
compile 'com.squareup.okhttp:logging-interceptor:2.7.5'
compile 'com.google.code.gson:gson:2.6.2'
compile 'joda-time:joda-time:2.9.3'
testCompile 'junit:junit:4.12'
}
Warning: org.joda.time.DateMidnight: can't find referenced class org.joda.convert.FromString Warning: org.joda.time.DateTime: can't find referenced class org.joda.convert.FromString Warning: org.joda.time.DateTimeZone: can't find referenced class org.joda.convert.FromString Warning: org.joda.time.DateTimeZone: can't find referenced class org.joda.convert.ToString .... FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. Job failed, see logs for details
If I set 'dateLibrary' : 'java8' joda time is replaced with Java8 time package. But my android project is java 1.7. What about to separate Android templates from Java (like Volley)?