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

Enhancement - swift3 server side sample code via swift package manager #8470

Closed
johndpope opened this issue Oct 23, 2016 · 3 comments
Closed

Comments

@johndpope
Copy link

It's now possible to package objective-c and c++ into swift package manager.
https://medium.com/@petrpavlik/contributing-to-the-server-side-swift-world-936155e4c812#.csaknkiur

While it's possible to spit out a simple swift implementation of messages suitable for libraries on ios using Apple's handy work
https://github.com/apple/swift-protobuf

generating the corresponding ProtoService is something else
apple/swift-protobuf#118

In other words - given the sample swift code in this repo-
https://github.com/grpc/grpc/tree/master/src/objective-c/examples/SwiftSample

can we package this up into SPM (decoupling ios stuff) to provide a hello world for server side swift?

To explore this further (for anyone wanting to attempt this) - I've patched a Dockerfile for swift3 local development https://gist.github.com/johndpope/01a74ffb93921df48e334097117be1b3

This was to interface to https://github.com/johndpope/DockerParseyMcParsefaceAPI
that runs parsey mcparseface using gprc + protobuffers.

I will attempt to port this over and update this ticket if I make any progress.

@jcanizales
Copy link
Contributor

CC @muxi @timburks

@johndpope
Copy link
Author

johndpope commented Oct 26, 2016

I found this https://github.com/Huawei-PTLab/SwiftGRPC
https://github.com/Huawei-PTLab/CGRPC
but couldn't get grpc patched. Huawei-CPLLab/CGRPC#2

N.B. - this code above doesn't use obj-c

also - I don't know what this means

pkg-config should be able to generate the correct CFLAGS and LDFLAGS for using the library.

Any ideas?

@johndpope
Copy link
Author

Yielding to google dedicated swift grpc repo. 🙌
toodles https://github.com/grpc/grpc-swift

@lock lock bot locked as resolved and limited conversation to collaborators Oct 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants