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

New Plugin: Apollo-Android (Java) #1924

Merged
merged 51 commits into from
Oct 2, 2019
Merged

New Plugin: Apollo-Android (Java) #1924

merged 51 commits into from
Oct 2, 2019

Conversation

dotansimha
Copy link
Owner

@dotansimha dotansimha commented May 28, 2019

The goal of this PR is to allow developers to use the codegen to generate client-side typings for Apollo-Android.
The output is almost identical to apollo-android, but it's implemented from scratch to allow us to maintain it easily.
The reason for implementing this is the fact that apollo-android Gradle plugin uses a very old version of apollo-codegen (0.19), and it's not getting updates recently.

Example repo with AppSync here: dotansimha/graphql-codegen-appsync-android-example@b10fc81

TODO:

  • input type generator
  • Operation generator
  • Finish fragments generation
  • Add CustomType class based on Scalars.
  • Unit tests
  • Fix output path
  • Fix double/float usage
  • Fix readObject
  • Fix missing Fragments type
  • Fix fragments spread reader type
  • Docs

Sorry, something went wrong.

@dotansimha dotansimha force-pushed the apollo-android branch 2 times, most recently from 0c1e83b to 7f8a3d3 Compare June 2, 2019 08:43
# Conflicts:
#	.gitignore
#	lerna.json
#	packages/graphql-codegen-cli/package.json
#	packages/graphql-codegen-core/package.json
#	packages/graphql-codegen-core/src/execute-plugin.ts
#	packages/plugins/flow/flow/package.json
#	packages/plugins/flow/operations/package.json
#	packages/plugins/flow/resolvers/package.json
#	packages/plugins/java/common/package.json
#	packages/plugins/java/java/package.json
#	packages/plugins/java/resolvers/package.json
#	packages/plugins/other/add/package.json
#	packages/plugins/other/fragment-matcher/package.json
#	packages/plugins/other/introspection/package.json
#	packages/plugins/other/schema-ast/package.json
#	packages/plugins/other/time/package.json
#	packages/plugins/other/visitor-plugin-common/package.json
#	packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts
#	packages/plugins/typescript/apollo-angular/package.json
#	packages/plugins/typescript/compatibility/package.json
#	packages/plugins/typescript/graphql-files-modules/package.json
#	packages/plugins/typescript/mongodb/package.json
#	packages/plugins/typescript/operations/package.json
#	packages/plugins/typescript/react-apollo/package.json
#	packages/plugins/typescript/resolvers/package.json
#	packages/plugins/typescript/stencil-apollo/package.json
#	packages/plugins/typescript/typescript/package.json
#	packages/plugins/typescript/urql/package.json
#	packages/presets/near-operation-file/package.json
#	packages/utils/config-md-generator/package.json
#	packages/utils/graphql-codegen-testing/package.json
#	packages/utils/plugins-helpers/package.json
#	website/live-demo/package.json
#	website/package.json
#	yarn.lock

Verified

This commit was signed with the committer’s verified signature.
nielsdos Niels Dossche

Verified

This commit was signed with the committer’s verified signature.
devnexen David CARLIER

Verified

This commit was signed with the committer’s verified signature. The key has expired.
cmb69 Christoph M. Becker

Verified

This commit was signed with the committer’s verified signature. The key has expired.
cmb69 Christoph M. Becker

Verified

This commit was signed with the committer’s verified signature. The key has expired.
cmb69 Christoph M. Becker

Verified

This commit was signed with the committer’s verified signature.
nielsdos Niels Dossche

Verified

This commit was signed with the committer’s verified signature.
nielsdos Niels Dossche
fixes for usage

Verified

This commit was signed with the committer’s verified signature.
devnexen David CARLIER

Verified

This commit was signed with the committer’s verified signature.
nielsdos Niels Dossche

Verified

This commit was signed with the committer’s verified signature.
nielsdos Niels Dossche
fixes

Verified

This commit was signed with the committer’s verified signature. The key has expired.
cmb69 Christoph M. Becker
added tests

Verified

This commit was signed with the committer’s verified signature. The key has expired.
cmb69 Christoph M. Becker

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was signed with the committer’s verified signature.
nielsdos Niels Dossche

Verified

This commit was signed with the committer’s verified signature. The key has expired.
cmb69 Christoph M. Becker

Verified

This commit was signed with the committer’s verified signature.
nielsdos Niels Dossche

Verified

This commit was signed with the committer’s verified signature. The key has expired.
cmb69 Christoph M. Becker
@dotansimha dotansimha merged commit b683530 into master Oct 2, 2019
@dotansimha dotansimha deleted the apollo-android branch October 2, 2019 18:17
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

Successfully merging this pull request may close these issues.

None yet

1 participant