Skip to content

[Kotlin Multiplatform] Update and fixes#9232

Closed
DevSrSouza wants to merge 2 commits intoOpenAPITools:masterfrom
DevSrSouza:refactor/update-kotlin-multiplatform
Closed

[Kotlin Multiplatform] Update and fixes#9232
DevSrSouza wants to merge 2 commits intoOpenAPITools:masterfrom
DevSrSouza:refactor/update-kotlin-multiplatform

Conversation

@DevSrSouza
Copy link
Copy Markdown
Contributor

Kotlin: 1.4.32
Ktor: 1.5.3
Kotlinx.serialization: 1.1.0

  • Fixed private keyword not being handle as a reservedWords
  • Fixed enum serialization generation
  • Migrate gradle build to Kotlin DSL

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master, 5.1.x, 6.0.x
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

@jimschubert, @dr4ke616, @karismann, @Zomzog, @andrewemery, @4brunu, @yutaka0m

…x.serialization 1.1.0

* Fix `private` keyword not being handle as a reservedWords
* Fix enum serialization generation
* Migrate gradle build to Kotlin DSL
@DevSrSouza DevSrSouza changed the title Update and fixes for Kotlin Multiplatform [Kotlin Multiplatform] Update and fixes Apr 12, 2021
} else {
supportingFiles.add(new SupportingFile("build.gradle.mustache", "", "build.gradle"));
supportingFiles.add(new SupportingFile("settings.gradle.mustache", "", "settings.gradle"));
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DevSrSouza I would suggest file a separate PR for this particular change.

What about adding an option to let user choose between gradle build and Kotlin DSL as I could imagine not every users want Kotlin DSL?

* {{{description}}}
* Values: {{#allowableValues}}{{#enumVars}}{{&name}}{{^-last}},{{/-last}}{{/enumVars}}{{/allowableValues}}
*/
{{#multiplatform}}@Serializable{{/multiplatform}}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change to avoid blank line in the output:

    {{#multiplatform}}
    @Serializable
    {{/multiplatform}}

nickbw2003 pushed a commit to myworkout/KaMPKit that referenced this pull request Apr 30, 2021
This adds the kotlin-api-client to the POC so that we should be able to make API calls. The API client needed to be generated based on the dependency updates of the openapi-client-generator which didn't make it to an official release yet. Therefore it was not added as a Git submodule. More information about the changes on the generator project here: OpenAPITools/openapi-generator#9232
nickbw2003 pushed a commit to myworkout/KaMPKit that referenced this pull request May 3, 2021
This adds the kotlin-api-client to the POC so that we should be able to make API calls. The API client needed to be generated based on the dependency updates of the openapi-client-generator which didn't make it to an official release yet. Therefore it was not added as a Git submodule. More information about the changes on the generator project here: OpenAPITools/openapi-generator#9232
@AlexTrotsenko
Copy link
Copy Markdown

Looks like updating kotlinx.serialization from alpha to stable version looks quite important.

@DevSrSouza , @wing328 Is there anything blocking this PR from merging?

@837
Copy link
Copy Markdown
Contributor

837 commented Jun 11, 2021

Will we see some changes from @DevSrSouza or this being merged? Else can we open a new PR with the above mentioned adjustments?

@wing328
Copy link
Copy Markdown
Member

wing328 commented Apr 13, 2022

Closed via #9755

@wing328 wing328 closed this Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants