OpenAPITools / OpenAPITools/openapi-generator

[Android] Automated client generation using Gradle

Open
#7,226 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Description

Apologies if this isn't the correct place for this question. This is not a bug report. This might be an improvement / feature request in case my question doesn't have an answer, which I doubt though.
I have recently made a StackOverflow post about this issue I'm facing.
All I'm trying to do is incorporate the OpenAPI client generation to the build process of my Android app using gradle.
As you will see by looking at my SO question, I haven't managed to generate the sources in a way that it's directly accessible from the code of my app after generation. I need to perform manual tasks to generate the code then copy/paste the result in my application sources.

Is there a way to achieve what I'm trying to do with the current state of the OpenAPI Generator?

If you have read me this far, thank you, and again, I apologize if this isn't the right place for this question.

openapi-generator version

I'm using the gradle plugin: org.openapitools:openapi-generator-gradle-plugin:4.3.1

Gradle config used for generation

See my SO question.

Steps to reproduce

Create a new Android app from scratch, add the configuration I used and detailed in my SO question, and trigger the openApiGenerate task.

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 linked Stack Overflow question and the Gradle configuration referenced in the issue, then inspect the openApiGenerate task and Android project integration. The scope is not yet defined; the expected outcome would be generated sources becoming directly accessible to the app without manual copying.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.