Skip to content
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

Retrofit Kotlin examples #4205

Closed
Amir-yazdanmanesh opened this issue Aug 12, 2024 · 2 comments
Closed

Retrofit Kotlin examples #4205

Amir-yazdanmanesh opened this issue Aug 12, 2024 · 2 comments

Comments

@Amir-yazdanmanesh
Copy link

Why doesn't Retrofit have any Kotlin examples? Can I write some sample examples and submit a PR?

@shubhamdevgupta
Copy link

yes you can , just create request and response class for the api and create a pr

@JakeWharton
Copy link
Collaborator

There are no Kotlin examples for the same reason there are no Scala or Clojure examples: Retrofit is fundamentally a Java library. Aside from suspend fun support, all of the features are the same in Java as they are in Kotlin, and users can trivially convert the Java examples into whichever JVM language they want. The only example I'd accept a PR for in Kotlin would be for showing off suspend fun.

@JakeWharton JakeWharton closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants