gRPC, ProtoCol BUffers and Flutter on OSx
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I'd like to use gRPC / ProtoBuffers between a Flutter/Dart app developed on OSx and a GoLang server. My thought is to replace a REST connection. My problem is that I cannot install Protobuf on OSx for DART.... or at least, I can't seem to figure it out.
This URL, towards the end, says that Protobuf for DART is only supported for Ubuntu.
https://chromium.googlesource.com/external/github.com/google/protobuf/+/HEAD/README.md
QUESTIONS
- Is this correct that Protobuf on OSx for Dart Flutter is not working yet?
- Any tips or tricks to make it work? and I missing something here?
dart
add a comment |
I'd like to use gRPC / ProtoBuffers between a Flutter/Dart app developed on OSx and a GoLang server. My thought is to replace a REST connection. My problem is that I cannot install Protobuf on OSx for DART.... or at least, I can't seem to figure it out.
This URL, towards the end, says that Protobuf for DART is only supported for Ubuntu.
https://chromium.googlesource.com/external/github.com/google/protobuf/+/HEAD/README.md
QUESTIONS
- Is this correct that Protobuf on OSx for Dart Flutter is not working yet?
- Any tips or tricks to make it work? and I missing something here?
dart
I'm not sure if you got it working. But I recently wrote a blog post for this medium.com/flutter-community/flutter-grpc-810f87612c6d , and yes dart. flutter, GRPC, everything related to these work on Mac OS.
– ishaan
Dec 1 '18 at 10:19
add a comment |
I'd like to use gRPC / ProtoBuffers between a Flutter/Dart app developed on OSx and a GoLang server. My thought is to replace a REST connection. My problem is that I cannot install Protobuf on OSx for DART.... or at least, I can't seem to figure it out.
This URL, towards the end, says that Protobuf for DART is only supported for Ubuntu.
https://chromium.googlesource.com/external/github.com/google/protobuf/+/HEAD/README.md
QUESTIONS
- Is this correct that Protobuf on OSx for Dart Flutter is not working yet?
- Any tips or tricks to make it work? and I missing something here?
dart
I'd like to use gRPC / ProtoBuffers between a Flutter/Dart app developed on OSx and a GoLang server. My thought is to replace a REST connection. My problem is that I cannot install Protobuf on OSx for DART.... or at least, I can't seem to figure it out.
This URL, towards the end, says that Protobuf for DART is only supported for Ubuntu.
https://chromium.googlesource.com/external/github.com/google/protobuf/+/HEAD/README.md
QUESTIONS
- Is this correct that Protobuf on OSx for Dart Flutter is not working yet?
- Any tips or tricks to make it work? and I missing something here?
dart
dart
asked Nov 24 '18 at 20:28
IrishGringoIrishGringo
72411027
72411027
I'm not sure if you got it working. But I recently wrote a blog post for this medium.com/flutter-community/flutter-grpc-810f87612c6d , and yes dart. flutter, GRPC, everything related to these work on Mac OS.
– ishaan
Dec 1 '18 at 10:19
add a comment |
I'm not sure if you got it working. But I recently wrote a blog post for this medium.com/flutter-community/flutter-grpc-810f87612c6d , and yes dart. flutter, GRPC, everything related to these work on Mac OS.
– ishaan
Dec 1 '18 at 10:19
I'm not sure if you got it working. But I recently wrote a blog post for this medium.com/flutter-community/flutter-grpc-810f87612c6d , and yes dart. flutter, GRPC, everything related to these work on Mac OS.
– ishaan
Dec 1 '18 at 10:19
I'm not sure if you got it working. But I recently wrote a blog post for this medium.com/flutter-community/flutter-grpc-810f87612c6d , and yes dart. flutter, GRPC, everything related to these work on Mac OS.
– ishaan
Dec 1 '18 at 10:19
add a comment |
1 Answer
1
active
oldest
votes
First, you should install protobuf by homebrew.
brew install protobuf
If you don't have brew command, see how to install package manager HomeBrew for MacOsX.
Second, you should install Dart, see here https://www.dartlang.org/tools/sdk#install
Third, install plugin dart-protoc-plugin
https://github.com/dart-lang/dart-protoc-plugin#how-to-build-and-use
Fourth, see this guide how to generate .dart classes
https://developers.google.com/protocol-buffers/docs/darttutorial
Fifth, follow this guide for dart-grpc
https://grpc.io/docs/tutorials/basic/dart.html
I've done all this for golang on windows and OSx. My question was specific to DART/FLUTTER on OSx. The first line of Procedure 3 above is... " Note: currently the workflow is POSIX-oriented." which is not OSx. Which gets back to my original question, will this work for Flutter/DART on OSx? otherwise all of these comments are right out of the Howtos.
– IrishGringo
Nov 25 '18 at 5:44
I've already done ProtoBuff+Flutter on MacOSx implemented to AndroidApp, and didnt see any problem there. You write your own smth.proto file, generate dart class, import needed packages, and use generated classes. Where you have problem, your cannot generate dart class?
– kokemomuke
Nov 26 '18 at 7:28
So you have this working on OSx for Dart? You have it running for Android, but have not made it work on iOS. OK...I think my issue is getting the ProtoBuff complier for dart to work on OSx. The Docs say that dart compiler only works for Ubuntu, which is why I posted the question. I wanted to confirm that.. and see if there was a work around.
– IrishGringo
Nov 26 '18 at 15:02
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53462092%2fgrpc-protocol-buffers-and-flutter-on-osx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First, you should install protobuf by homebrew.
brew install protobuf
If you don't have brew command, see how to install package manager HomeBrew for MacOsX.
Second, you should install Dart, see here https://www.dartlang.org/tools/sdk#install
Third, install plugin dart-protoc-plugin
https://github.com/dart-lang/dart-protoc-plugin#how-to-build-and-use
Fourth, see this guide how to generate .dart classes
https://developers.google.com/protocol-buffers/docs/darttutorial
Fifth, follow this guide for dart-grpc
https://grpc.io/docs/tutorials/basic/dart.html
I've done all this for golang on windows and OSx. My question was specific to DART/FLUTTER on OSx. The first line of Procedure 3 above is... " Note: currently the workflow is POSIX-oriented." which is not OSx. Which gets back to my original question, will this work for Flutter/DART on OSx? otherwise all of these comments are right out of the Howtos.
– IrishGringo
Nov 25 '18 at 5:44
I've already done ProtoBuff+Flutter on MacOSx implemented to AndroidApp, and didnt see any problem there. You write your own smth.proto file, generate dart class, import needed packages, and use generated classes. Where you have problem, your cannot generate dart class?
– kokemomuke
Nov 26 '18 at 7:28
So you have this working on OSx for Dart? You have it running for Android, but have not made it work on iOS. OK...I think my issue is getting the ProtoBuff complier for dart to work on OSx. The Docs say that dart compiler only works for Ubuntu, which is why I posted the question. I wanted to confirm that.. and see if there was a work around.
– IrishGringo
Nov 26 '18 at 15:02
add a comment |
First, you should install protobuf by homebrew.
brew install protobuf
If you don't have brew command, see how to install package manager HomeBrew for MacOsX.
Second, you should install Dart, see here https://www.dartlang.org/tools/sdk#install
Third, install plugin dart-protoc-plugin
https://github.com/dart-lang/dart-protoc-plugin#how-to-build-and-use
Fourth, see this guide how to generate .dart classes
https://developers.google.com/protocol-buffers/docs/darttutorial
Fifth, follow this guide for dart-grpc
https://grpc.io/docs/tutorials/basic/dart.html
I've done all this for golang on windows and OSx. My question was specific to DART/FLUTTER on OSx. The first line of Procedure 3 above is... " Note: currently the workflow is POSIX-oriented." which is not OSx. Which gets back to my original question, will this work for Flutter/DART on OSx? otherwise all of these comments are right out of the Howtos.
– IrishGringo
Nov 25 '18 at 5:44
I've already done ProtoBuff+Flutter on MacOSx implemented to AndroidApp, and didnt see any problem there. You write your own smth.proto file, generate dart class, import needed packages, and use generated classes. Where you have problem, your cannot generate dart class?
– kokemomuke
Nov 26 '18 at 7:28
So you have this working on OSx for Dart? You have it running for Android, but have not made it work on iOS. OK...I think my issue is getting the ProtoBuff complier for dart to work on OSx. The Docs say that dart compiler only works for Ubuntu, which is why I posted the question. I wanted to confirm that.. and see if there was a work around.
– IrishGringo
Nov 26 '18 at 15:02
add a comment |
First, you should install protobuf by homebrew.
brew install protobuf
If you don't have brew command, see how to install package manager HomeBrew for MacOsX.
Second, you should install Dart, see here https://www.dartlang.org/tools/sdk#install
Third, install plugin dart-protoc-plugin
https://github.com/dart-lang/dart-protoc-plugin#how-to-build-and-use
Fourth, see this guide how to generate .dart classes
https://developers.google.com/protocol-buffers/docs/darttutorial
Fifth, follow this guide for dart-grpc
https://grpc.io/docs/tutorials/basic/dart.html
First, you should install protobuf by homebrew.
brew install protobuf
If you don't have brew command, see how to install package manager HomeBrew for MacOsX.
Second, you should install Dart, see here https://www.dartlang.org/tools/sdk#install
Third, install plugin dart-protoc-plugin
https://github.com/dart-lang/dart-protoc-plugin#how-to-build-and-use
Fourth, see this guide how to generate .dart classes
https://developers.google.com/protocol-buffers/docs/darttutorial
Fifth, follow this guide for dart-grpc
https://grpc.io/docs/tutorials/basic/dart.html
answered Nov 25 '18 at 3:33
kokemomukekokemomuke
354510
354510
I've done all this for golang on windows and OSx. My question was specific to DART/FLUTTER on OSx. The first line of Procedure 3 above is... " Note: currently the workflow is POSIX-oriented." which is not OSx. Which gets back to my original question, will this work for Flutter/DART on OSx? otherwise all of these comments are right out of the Howtos.
– IrishGringo
Nov 25 '18 at 5:44
I've already done ProtoBuff+Flutter on MacOSx implemented to AndroidApp, and didnt see any problem there. You write your own smth.proto file, generate dart class, import needed packages, and use generated classes. Where you have problem, your cannot generate dart class?
– kokemomuke
Nov 26 '18 at 7:28
So you have this working on OSx for Dart? You have it running for Android, but have not made it work on iOS. OK...I think my issue is getting the ProtoBuff complier for dart to work on OSx. The Docs say that dart compiler only works for Ubuntu, which is why I posted the question. I wanted to confirm that.. and see if there was a work around.
– IrishGringo
Nov 26 '18 at 15:02
add a comment |
I've done all this for golang on windows and OSx. My question was specific to DART/FLUTTER on OSx. The first line of Procedure 3 above is... " Note: currently the workflow is POSIX-oriented." which is not OSx. Which gets back to my original question, will this work for Flutter/DART on OSx? otherwise all of these comments are right out of the Howtos.
– IrishGringo
Nov 25 '18 at 5:44
I've already done ProtoBuff+Flutter on MacOSx implemented to AndroidApp, and didnt see any problem there. You write your own smth.proto file, generate dart class, import needed packages, and use generated classes. Where you have problem, your cannot generate dart class?
– kokemomuke
Nov 26 '18 at 7:28
So you have this working on OSx for Dart? You have it running for Android, but have not made it work on iOS. OK...I think my issue is getting the ProtoBuff complier for dart to work on OSx. The Docs say that dart compiler only works for Ubuntu, which is why I posted the question. I wanted to confirm that.. and see if there was a work around.
– IrishGringo
Nov 26 '18 at 15:02
I've done all this for golang on windows and OSx. My question was specific to DART/FLUTTER on OSx. The first line of Procedure 3 above is... " Note: currently the workflow is POSIX-oriented." which is not OSx. Which gets back to my original question, will this work for Flutter/DART on OSx? otherwise all of these comments are right out of the Howtos.
– IrishGringo
Nov 25 '18 at 5:44
I've done all this for golang on windows and OSx. My question was specific to DART/FLUTTER on OSx. The first line of Procedure 3 above is... " Note: currently the workflow is POSIX-oriented." which is not OSx. Which gets back to my original question, will this work for Flutter/DART on OSx? otherwise all of these comments are right out of the Howtos.
– IrishGringo
Nov 25 '18 at 5:44
I've already done ProtoBuff+Flutter on MacOSx implemented to AndroidApp, and didnt see any problem there. You write your own smth.proto file, generate dart class, import needed packages, and use generated classes. Where you have problem, your cannot generate dart class?
– kokemomuke
Nov 26 '18 at 7:28
I've already done ProtoBuff+Flutter on MacOSx implemented to AndroidApp, and didnt see any problem there. You write your own smth.proto file, generate dart class, import needed packages, and use generated classes. Where you have problem, your cannot generate dart class?
– kokemomuke
Nov 26 '18 at 7:28
So you have this working on OSx for Dart? You have it running for Android, but have not made it work on iOS. OK...I think my issue is getting the ProtoBuff complier for dart to work on OSx. The Docs say that dart compiler only works for Ubuntu, which is why I posted the question. I wanted to confirm that.. and see if there was a work around.
– IrishGringo
Nov 26 '18 at 15:02
So you have this working on OSx for Dart? You have it running for Android, but have not made it work on iOS. OK...I think my issue is getting the ProtoBuff complier for dart to work on OSx. The Docs say that dart compiler only works for Ubuntu, which is why I posted the question. I wanted to confirm that.. and see if there was a work around.
– IrishGringo
Nov 26 '18 at 15:02
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53462092%2fgrpc-protocol-buffers-and-flutter-on-osx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'm not sure if you got it working. But I recently wrote a blog post for this medium.com/flutter-community/flutter-grpc-810f87612c6d , and yes dart. flutter, GRPC, everything related to these work on Mac OS.
– ishaan
Dec 1 '18 at 10:19