swagger-api / swagger-api/swagger-codegen

[Android] use additional properties to manage Android version numbers more easily

Open
#5,422 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

As discussed in https://github.com/swagger-api/swagger-codegen/pull/5250, we want to leverage additional properties to more easily manage Android version numbers in the gradle files generated as part of the Android API client.

We want to replace android version number with {{androidVersionNumber}} tag in the mustache templates so that users can set it directly via --additional-properties when generating the API clients.

Swagger-codegen version

Latest master

Suggest a Fix

If anyone has questions/suggestions or wants to work on this enhancement, please reply to let us know. Thank you.

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

Start with the Android API client Mustache templates and inspect how additional properties are passed into generated Gradle files. Replace the hard-coded Android version value with the androidVersionNumber tag, then verify that setting it through --additional-properties changes the generated client version.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.