swagger-api / swagger-api/swagger-codegen

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

Open
#3,426 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Android Client: Java Enhancement: Performance Feature: Documentation help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the context in issue #3413, then trace the Java generator's Android target handling and the entry points that define the dependency and version. Make Android-targeted output use net.danlew:android.joda while preserving the existing dependency for other targets, and verify the generated build configuration for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.