swagger-api/swagger-codegen

[JAVA, ANDROID] Use joda-time-android dependency when using android as target

開放

#3,426 建立於 2016年7月20日

 (4 則留言) (0 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Client: AndroidClient: JavaEnhancement: PerformanceFeature: Documentationhelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

As mentioned in #3413 use 'net.danlew:android.joda:$jodatime_version' instead of "joda-time:joda-time:$jodatime_version" for performance improvements

First idea to make this work is wrapping the compile and version definition calls into if(hasProperty('target') && target == 'android') but I'm not sure if this is the best solution for this.

Maybe someone could point me in a better direction?

貢獻者指南