apollo-kotlin icon indicating copy to clipboard operation
apollo-kotlin copied to clipboard

[Umbrella issue] Better Java support in Apollo Kotlin

Open martinbonnin opened this issue 3 years ago • 2 comments
trafficstars

Apollo Kotlin 3 is focused at Kotlin and the changes to make it easier to consume in Kotlin had some unfortunate side effects for Java consumers. This issue is a place to list all the changes required to make it easier to consume Apollo Kotlin from Java projects.

The plan is to decouple Apollo Java so that it’s built on top of apollo-api but can evolve separate from Apollo Kotlin. In particular, Apollo Java will go through an alpha-beta-release phase.

  • [ ] #3694
  • [ ] #4337
  • [ ] https://github.com/apollographql/apollo-kotlin/issues/4213
  • [ ] #4398
  • [x] #4399
  • [ ] #4397
  • [x] Add builders for operations: https://github.com/apollographql/apollo-kotlin/issues/4312
  • [x] Add builders for response data: https://github.com/apollographql/apollo-kotlin/issues/4016

martinbonnin avatar Jul 20 '22 11:07 martinbonnin

@martinbonnin 👋 This seems like a good candidate for a 3.7 release, I went ahead and added all the issues to that release. I know you mentioned you had some more work to break down. Just let me know if this is the right release to target this in, as it's our next release.

jpvajda avatar Sep 09 '22 16:09 jpvajda

We'll need certainly need a round of alpha/beta/rc releases on the Java Runtime. The API surface is huge and while we know where we're going (it's a translation of the Kotlin runtime, features are known already), fine tuning the APIs and getting community feedback will take time.

A good initial could be to ship a apollo-runtime-java artifact that allows to do a minimal query. Then we can build on top of it until it is feature complete:

  • normalized cache
  • http cache
  • APQ
  • batching
  • uploads
  • websockets
  • more...

martinbonnin avatar Sep 09 '22 20:09 martinbonnin

👋 Anyone who'd like to participate in a survey to help us better understand the need for better Java Support can find that survey here: https://github.com/apollographql/apollo-kotlin/issues/4501

jpvajda avatar Nov 08 '22 23:11 jpvajda

Copypasta from a related issue:

We think that our experimental Java support is feature-complete for the 4.0.0 release, the remaining tasks have not yet been prioritized. We'll keep them open but in the interest of keeping our task list clean we'll close this umbrella Issue.

bignimbus avatar Sep 29 '23 14:09 bignimbus