swagger-api/swagger-codegen

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

オープン

#3,426 opened on 2016/07/20

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (5,474 件のフォーク)batch import
Client: AndroidClient: JavaEnhancement: PerformanceFeature: Documentationhelp wanted

Repository metrics

Stars
 (12,701 個のスター)
PR merge metrics
 (30d に merged 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?

コントリビューターガイド