-
Notifications
You must be signed in to change notification settings - Fork 662
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
Java codegen: add support for Optional or nullable fields #4411
Conversation
✅ Deploy Preview for apollo-android-docs canceled.
|
apollo-api/src/commonMain/kotlin/com/apollographql/apollo3/api/Adapters.kt
Outdated
Show resolved
Hide resolved
...-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/codegen/java/helpers/Builder.kt
Show resolved
Hide resolved
apollo-api/src/commonMain/kotlin/com/apollographql/apollo3/api/Adapters.kt
Show resolved
Hide resolved
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/Options.kt
Outdated
Show resolved
Hide resolved
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/Options.kt
Outdated
Show resolved
Hide resolved
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/Options.kt
Outdated
Show resolved
Hide resolved
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/Options.kt
Outdated
Show resolved
Hide resolved
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/Options.kt
Outdated
Show resolved
Hide resolved
apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo3/gradle/api/Service.kt
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,47 @@ | |||
plugins { | |||
id("org.jetbrains.kotlin.jvm") |
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.
It might make sense to write these tests in Java to double check ergonomics. In particular, I'm expecting Java users to call Optional.present(value)
instead of new Optional.Present(value)
and all these kind of things.
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.
id("org.jetbrains.kotlin.jvm") | |
id("java") |
} | ||
|
||
dependencies { | ||
implementation(golatac.lib("apollo.runtime")) |
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.
Also make the test work without apollo-runtime
if possible?
See #4337