swagger-api / swagger-api/swagger-codegen
[JAVA, ANDROID] Use joda-time-android dependency when using android as target
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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