-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
UPDATE ktor-client to 3.0.0 and fix HttpBasicAuth.kt to support it #19886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
UPDATE ktor-client to 3.0.0 and fix HttpBasicAuth.kt to support it #19886
Conversation
fix-issue-19447-invalid-ktor-internalapi-import
fix-issue-19447-invalid-ktor-internalapi-import
565fc91
to
f252ad0
Compare
Force push reason: changing commit message @e5l please advise:
|
fix-issue-19447-invalid-ktor-internalapi-import
thanks for the PR cc |
My take is to go ahead with this change and if users need to use ktor 2.x for whatever reasons, we may create an option for fallback if needed (or they can use customize templates with a different set of versions for dependencies). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ninovanhooff, thank you for the PR!
LGTM
It would be nice if you adjusted ktor to ktor-client in the PR title for the change log :)
@wing328, |
@ninovanhooff can you please review the CI failures when you've time? |
fix-issue-19447-invalid-ktor-internalapi-import
fix-issue-19447-invalid-ktor-internalapi-import
To use 1.7.3 kotlinx.serialization you need to bump Kotlin to 2.0.0 |
I'd love to help get Ktor v3 into the Kotlin clients. Regarding Kotlin 2.0.0, do you prefer to do this in a separate PR? |
@eirikvaa thanks for reaching out and offering support. Tbh, my team decided to not use this project due to lack of oneof (aka sealed class in kotlin) support. So my motivation to finish this up has dropped significantly. If you would like to, please branch / fork from my work and open a new PR, then I will close this. |
You can keep it open for now 👍 |
Did you try the option |
Yes, that did not produce compilable code. I think it was designed to produce Gson models and even then it did not compile or clash with the kotlin-serialization models generated by the remainder of the kotlin + jvm-ktor and kotlin + Multiplatform config. Very disappointing |
that's what we've tested so far you can give it a try to see if the output meets your requirements and we will see how we can plot the implementation to other serialization libraries |
For ktor 3.0.0 compatibility, an import must be updated in HttpBasicAuth.kt
I basically did a project wide find-and-replace for the offending import
Fixes issue #19447
PR checklist
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*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming7.x.0
minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)