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

Generate client stub code as extension functions on original Java stub #24

Merged
merged 2 commits into from
Nov 18, 2018

Conversation

rouzwawi
Copy link
Owner

The stub adapters are pretty straight forward and do not really need to be a class. This PR moves all the generated client code to a set of extension function on the original Java stub class.

Users should not simply instantiate a regular Java stub where earlier the Kotlin stub was generated.

-  val greeter = GreeterGrpcKt.newStub(channel)
+  val greeter = GreeterGrpc.newStub(channel)

@rouzwawi rouzwawi merged commit 909be2f into master Nov 18, 2018
@rouzwawi rouzwawi deleted the stub-ext branch November 18, 2018 23:26
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